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

#include <Detector.h>

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

Public Member Functions

 Detector (Bool_t active=true)
 
 ~Detector () override=default
 
std::vector< o2::hmpid::HitType > * getHits (int iColl) const
 
void InitializeO2Detector () override
 
bool ProcessHits (FairVolume *v) override
 
o2::hmpid::HitTypeAddHit (float x, float y, float z, float time, float energy, Int_t trackId, Int_t detId)
 
void GenFee (float qtot)
 
Bool_t IsLostByFresnel ()
 
float Fresnel (float ene, float pdoti, Bool_t pola)
 
void Register () override
 
void Reset () override
 
void IdealPosition (int iCh, TGeoHMatrix *pMatrix)
 
void IdealPositionCradle (int iCh, TGeoHMatrix *pMatrix)
 
void createMaterials ()
 
void ConstructGeometry () override
 
void ConstructOpGeometry () override
 
void defineOpticalProperties ()
 
void EndOfEvent () override
 
TGeoVolume * createAbsorber (float tickness)
 
TGeoVolume * createChamber (int number)
 
TGeoVolume * CreateCradle ()
 
TGeoVolume * CradleBaseVolume (TGeoMedium *med, double l[7], const char *name)
 
- 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
 

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 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 26 of file Detector.h.

Constructor & Destructor Documentation

◆ Detector()

o2::hmpid::Detector::Detector ( Bool_t  active = true)

Definition at line 42 of file Detector.cxx.

◆ ~Detector()

o2::hmpid::Detector::~Detector ( )
overridedefault

Member Function Documentation

◆ AddHit()

o2::hmpid::HitType * o2::hmpid::Detector::AddHit ( float  x,
float  y,
float  z,
float  time,
float  energy,
Int_t  trackId,
Int_t  detId 
)

Definition at line 178 of file Detector.cxx.

◆ ConstructGeometry()

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

Definition at line 1254 of file Detector.cxx.

◆ ConstructOpGeometry()

void o2::hmpid::Detector::ConstructOpGeometry ( )
override

Definition at line 1297 of file Detector.cxx.

◆ CradleBaseVolume()

TGeoVolume * o2::hmpid::Detector::CradleBaseVolume ( TGeoMedium *  med,
double  l[7],
const char name 
)

Definition at line 1183 of file Detector.cxx.

◆ createAbsorber()

TGeoVolume * o2::hmpid::Detector::createAbsorber ( float  tickness)

Definition at line 541 of file Detector.cxx.

◆ createChamber()

TGeoVolume * o2::hmpid::Detector::createChamber ( int  number)

Definition at line 551 of file Detector.cxx.

◆ CreateCradle()

TGeoVolume * o2::hmpid::Detector::CreateCradle ( )

Definition at line 858 of file Detector.cxx.

◆ createMaterials()

void o2::hmpid::Detector::createMaterials ( )

Definition at line 457 of file Detector.cxx.

◆ defineOpticalProperties()

void o2::hmpid::Detector::defineOpticalProperties ( )

Definition at line 1303 of file Detector.cxx.

◆ EndOfEvent()

void o2::hmpid::Detector::EndOfEvent ( )
inlineoverride

Definition at line 55 of file Detector.h.

◆ Fresnel()

Float_t o2::hmpid::Detector::Fresnel ( float  ene,
float  pdoti,
Bool_t  pola 
)

Definition at line 306 of file Detector.cxx.

◆ GenFee()

void o2::hmpid::Detector::GenFee ( float  qtot)

Definition at line 184 of file Detector.cxx.

◆ getHits()

std::vector< o2::hmpid::HitType > * o2::hmpid::Detector::getHits ( int  iColl) const
inline

Definition at line 32 of file Detector.h.

◆ IdealPosition()

void o2::hmpid::Detector::IdealPosition ( int  iCh,
TGeoHMatrix *  pMatrix 
)

Definition at line 373 of file Detector.cxx.

◆ IdealPositionCradle()

void o2::hmpid::Detector::IdealPositionCradle ( int  iCh,
TGeoHMatrix *  pMatrix 
)

Definition at line 414 of file Detector.cxx.

◆ InitializeO2Detector()

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

Implements o2::base::Detector.

Definition at line 47 of file Detector.cxx.

◆ IsLostByFresnel()

Bool_t o2::hmpid::Detector::IsLostByFresnel ( )

Definition at line 282 of file Detector.cxx.

◆ ProcessHits()

bool o2::hmpid::Detector::ProcessHits ( FairVolume *  v)
override

Definition at line 70 of file Detector.cxx.

◆ Register()

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

Definition at line 364 of file Detector.cxx.

◆ Reset()

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

Definition at line 366 of file Detector.cxx.

Friends And Related Symbol Documentation

◆ o2::base::DetImpl

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

Definition at line 102 of file Detector.h.


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