![]() |
Project
|
#include <Detector.h>
Inherits o2::base::DetImpl< Detector >.
Public Member Functions | |
| Detector (Bool_t active) | |
| Detector () | |
| Default constructor. | |
| ~Detector () override | |
| Default destructor. | |
| void | InitializeO2Detector () override |
| Initialization of the detector is done here. | |
| Bool_t | ProcessHits (FairVolume *v=nullptr) override |
| This method is called for each step during simulation (see FairMCApplication::Stepping()) | |
| void | Reset () override |
| Has to be called after each event to reset the containers. | |
| void | Register () override |
| Registers the produced collections in FAIRRootManager. | |
| std::vector< o2::itsmft::Hit > * | getHits (Int_t iColl) const |
| Gets the produced hits. | |
| void | EndOfEvent () override |
| void | FinishPrimary () override |
| void | FinishRun () override |
| void | BeginPrimary () override |
| void | PostTrack () override |
| void | PreTrack () override |
| void | ConstructGeometry () override |
| void | addAlignableVolumes () const override |
| Add alignable top volumes. | |
| void | addAlignableVolumesHalf (Int_t hf, TString &parent, Int_t &lastUID) const |
| void | addAlignableVolumesDisk (Int_t hf, Int_t dk, TString &parent, Int_t &lastUID) const |
| void | addAlignableVolumesLadder (Int_t hf, Int_t dk, Int_t lr, TString &parent, Int_t &lastUID) const |
| void | addAlignableVolumesChip (Int_t hf, Int_t dk, Int_t lr, Int_t ms, TString &parent, Int_t &lastUID) const |
| Int_t | isVersion () const |
| void | createMaterials () |
| Creating materials for the detector. | |
| void | setDensitySupportOverSi (Double_t density) |
| void | createGeometry () |
| void | defineSensitiveVolumes () |
Public Member Functions inherited from o2::base::DetImpl< Detector > | |
| std::string | getHitBranchNames (int probe) const override |
| void | updateHitTrackIndices (std::map< int, int > const &indexmapping) override |
| void | attachHits (fair::mq::Channel &channel, fair::mq::Parts &parts) override |
| void | mergeAndAdjustHits (std::string const &brname, TTree &origin, TTree &target, std::vector< int > const &trackoffsets, std::vector< int > const &nprimaries, std::vector< int > const &subevtsOrdered) |
| void | mergeAndAdjustHits (std::string const &brname, L &hitbuffervector, TTree &target, std::vector< int > const &trackoffsets, std::vector< int > const &nprimaries, std::vector< int > const &subevtsOrdered) |
| void | mergeHitEntries (TTree &origin, TTree &target, std::vector< int > const &trackoffsets, std::vector< int > const &nprimaries, std::vector< int > const &subevtsOrdered) final |
| void | mergeHitEntriesAndFlush (int eventID, TTree &target, std::vector< int > const &trackoffsets, std::vector< int > const &nprimaries, std::vector< int > const &subevtsOrdered) final |
| void | collectHits (int eventID, fair::mq::Parts &parts, int &index) override |
| void | fillHitBranch (TTree &tr, fair::mq::Parts &parts, int &index) override |
| FairModule * | CloneModule () const final |
| void | freeHitBuffers () |
| bool | setHits (int i, std::vector< Hit_t > *ptr) |
| void | createHitBuffers () |
| void | initializeLate () final |
| void | BeginEvent () final |
| ~DetImpl () override | |
| Detector (const char *name, Bool_t Active) | |
| Detector () | |
| Default Constructor. | |
| Detector (const Detector &origin) | |
Public Member Functions inherited from o2::base::Detector | |
| Detector (const char *name, Bool_t Active) | |
| Detector () | |
| Default Constructor. | |
| ~Detector () override | |
| Default Destructor. | |
| void | Material (Int_t imat, const char *name, Float_t a, Float_t z, Float_t dens, Float_t radl, Float_t absl, Float_t *buf=nullptr, Int_t nwbuf=0) |
| void | Mixture (Int_t imat, const char *name, Float_t *a, Float_t *z, Float_t dens, Int_t nlmat, Float_t *wmat) |
| void | Medium (Int_t numed, const char *name, Int_t nmat, Int_t isvol, Int_t ifield, Float_t fieldm, Float_t tmaxfd, Float_t stemax, Float_t deemax, Float_t epsil, Float_t stmin, Float_t *ubuf=nullptr, Int_t nbuf=0) |
| void | SpecialCuts (Int_t numed, const std::initializer_list< std::pair< ECut, Float_t > > &parIDValMap) |
| Custom processes and transport cuts. | |
| void | SpecialCut (Int_t numed, ECut parID, Float_t val) |
| Set cut by name and value. | |
| void | SpecialProcesses (Int_t numed, const std::initializer_list< std::pair< EProc, int > > &parIDValMap) |
| void | SpecialProcess (Int_t numed, EProc parID, int val) |
| Set process by name and value. | |
| void | Matrix (Int_t &nmat, Float_t theta1, Float_t phi1, Float_t theta2, Float_t phi2, Float_t theta3, Float_t phi3) const |
| void | SetSpecialPhysicsCuts () override |
| virtual void | fillParallelWorld () const |
| fill parallel geometry with sensitive volumes of detector | |
| virtual void | defineWrapperVolume (Int_t id, Double_t rmin, Double_t rmax, Double_t zspan) |
| Sets per wrapper volume parameters. | |
| virtual void | setNumberOfWrapperVolumes (Int_t n) |
| Books arrays for wrapper volumes. | |
| virtual void | defineLayer (Int_t nlay, Double_t phi0, Double_t r, Int_t nladd, Int_t nmod, Double_t lthick=0., Double_t dthick=0., UInt_t detType=0, Int_t buildFlag=0) |
| virtual void | defineLayerTurbo (Int_t nlay, Double_t phi0, Double_t r, Int_t nladd, Int_t nmod, Double_t width, Double_t tilt, Double_t lthick=0., Double_t dthick=0., UInt_t detType=0, Int_t buildFlag=0) |
| int | getMaterialID (int imat) const |
| int | getMediumID (int imed) const |
| void | getMediumIDMappingAsVector (std::vector< int > &mapping) |
| std::string | addNameTo (const char *ext) const |
| void | Initialize () final |
| int | registerSensitiveVolumeAndGetVolID (std::string const &name) |
| int | registerSensitiveVolumeAndGetVolID (TGeoVolume const *vol) |
| TClonesArray * | GetCollection (int iColl) const final |
Public Attributes | |
| GeometryTGeo * | mGeometryTGeo |
Protected Attributes | |
| Int_t | mVersion |
| access to geometry details | |
| Double_t | mDensitySupportOverSi |
Protected Attributes inherited from o2::base::DetImpl< Detector > | |
| bool * | mShmBusy [NHITBUFFERS] |
| std::vector< void * > | mCachedPtr [NHITBUFFERS] |
| pointer to bool in shared mem indicating of IO busy | |
| int | mCurrentBuffer |
| int | mInitialized |
| char * | mHitCollectorBufferPtr |
Friends | |
| template<typename Det > | |
| class | o2::base::DetImpl |
Additional Inherited Members | |
Static Public Member Functions inherited from o2::base::Detector | |
| static void | setDensityFactor (Float_t density) |
| static Float_t | getDensityFactor () |
| static int | updatedTrackIndex (std::map< int, int > const &indexmapping, int trackID) |
| static int | offsetTrackIndex (int trackID, int nprimaries, int primaryOffset, int secondaryOffset) |
| static void | initFieldTrackingParams (int &mode, float &maxfield) |
| static void | setDetId2HitBitIndex (std::vector< int > const &v) |
| set the DetID to HitBitIndex mapping. Succeeds if not already set. | |
| static std::vector< int > const & | getDetId2HitBitIndex () |
Protected Member Functions inherited from o2::base::DetImpl< Detector > | |
| ClassDefOverride (DetImpl, 0) | |
| pointer to hit (collector) buffer location (strictly internal) | |
Protected Member Functions inherited from o2::base::Detector | |
| Detector (const Detector &origin) | |
| Detector & | operator= (const Detector &) |
Static Protected Attributes inherited from o2::base::DetImpl< Detector > | |
| static constexpr int | NHITBUFFERS |
Definition at line 49 of file Detector.h.
| Detector::Detector | ( | Bool_t | active | ) |
Name : Detector Name Active: kTRUE for active detectors (ProcessHits() will be called) kFALSE for inactive detectors
Definition at line 47 of file Detector.cxx.
| Detector::Detector | ( | ) |
Default constructor.
Definition at line 43 of file Detector.cxx.
|
override |
Default destructor.
Definition at line 77 of file Detector.cxx.
|
overridevirtual |
Add alignable top volumes.
Reimplemented from o2::base::Detector.
Definition at line 617 of file Detector.cxx.
| void Detector::addAlignableVolumesChip | ( | Int_t | hf, |
| Int_t | dk, | ||
| Int_t | lr, | ||
| Int_t | ms, | ||
| TString & | parent, | ||
| Int_t & | lastUID | ||
| ) | const |
Add alignable Sensor volumes
| hf | half number |
| dk | disk number |
| lr | ladder number |
| ms | sensor number |
| parent | path of the parent volume |
| lastUID | on output, UID of the last volume |
Definition at line 709 of file Detector.cxx.
| void Detector::addAlignableVolumesDisk | ( | Int_t | hf, |
| Int_t | dk, | ||
| TString & | parent, | ||
| Int_t & | lastUID | ||
| ) | const |
Add alignable Disk volumes
| hf | half number |
| dk | disk number |
| parent | path of the parent volume |
| lastUID | on output, UID of the last volume |
Definition at line 664 of file Detector.cxx.
| void Detector::addAlignableVolumesHalf | ( | Int_t | hf, |
| TString & | parent, | ||
| Int_t & | lastUID | ||
| ) | const |
Add alignable Half volumes
| hf | Half number |
| parent | path of the parent volume |
| lastUID | on output, UID of the last volume |
Definition at line 645 of file Detector.cxx.
| void Detector::addAlignableVolumesLadder | ( | Int_t | hf, |
| Int_t | dk, | ||
| Int_t | lr, | ||
| TString & | parent, | ||
| Int_t & | lastUID | ||
| ) | const |
Add alignable Ladder volumes
| hf | half number |
| dk | disk number |
| lr | ladder stave number |
| parent | path of the parent volume |
| lastUID | on output, UID of the last volume |
Definition at line 688 of file Detector.cxx.
|
inlineoverride |
Definition at line 88 of file Detector.h.
|
override |
Definition at line 595 of file Detector.cxx.
| void Detector::createGeometry | ( | ) |
Definition at line 587 of file Detector.cxx.
| void Detector::createMaterials | ( | ) |
Creating materials for the detector.
Definition at line 206 of file Detector.cxx.
| void Detector::defineSensitiveVolumes | ( | ) |
Definition at line 603 of file Detector.cxx.
|
override |
Definition at line 726 of file Detector.cxx.
|
inlineoverride |
Definition at line 86 of file Detector.h.
|
inlineoverride |
Definition at line 87 of file Detector.h.
|
inline |
Gets the produced hits.
Definition at line 76 of file Detector.h.
|
overridevirtual |
Initialization of the detector is done here.
Implements o2::base::Detector.
Definition at line 87 of file Detector.cxx.
|
inline |
Definition at line 126 of file Detector.h.
|
inlineoverride |
Definition at line 89 of file Detector.h.
|
inlineoverride |
Definition at line 90 of file Detector.h.
|
override |
This method is called for each step during simulation (see FairMCApplication::Stepping())
Definition at line 95 of file Detector.cxx.
|
override |
Registers the produced collections in FAIRRootManager.
Definition at line 729 of file Detector.cxx.
|
override |
Has to be called after each event to reset the containers.
Definition at line 742 of file Detector.cxx.
|
inline |
Definition at line 130 of file Detector.h.
|
friend |
Definition at line 168 of file Detector.h.
|
protected |
Definition at line 146 of file Detector.h.
| GeometryTGeo* o2::mft::Detector::mGeometryTGeo |
Definition at line 142 of file Detector.h.
|
protected |
access to geometry details
Definition at line 145 of file Detector.h.