![]() |
Project
|
#include <FairDetector.h>
Inherits FairModule.
Inherited by o2::base::Detector, and o2::passive::Cave.
Public Member Functions | |
| FairDetector (const char *Name, Bool_t Active, Int_t DetId=0) | |
| FairDetector () | |
| virtual | ~FairDetector () |
| virtual void | Initialize () |
| virtual Bool_t | ProcessHits (FairVolume *v=0)=0 |
| virtual void | EndOfEvent () |
| virtual void | Register ()=0 |
| virtual TClonesArray * | GetCollection (Int_t iColl) const =0 |
| virtual void | Reset ()=0 |
| virtual void | CopyClones (TClonesArray *, TClonesArray *, Int_t) |
| virtual void | FinishPrimary () |
| virtual void | FinishRun () |
| virtual void | BeginPrimary () |
| virtual void | PostTrack () |
| virtual void | PreTrack () |
| virtual void | BeginEvent () |
| virtual void | FinishEvent () |
| void | SaveGeoParams () |
| Int_t | GetDetId () |
Public Member Functions inherited from FairModule | |
| FairModule () | |
| FairModule (const char *Name, const char *title, Bool_t Active=kFALSE) | |
| virtual | ~FairModule () |
| virtual void | Print (Option_t *) const |
| virtual void | SetGeometryFileName (TString fname, TString geoVer="0") |
| virtual TString | GetGeometryFileName () |
| virtual TString | GetGeometryFileVer () |
| virtual void | ConstructGeometry () |
| virtual void | ConstructOpGeometry () |
| virtual void | ConstructRootGeometry (TGeoMatrix *shiftM=nullptr) |
| virtual void | ConstructASCIIGeometry () |
| virtual void | ModifyGeometry () __attribute__((deprecated("Use FairAlignmentHandler instead |
| virtual void | RegisterAlignmentMatrices () |
| virtual void | ConstructGDMLGeometry (__attribute__((unused)) TGeoMatrix *posrot) |
| virtual void | SetSpecialPhysicsCuts () |
| virtual FairModule * | CloneModule () const |
| virtual void | BeginWorkerRun () const |
| virtual void | FinishWorkerRun () const |
| virtual Bool_t | IsSensitive (const std::string &name) |
| virtual Bool_t | CheckIfSensitive (__attribute__((unused)) std::string name) __attribute__((deprecated("The method CheckIfSensitive is deprecated. Implement IsSensitive in the detector classes."))) |
| virtual void | ExpandNode (TGeoNode *Node) |
| virtual void | ExpandNodeForGDML (__attribute__((unused)) TGeoNode *curNode) |
| virtual Int_t | getVolId (const TString &) const |
| Int_t | GetModId () |
| void | SetVerboseLevel (Int_t level) |
| Bool_t | IsActive () |
| void | SetModId (Int_t id) |
| void | SetMotherVolume (TString volName) |
| virtual void | SetParContainers () |
| virtual void | InitParContainers () |
| TList * | GetListOfGeoPar () |
| FairVolume * | getFairVolume (FairGeoNode *fNode) |
| void | AddSensitiveVolume (TGeoVolume *v) |
| void | SetMC (TVirtualMC *mc) |
| cahed pointer to MC (available only after initialization) | |
| ClassDef (FairModule, 4) | |
Protected Member Functions | |
| FairDetector (const FairDetector &) | |
| FairDetector & | operator= (const FairDetector &) |
| void | DefineSensitiveVolumes () |
| ClassDef (FairDetector, 1) | |
| /// FairLogger | |
Protected Member Functions inherited from FairModule | |
| FairModule (const FairModule &) | |
| FairModule & | operator= (const FairModule &) |
Protected Attributes | |
| Int_t | fDetId |
| FairLogger * | fLogger |
Protected Attributes inherited from FairModule | |
| TString | fgeoVer |
| TString | fgeoName |
| Int_t | fModId |
| Bool_t | fActive |
| Int_t | fNbOfSensitiveVol |
| Int_t | fVerboseLevel |
| TList * | flGeoPar |
| Bool_t | fGeoSaved |
| list of Detector Geometry parameters | |
| TVirtualMC * | fMC |
| flag for initialisation | |
Additional Inherited Members | |
Public Attributes inherited from FairModule | |
| virtual void see Tutorial4 for | examples |
| TString | fMotherVolumeName |
Static Public Attributes inherited from FairModule | |
| static thread_local FairVolumeList * | vList = 0 |
| static thread_local Int_t | fNbOfVolumes = 0 |
| static thread_local TRefArray * | svList = 0 |
| static thread_local TArrayI * | volNumber = 0 |
Base class for constructing detecors
Definition at line 25 of file FairDetector.h.
| FairDetector::FairDetector | ( | const char * | Name, |
| Bool_t | Active, | ||
| Int_t | DetId = 0 |
||
| ) |
constructor Name : Detector Name Active: kTRUE for active detectors (ProcessHits() will be called) kFALSE for inactive detectors
Definition at line 30 of file FairDetector.cxx.
| FairDetector::FairDetector | ( | ) |
default constructor
Definition at line 66 of file FairDetector.cxx.
|
virtual |
destructor
Definition at line 48 of file FairDetector.cxx.
|
protected |
Copy constructor
Definition at line 42 of file FairDetector.cxx.
|
inlinevirtual |
User actions at beginning of event
Reimplemented in o2::base::DetImpl< Det >, o2::base::DetImpl< CloneTestDetector >, o2::base::DetImpl< Detector >, and o2::base::DetImpl< ExternalDetector >.
Definition at line 93 of file FairDetector.h.
|
inlinevirtual |
User actions at beginning of a primary track
Reimplemented in o2::zdc::Detector, o2::emcal::Detector, o2::ext::ExternalDetector, o2::focal::Detector, o2::its::Detector, o2::mft::Detector, o2::passive::Cave, o2::tpc::Detector, o2::ecal::Detector, o2::fct::Detector, o2::fd3::Detector, o2::iotof::Detector, o2::mi3::Detector, o2::rich::Detector, o2::ft3::Detector, and o2::trk::Detector.
Definition at line 81 of file FairDetector.h.
|
protected |
/// FairLogger
|
inlinevirtual |
Definition at line 69 of file FairDetector.h.
|
protected |
Definition at line 73 of file FairDetector.cxx.
|
inlinevirtual |
this is called at the end of an event after the call to tree fill in the FairRootManager
Reimplemented in o2::cpv::Detector, o2::emcal::Detector, o2::focal::Detector, o2::phos::Detector, o2::tof::Detector, o2::zdc::Detector, o2::ext::ExternalDetector, o2::fdd::Detector, o2::ft0::Detector, o2::fv0::Detector, o2::hmpid::Detector, o2::its::Detector, o2::mft::Detector, o2::mch::Detector, o2::mid::Detector, o2::tpc::Detector, o2::trd::Detector, o2::ecal::Detector, o2::fct::Detector, o2::fd3::Detector, o2::iotof::Detector, o2::mi3::Detector, o2::rich::Detector, o2::ft3::Detector, and o2::trk::Detector.
Definition at line 54 of file FairDetector.h.
|
inlinevirtual |
this is called at the end of an event before the call to tree fill in the FairRootManager
Reimplemented in o2::cpv::Detector, o2::phos::Detector, and o2::trd::Detector.
Definition at line 97 of file FairDetector.h.
|
inlinevirtual |
User actions after finishing of a primary track
Reimplemented in o2::zdc::Detector, o2::emcal::Detector, o2::ext::ExternalDetector, o2::focal::Detector, o2::its::Detector, o2::mft::Detector, o2::passive::Cave, o2::tpc::Detector, o2::ecal::Detector, o2::fct::Detector, o2::fd3::Detector, o2::iotof::Detector, o2::mi3::Detector, o2::rich::Detector, o2::ft3::Detector, and o2::trk::Detector.
Definition at line 73 of file FairDetector.h.
|
inlinevirtual |
Finish MC Run
Reimplemented in o2::mft::Detector, and o2::tpc::Detector.
Definition at line 77 of file FairDetector.h.
|
pure virtual |
Gets the produced collections
Implemented in o2::passive::Cave.
|
inline |
Definition at line 100 of file FairDetector.h.
|
virtual |
Initialization of the detector is done here
Reimplemented in o2::base::Detector.
Definition at line 89 of file FairDetector.cxx.
|
protected |
Assignment operator
Definition at line 50 of file FairDetector.cxx.
|
inlinevirtual |
User actions after finishing of each track
Reimplemented in o2::ext::ExternalDetector, o2::its::Detector, o2::mft::Detector, o2::tpc::Detector, o2::ecal::Detector, o2::fct::Detector, o2::fd3::Detector, o2::iotof::Detector, o2::mi3::Detector, o2::rich::Detector, o2::ft3::Detector, and o2::trk::Detector.
Definition at line 85 of file FairDetector.h.
|
inlinevirtual |
User actions at beginning of each track
Reimplemented in o2::ext::ExternalDetector, o2::its::Detector, o2::mft::Detector, o2::tpc::Detector, o2::ecal::Detector, o2::fct::Detector, o2::fd3::Detector, o2::iotof::Detector, o2::mi3::Detector, o2::rich::Detector, o2::ft3::Detector, and o2::trk::Detector.
Definition at line 89 of file FairDetector.h.
|
pure virtual |
this method is called for each step during simulation (see FairMCApplication::Stepping())
Implemented in o2::test::CloneTestDetector, o2::ft0::Detector, o2::hmpid::Detector, o2::cpv::Detector, o2::emcal::Detector, o2::focal::Detector, o2::phos::Detector, o2::tof::Detector, o2::zdc::Detector, o2::ext::ExternalDetector, o2::fdd::Detector, o2::fv0::Detector, o2::its::Detector, o2::mft::Detector, o2::mch::Detector, o2::passive::Cave, o2::tpc::Detector, o2::trd::Detector, o2::ecal::Detector, o2::fct::Detector, o2::fd3::Detector, o2::iotof::Detector, o2::mi3::Detector, o2::rich::Detector, o2::ft3::Detector, o2::trk::Detector, and o2::mid::Detector.
|
pure virtual |
Registers the produced collections in FAIRRootManager.
Implemented in o2::test::CloneTestDetector, o2::cpv::Detector, o2::emcal::Detector, o2::ext::ExternalDetector, o2::fdd::Detector, o2::ft0::Detector, o2::fv0::Detector, o2::focal::Detector, o2::hmpid::Detector, o2::its::Detector, o2::mft::Detector, o2::mch::Detector, o2::mid::Detector, o2::passive::Cave, o2::phos::Detector, o2::tof::Detector, o2::tpc::Detector, o2::trd::Detector, o2::ecal::Detector, o2::fct::Detector, o2::fd3::Detector, o2::iotof::Detector, o2::mi3::Detector, o2::rich::Detector, o2::ft3::Detector, o2::trk::Detector, and o2::zdc::Detector.
|
pure virtual |
has to be called after each event to reset the containers
Implemented in o2::cpv::Detector, o2::emcal::Detector, o2::focal::Detector, o2::phos::Detector, o2::tof::Detector, o2::zdc::Detector, o2::test::CloneTestDetector, o2::ext::ExternalDetector, o2::fdd::Detector, o2::ft0::Detector, o2::fv0::Detector, o2::hmpid::Detector, o2::its::Detector, o2::mft::Detector, o2::mch::Detector, o2::mid::Detector, o2::passive::Cave, o2::tpc::Detector, o2::trd::Detector, o2::ecal::Detector, o2::fct::Detector, o2::fd3::Detector, o2::iotof::Detector, o2::mi3::Detector, o2::rich::Detector, o2::ft3::Detector, and o2::trk::Detector.
| void FairDetector::SaveGeoParams | ( | ) |
Definition at line 127 of file FairDetector.cxx.
|
protected |
Definition at line 110 of file FairDetector.h.
|
protected |
Definition at line 111 of file FairDetector.h.