BmnRoot 26.10.0-233-gb9bbe585
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)

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

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/3]

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/3]

BmnCSC::BmnCSC ( )

Definition at line 21 of file BmnCSC.cxx.

References fPointCollection, fPosIndex, and ResetParameters().

Here is the call graph for this function:

◆ ~BmnCSC()

BmnCSC::~BmnCSC ( )
virtual

Definition at line 39 of file BmnCSC.cxx.

References fPointCollection.

◆ BmnCSC() [3/3]

BmnCSC::BmnCSC ( const BmnCSC & )
privatedelete

References BmnCSC().

Here is the call graph for this function:

Member Function Documentation

◆ AddHit()

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:

◆ CheckIfSensitive()

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:

◆ ConstructGDMLGeometry()

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:

◆ ConstructGeometry()

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:

◆ CopyClones()

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:

◆ EndOfEvent()

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:

◆ ExpandNodeForGdml()

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:

◆ GetCollection()

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

Definition at line 152 of file BmnCSC.cxx.

References fPointCollection.

◆ operator=()

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

References BmnCSC().

Here is the call graph for this function:

◆ Print()

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:

◆ ProcessHits()

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:

◆ Register()

void BmnCSC::Register ( )
virtual

Definition at line 147 of file BmnCSC.cxx.

References fPointCollection.

◆ Reset()

void BmnCSC::Reset ( )
virtual

Definition at line 171 of file BmnCSC.cxx.

References fPointCollection, and ResetParameters().

Here is the call graph for this function:

◆ ResetParameters()

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:

Member Data Documentation

◆ fCharge

Double_t BmnCSC::fCharge
private

Definition at line 77 of file BmnCSC.h.

Referenced by ProcessHits().

◆ fELoss

Double32_t BmnCSC::fELoss
private

Definition at line 75 of file BmnCSC.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fFixedMedia

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

Definition at line 83 of file BmnCSC.h.

Referenced by ExpandNodeForGdml().

◆ fIsPrimary

Int_t BmnCSC::fIsPrimary
private

Definition at line 76 of file BmnCSC.h.

Referenced by ProcessHits().

◆ fLength

Double32_t BmnCSC::fLength
private

Definition at line 74 of file BmnCSC.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fMomIn

TVector3 BmnCSC::fMomIn
private

Definition at line 71 of file BmnCSC.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fMomOut

TVector3 BmnCSC::fMomOut
private

Definition at line 72 of file BmnCSC.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fPdgId

Int_t BmnCSC::fPdgId
private

Definition at line 78 of file BmnCSC.h.

Referenced by ProcessHits().

◆ fPointCollection

TClonesArray* BmnCSC::fPointCollection
private

Definition at line 81 of file BmnCSC.h.

Referenced by BmnCSC(), BmnCSC(), ~BmnCSC(), AddHit(), EndOfEvent(), GetCollection(), Print(), Register(), and Reset().

◆ fPosIn

TVector3 BmnCSC::fPosIn
private

Definition at line 69 of file BmnCSC.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fPosIndex

Int_t BmnCSC::fPosIndex
private

Definition at line 80 of file BmnCSC.h.

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

◆ fPosOut

TVector3 BmnCSC::fPosOut
private

Definition at line 70 of file BmnCSC.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fTime

Double32_t BmnCSC::fTime
private

Definition at line 73 of file BmnCSC.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fTrackID

Int_t BmnCSC::fTrackID
private

Definition at line 67 of file BmnCSC.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fVolumeID

Int_t BmnCSC::fVolumeID
private

Definition at line 68 of file BmnCSC.h.

Referenced by ProcessHits(), and ResetParameters().


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