Project
Loading...
Searching...
No Matches
o2::fct::Detector Class Reference

#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 Register () override
 Registers the produced collections in FAIRRootManager.
 
std::vector< o2::itsmft::Hit > * getHits (Int_t iColl) const
 Gets the produced collections.
 
void Reset () override
 Has to be called after each event to reset the containers.
 
void ConstructGeometry () override
 Base class to create the detector geometry.
 
o2::itsmft::HitaddHit (int trackID, int detID, const TVector3 &startPos, const TVector3 &endPos, const TVector3 &startMom, double startE, double endTime, double eLoss, unsigned char startStatus, unsigned char endStatus)
 This method is an example of how to add your own point of type Hit to the clones array.
 
Int_t chipVolUID (Int_t id) const
 
void EndOfEvent () override
 
void FinishPrimary () override
 
virtual void finishRun ()
 
void BeginPrimary () override
 
void PostTrack () override
 
void PreTrack () override
 
Int_t getNumberOfLayers () const
 Returns the number of layers.
 
void buildBasicFCT (const FCTBaseParam &param)
 
void buildFCTV1 ()
 
void buildFCTFromFile (std::string)
 
void exportLayout ()
 access to geometry details
 
- 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
 
FairModuleCloneModule () 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 addAlignableVolumes () const
 declare alignable volumes of detector
 
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

GeometryTGeomGeometryTGeo
 

Friends

template<typename Det >
class o2::base::DetImpl
 If Alice 3 pipe is present append inner disks to vacuum volume to avoid overlaps.
 

Additional Inherited Members

- Static Public Member Functions inherited from o2::base::Detector
static void setDensityFactor (Float_t density)
 
static Float_t getDensityFactor ()
 
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)
 
Detectoroperator= (const Detector &)
 
- 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
 
charmHitCollectorBufferPtr
 
- Static Protected Attributes inherited from o2::base::DetImpl< Detector >
static constexpr int NHITBUFFERS
 

Detailed Description

Definition at line 58 of file Detector.h.

Constructor & Destructor Documentation

◆ Detector() [1/2]

Detector::Detector ( Bool_t  active)

Name : Detector Name Active: kTRUE for active detectors (ProcessHits() will be called) kFALSE for inactive detectors

Definition at line 251 of file Detector.cxx.

◆ Detector() [2/2]

Detector::Detector ( )

Default constructor.

Definition at line 53 of file Detector.cxx.

◆ ~Detector()

Detector::~Detector ( )
override

Default destructor.

Definition at line 272 of file Detector.cxx.

Member Function Documentation

◆ addHit()

Hit * Detector::addHit ( int  trackID,
int  detID,
const TVector3 &  startPos,
const TVector3 &  endPos,
const TVector3 &  startMom,
double  startE,
double  endTime,
double  eLoss,
unsigned char  startStatus,
unsigned char  endStatus 
)

This method is an example of how to add your own point of type Hit to the clones array.

Definition at line 569 of file Detector.cxx.

◆ BeginPrimary()

void o2::fct::Detector::BeginPrimary ( )
inlineoverride

Definition at line 107 of file Detector.h.

◆ buildBasicFCT()

void Detector::buildBasicFCT ( const FCTBaseParam param)

Definition at line 177 of file Detector.cxx.

◆ buildFCTFromFile()

void Detector::buildFCTFromFile ( std::string  configFileName)

Definition at line 61 of file Detector.cxx.

◆ buildFCTV1()

void Detector::buildFCTV1 ( )

Definition at line 207 of file Detector.cxx.

◆ chipVolUID()

Int_t o2::fct::Detector::chipVolUID ( Int_t  id) const
inline

Definition at line 101 of file Detector.h.

◆ ConstructGeometry()

void Detector::ConstructGeometry ( )
override

Base class to create the detector geometry.

Definition at line 465 of file Detector.cxx.

◆ EndOfEvent()

void Detector::EndOfEvent ( )
override

Definition at line 442 of file Detector.cxx.

◆ exportLayout()

void Detector::exportLayout ( )

access to geometry details

Definition at line 153 of file Detector.cxx.

◆ FinishPrimary()

void o2::fct::Detector::FinishPrimary ( )
inlineoverride

Definition at line 105 of file Detector.h.

◆ finishRun()

virtual void o2::fct::Detector::finishRun ( )
inlinevirtual

Definition at line 106 of file Detector.h.

◆ getHits()

std::vector< o2::itsmft::Hit > * o2::fct::Detector::getHits ( Int_t  iColl) const
inline

Gets the produced collections.

Definition at line 82 of file Detector.h.

◆ getNumberOfLayers()

Int_t o2::fct::Detector::getNumberOfLayers ( ) const
inline

Returns the number of layers.

Definition at line 112 of file Detector.h.

◆ InitializeO2Detector()

void Detector::InitializeO2Detector ( )
overridevirtual

Initialization of the detector is done here.

Implements o2::base::Detector.

Definition at line 312 of file Detector.cxx.

◆ PostTrack()

void o2::fct::Detector::PostTrack ( )
inlineoverride

Definition at line 108 of file Detector.h.

◆ PreTrack()

void o2::fct::Detector::PreTrack ( )
inlineoverride

Definition at line 109 of file Detector.h.

◆ ProcessHits()

Bool_t Detector::ProcessHits ( FairVolume *  v = nullptr)
override

This method is called for each step during simulation (see FairMCApplication::Stepping())

Definition at line 323 of file Detector.cxx.

◆ Register()

void Detector::Register ( )
override

Registers the produced collections in FAIRRootManager.

Definition at line 445 of file Detector.cxx.

◆ Reset()

void Detector::Reset ( )
override

Has to be called after each event to reset the containers.

Definition at line 457 of file Detector.cxx.

Friends And Related Symbol Documentation

◆ o2::base::DetImpl

template<typename Det >
friend class o2::base::DetImpl
friend

If Alice 3 pipe is present append inner disks to vacuum volume to avoid overlaps.

Definition at line 160 of file Detector.h.

Member Data Documentation

◆ mGeometryTGeo

GeometryTGeo* o2::fct::Detector::mGeometryTGeo

Definition at line 118 of file Detector.h.


The documentation for this class was generated from the following files: