BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnCSC Class Reference

#include <BmnCSC.h>

Inheritance diagram for BmnCSC:
Collaboration diagram for BmnCSC:

Public Member Functions

 BmnCSC (const char *name, Bool_t active)
 BmnCSC ()
virtual ~BmnCSC ()
virtual Bool_t ProcessHits (FairVolume *vol=0)
virtual void EndOfEvent ()
virtual void Register ()
virtual TClonesArray * GetCollection (Int_t iColl) const
virtual void Print (Option_t *) const
virtual void Reset ()
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
virtual void ConstructGeometry ()
virtual void ConstructGDMLGeometry (TGeoMatrix *)
void ExpandNodeForGdml (TGeoNode *node)
virtual Bool_t CheckIfSensitive (std::string name)
 BmnCSC (const char *name, Bool_t active)
 BmnCSC ()
virtual ~BmnCSC ()
virtual Bool_t ProcessHits (FairVolume *vol=0)
virtual void EndOfEvent ()
virtual void Register ()
virtual TClonesArray * GetCollection (Int_t iColl) const
virtual void Print (Option_t *) const
virtual void Reset ()
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
virtual void ConstructGeometry ()
virtual void ConstructGDMLGeometry (TGeoMatrix *)
void ExpandNodeForGdml (TGeoNode *node)
virtual Bool_t CheckIfSensitive (std::string name)

Private Member Functions

BmnCSCPoint * AddHit (Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t pdgId, Int_t stationNum, Int_t moduleNum)
void ResetParameters ()
 BmnCSC (const BmnCSC &)=delete
BmnCSC operator= (const BmnCSC &)=delete
BmnCSCPoint * AddHit (Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t pdgId, Int_t stationNum, Int_t moduleNum)
void ResetParameters ()
 BmnCSC (const BmnCSC &)=delete
BmnCSC operator= (const BmnCSC &)=delete

Private Attributes

Int_t fTrackID
Int_t fVolumeID
 track index
TVector3 fPosIn
 volume id
TVector3 fPosOut
 position (in)
TVector3 fMomIn
 position (out)
TVector3 fMomOut
 momentum (in)
Double32_t fTime
 momentum (out)
Double32_t fLength
 time
Double32_t fELoss
 length
Int_t fIsPrimary
 energy loss
Double_t fCharge
 is track primary?
Int_t fPdgId
 track charge
Int_t fPosIndex
 pdg id of particle
TClonesArray * fPointCollection
std::map< TString, TGeoMedium * > fFixedMedia
 Hit collection.

Detailed Description

Definition at line 13 of file BmnCSC.h.

Constructor & Destructor Documentation

◆ BmnCSC() [1/6]

BmnCSC::BmnCSC ( const char * name,
Bool_t active )

Definition at line 30 of file BmnCSC.cxx.

References fPointCollection, fPosIndex, and ResetParameters().

Referenced by BmnCSC(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BmnCSC() [2/6]

BmnCSC::BmnCSC ( )

Definition at line 21 of file BmnCSC.cxx.

References fPointCollection, fPosIndex, and ResetParameters().

Here is the call graph for this function:

◆ ~BmnCSC() [1/2]

BmnCSC::~BmnCSC ( )
virtual

Definition at line 39 of file BmnCSC.cxx.

References fPointCollection.

◆ BmnCSC() [3/6]

BmnCSC::BmnCSC ( const BmnCSC & )
privatedelete

References BmnCSC().

Here is the call graph for this function:

◆ BmnCSC() [4/6]

BmnCSC::BmnCSC ( const char * name,
Bool_t active )

◆ BmnCSC() [5/6]

BmnCSC::BmnCSC ( )

◆ ~BmnCSC() [2/2]

virtual BmnCSC::~BmnCSC ( )
virtual

◆ BmnCSC() [6/6]

BmnCSC::BmnCSC ( const BmnCSC & )
privatedelete

References BmnCSC().

Here is the call graph for this function:

Member Function Documentation

◆ AddHit() [1/2]

BmnCSCPoint * BmnCSC::AddHit ( Int_t trackID,
Int_t detID,
TVector3 posIn,
TVector3 posOut,
TVector3 momIn,
TVector3 momOut,
Double_t time,
Double_t length,
Double_t eLoss,
Int_t isPrimary,
Double_t charge,
Int_t pdgId,
Int_t stationNum,
Int_t moduleNum )
private

Definition at line 384 of file BmnCSC.cxx.

References TObjArray::At(), fPointCollection, TObjArray::GetEntriesFast(), BmnCSCPoint::SetModule(), and BmnCSCPoint::SetStation().

Referenced by ProcessHits().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddHit() [2/2]

BmnCSCPoint * BmnCSC::AddHit ( Int_t trackID,
Int_t detID,
TVector3 posIn,
TVector3 posOut,
TVector3 momIn,
TVector3 momOut,
Double_t time,
Double_t length,
Double_t eLoss,
Int_t isPrimary,
Double_t charge,
Int_t pdgId,
Int_t stationNum,
Int_t moduleNum )
private

◆ CheckIfSensitive() [1/2]

Bool_t BmnCSC::CheckIfSensitive ( std::string name)
virtual

Definition at line 373 of file BmnCSC.cxx.

References TString::Contains().

Here is the call graph for this function:

◆ CheckIfSensitive() [2/2]

virtual Bool_t BmnCSC::CheckIfSensitive ( std::string name)
virtual

◆ ConstructGDMLGeometry() [1/2]

void BmnCSC::ConstructGDMLGeometry ( TGeoMatrix * )
virtual

Definition at line 217 of file BmnCSC.cxx.

References ExpandNodeForGdml(), TGDMLParse::GDMLReadFile(), TGeoMedium::GetId(), TNamed::GetName(), and m.

Referenced by ConstructGeometry().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructGDMLGeometry() [2/2]

virtual void BmnCSC::ConstructGDMLGeometry ( TGeoMatrix * )
virtual

◆ ConstructGeometry() [1/2]

void BmnCSC::ConstructGeometry ( )
virtual

Definition at line 195 of file BmnCSC.cxx.

References ConstructGDMLGeometry(), TString::Data(), and TString::EndsWith().

Here is the call graph for this function:

◆ ConstructGeometry() [2/2]

virtual void BmnCSC::ConstructGeometry ( )
virtual

◆ CopyClones() [1/2]

void BmnCSC::CopyClones ( TClonesArray * cl1,
TClonesArray * cl2,
Int_t offset )
virtual

Definition at line 177 of file BmnCSC.cxx.

References TObjArray::At(), fPosIndex, TObjArray::GetEntriesFast(), and i.

Here is the call graph for this function:

◆ CopyClones() [2/2]

virtual void BmnCSC::CopyClones ( TClonesArray * cl1,
TClonesArray * cl2,
Int_t offset )
virtual

◆ EndOfEvent() [1/2]

void BmnCSC::EndOfEvent ( )
virtual

Definition at line 139 of file BmnCSC.cxx.

References fPointCollection, fPosIndex, and Print().

Here is the call graph for this function:

◆ EndOfEvent() [2/2]

virtual void BmnCSC::EndOfEvent ( )
virtual

◆ ExpandNodeForGdml() [1/2]

void BmnCSC::ExpandNodeForGdml ( TGeoNode * node)

This should not happen. This means that somebody uses material in GDML that is not in the media.geo file. Most probably this is the sign to the user to check materials' names in the CATIA model.

Recursevly go down the tree of nodes

Definition at line 262 of file BmnCSC.cxx.

References TObjArray::At(), ExpandNodeForGdml(), fFixedMedia, TObjArray::GetEntriesFast(), TGeoMedium::GetId(), TGeoMaterial::GetIndex(), TGeoMedium::GetMaterial(), TGeoVolume::GetMaterial(), TGeoVolume::GetMedium(), TNamed::GetName(), TGeoVolume::GetNdaughters(), TGeoVolume::GetNodes(), TGeoNode::GetVolume(), i, TGeoVolume::IsAssembly(), m, and TGeoVolume::SetMedium().

Referenced by ConstructGDMLGeometry(), and ExpandNodeForGdml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExpandNodeForGdml() [2/2]

void BmnCSC::ExpandNodeForGdml ( TGeoNode * node)

◆ GetCollection() [1/2]

TClonesArray * BmnCSC::GetCollection ( Int_t iColl) const
virtual

Definition at line 152 of file BmnCSC.cxx.

References fPointCollection.

◆ GetCollection() [2/2]

virtual TClonesArray * BmnCSC::GetCollection ( Int_t iColl) const
virtual

◆ operator=() [1/2]

BmnCSC BmnCSC::operator= ( const BmnCSC & )
privatedelete

References BmnCSC().

Here is the call graph for this function:

◆ operator=() [2/2]

BmnCSC BmnCSC::operator= ( const BmnCSC & )
privatedelete

References BmnCSC().

Here is the call graph for this function:

◆ Print() [1/2]

void BmnCSC::Print ( Option_t * ) const
virtual

Definition at line 159 of file BmnCSC.cxx.

References fPointCollection, and i.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Print() [2/2]

virtual void BmnCSC::Print ( Option_t * ) const
virtual

◆ ProcessHits() [1/2]

Bool_t BmnCSC::ProcessHits ( FairVolume * vol = 0)
virtual

Definition at line 49 of file BmnCSC.cxx.

References AddHit(), TString::Atoi(), TParticlePDG::Charge(), TString::Contains(), fCharge, fELoss, fIsPrimary, fLength, fMomIn, fMomOut, fPdgId, fPosIn, fPosOut, fTime, fTrackID, fVolumeID, TNamed::GetName(), TParticle::GetPDG(), TParticle::GetPdgCode(), TParticle::IsPrimary(), kCSC, TVector3::Mag(), ResetParameters(), TVector3::SetMag(), TLorentzVector::X(), TLorentzVector::Y(), and TLorentzVector::Z().

Here is the call graph for this function:

◆ ProcessHits() [2/2]

virtual Bool_t BmnCSC::ProcessHits ( FairVolume * vol = 0)
virtual

◆ Register() [1/2]

void BmnCSC::Register ( )
virtual

Definition at line 147 of file BmnCSC.cxx.

References fPointCollection.

◆ Register() [2/2]

virtual void BmnCSC::Register ( )
virtual

◆ Reset() [1/2]

void BmnCSC::Reset ( )
virtual

Definition at line 171 of file BmnCSC.cxx.

References fPointCollection, and ResetParameters().

Here is the call graph for this function:

◆ Reset() [2/2]

virtual void BmnCSC::Reset ( )
virtual

◆ ResetParameters() [1/2]

void BmnCSC::ResetParameters ( )
inlineprivate

Definition at line 110 of file BmnCSC.h.

References fELoss, fLength, fMomIn, fMomOut, fPosIn, fPosIndex, fPosOut, fTime, fTrackID, and fVolumeID.

Referenced by BmnCSC(), BmnCSC(), ProcessHits(), and Reset().

Here is the caller graph for this function:

◆ ResetParameters() [2/2]

void BmnCSC::ResetParameters ( )
private

Member Data Documentation

◆ fCharge

Double_t BmnCSC::fCharge
private

Definition at line 77 of file BmnCSC.h.

Referenced by CheckIfSensitive(), and ProcessHits().

◆ fELoss

Double32_t BmnCSC::fELoss
private

Definition at line 75 of file BmnCSC.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fFixedMedia

std::map< TString, TGeoMedium * > BmnCSC::fFixedMedia
private

Definition at line 83 of file BmnCSC.h.

Referenced by CheckIfSensitive(), and ExpandNodeForGdml().

◆ fIsPrimary

Int_t BmnCSC::fIsPrimary
private

Definition at line 76 of file BmnCSC.h.

Referenced by CheckIfSensitive(), and ProcessHits().

◆ fLength

Double32_t BmnCSC::fLength
private

Definition at line 74 of file BmnCSC.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fMomIn

TVector3 BmnCSC::fMomIn
private

Definition at line 71 of file BmnCSC.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fMomOut

TVector3 BmnCSC::fMomOut
private

Definition at line 72 of file BmnCSC.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fPdgId

Int_t BmnCSC::fPdgId
private

Definition at line 78 of file BmnCSC.h.

Referenced by CheckIfSensitive(), and ProcessHits().

◆ fPointCollection

TClonesArray * BmnCSC::fPointCollection
private

◆ fPosIn

TVector3 BmnCSC::fPosIn
private

Definition at line 69 of file BmnCSC.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fPosIndex

Int_t BmnCSC::fPosIndex
private

Definition at line 80 of file BmnCSC.h.

Referenced by BmnCSC(), BmnCSC(), CheckIfSensitive(), CopyClones(), EndOfEvent(), and ResetParameters().

◆ fPosOut

TVector3 BmnCSC::fPosOut
private

Definition at line 70 of file BmnCSC.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fTime

Double32_t BmnCSC::fTime
private

Definition at line 73 of file BmnCSC.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fTrackID

Int_t BmnCSC::fTrackID
private

Definition at line 67 of file BmnCSC.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fVolumeID

Int_t BmnCSC::fVolumeID
private

Definition at line 68 of file BmnCSC.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().


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