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

#include <Detector.h>

Inherits o2::base::DetImpl< Detector >.

Public Member Functions

 Detector (bool active)
 hardcoded for the current geometry = 36 volumes in the VD. TODO: automatize or change according to the current geometry
 
 Detector ()
 
 ~Detector ()
 
void ConstructGeometry () override
 
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)
 
void BeginPrimary () override
 
void FinishPrimary () override
 
void InitializeO2Detector () override
 
void PostTrack () override
 
void PreTrack () override
 
bool ProcessHits (FairVolume *v=nullptr) override
 
void EndOfEvent () override
 
void Register () override
 
void Reset () override
 
std::vector< o2::itsmft::Hit > * getHits (int iColl) const
 
void configDefault ()
 
void buildTRKNewVacuumVessel ()
 
void configFromFile (std::string fileName="alice3_TRK_layout.txt")
 
void configToFile (std::string fileName="alice3_TRK_layout.txt")
 
void configServices ()
 
void createMaterials ()
 
void createGeometry ()
 
int getNumberOfLayers () const
 Number of VD petals.
 
int getNumberOfLayersVD () const
 Number of TRK layers.
 
int getNumberOfDisksVD () const
 
void Print (FairVolume *vol, int volume, int subDetID, int layer, int stave, int halfstave, int chipID) const
 
 ClassDefOverride (Detector, 1)
 
- 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
 

Static Public Member Functions

static o2::base::Detectorcreate (bool active)
 
- 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 ()
 

Static Public Attributes

static constexpr Int_t mNumberOfVolumes = 44
 
static constexpr Int_t mNumberOfVolumesVD = 36
 hardcoded for the current geometry = 8 MLOT layers + 36 volumes in the VD. TODO: automatize or change according to the current geometry
 
static constexpr Int_t sNumberVDPetalCases = 4
 layer names
 

Protected Attributes

std::vector< intmSensorID
 
std::vector< TString > mSensorName
 layer identifiers
 
- 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
 

Friends

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

Additional Inherited Members

- 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 &)
 
- Static Protected Attributes inherited from o2::base::DetImpl< Detector >
static constexpr int NHITBUFFERS
 

Detailed Description

Definition at line 31 of file Detector.h.

Constructor & Destructor Documentation

◆ Detector() [1/2]

o2::trk::Detector::Detector ( bool  active)

hardcoded for the current geometry = 36 volumes in the VD. TODO: automatize or change according to the current geometry

VD

MLOT

Definition at line 396 of file Detector.cxx.

◆ Detector() [2/2]

o2::trk::Detector::Detector ( )

◆ ~Detector()

o2::trk::Detector::~Detector ( )

Member Function Documentation

◆ addHit()

o2::itsmft::Hit * o2::trk::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 
)

Definition at line 471 of file Detector.cxx.

◆ BeginPrimary()

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

Definition at line 54 of file Detector.h.

◆ buildTRKNewVacuumVessel()

void o2::trk::Detector::buildTRKNewVacuumVessel ( )

Definition at line 118 of file Detector.cxx.

◆ ClassDefOverride()

o2::trk::Detector::ClassDefOverride ( Detector  ,
 
)

◆ configDefault()

void o2::trk::Detector::configDefault ( )

Definition at line 97 of file Detector.cxx.

◆ configFromFile()

void o2::trk::Detector::configFromFile ( std::string  fileName = "alice3_TRK_layout.txt")

Definition at line 156 of file Detector.cxx.

◆ configServices()

void o2::trk::Detector::configServices ( )

Definition at line 197 of file Detector.cxx.

◆ configToFile()

void o2::trk::Detector::configToFile ( std::string  fileName = "alice3_TRK_layout.txt")

Definition at line 187 of file Detector.cxx.

◆ ConstructGeometry()

void o2::trk::Detector::ConstructGeometry ( )
override

◆ create()

static o2::base::Detector * o2::trk::Detector::create ( bool  active)
inlinestatic

Definition at line 42 of file Detector.h.

◆ createGeometry()

void o2::trk::Detector::createGeometry ( )

Definition at line 243 of file Detector.cxx.

◆ createMaterials()

void o2::trk::Detector::createMaterials ( )

◆ EndOfEvent()

void o2::trk::Detector::EndOfEvent ( )
override

◆ FinishPrimary()

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

Definition at line 55 of file Detector.h.

◆ getHits()

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

Definition at line 65 of file Detector.h.

◆ getNumberOfDisksVD()

int o2::trk::Detector::getNumberOfDisksVD ( ) const
inline

Definition at line 110 of file Detector.h.

◆ getNumberOfLayers()

int o2::trk::Detector::getNumberOfLayers ( ) const
inline

Number of VD petals.

Definition at line 108 of file Detector.h.

◆ getNumberOfLayersVD()

int o2::trk::Detector::getNumberOfLayersVD ( ) const
inline

Number of TRK layers.

Definition at line 109 of file Detector.h.

◆ InitializeO2Detector()

void o2::trk::Detector::InitializeO2Detector ( )
overridevirtual

Implements o2::base::Detector.

◆ PostTrack()

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

Definition at line 57 of file Detector.h.

◆ PreTrack()

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

Definition at line 58 of file Detector.h.

◆ Print()

void o2::trk::Detector::Print ( FairVolume *  vol,
int  volume,
int  subDetID,
int  layer,
int  stave,
int  halfstave,
int  chipID 
) const

Definition at line 479 of file Detector.cxx.

◆ ProcessHits()

bool o2::trk::Detector::ProcessHits ( FairVolume *  v = nullptr)
override

◆ Register()

void o2::trk::Detector::Register ( )
override

◆ Reset()

void o2::trk::Detector::Reset ( )
override

Friends And Related Symbol Documentation

◆ o2::base::DetImpl

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

Definition at line 115 of file Detector.h.

Member Data Documentation

◆ mNumberOfVolumes

constexpr Int_t o2::trk::Detector::mNumberOfVolumes = 44
staticconstexpr

Definition at line 34 of file Detector.h.

◆ mNumberOfVolumesVD

constexpr Int_t o2::trk::Detector::mNumberOfVolumesVD = 36
staticconstexpr

hardcoded for the current geometry = 8 MLOT layers + 36 volumes in the VD. TODO: automatize or change according to the current geometry

Definition at line 35 of file Detector.h.

◆ mSensorID

std::vector<int> o2::trk::Detector::mSensorID
protected

Definition at line 103 of file Detector.h.

◆ mSensorName

std::vector<TString> o2::trk::Detector::mSensorName
protected

layer identifiers

Definition at line 104 of file Detector.h.

◆ sNumberVDPetalCases

constexpr Int_t o2::trk::Detector::sNumberVDPetalCases = 4
staticconstexpr

layer names

Definition at line 107 of file Detector.h.


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