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

#include <BmnSiMD.h>

Inheritance diagram for BmnSiMD:
Collaboration diagram for BmnSiMD:

Public Member Functions

 BmnSiMD ()
 Default constructor.
 BmnSiMD (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnSiMD ()
 Destructor.
virtual void Initialize ()
 Virtual method Initialize Initialises detector.
virtual Bool_t ProcessHits (FairVolume *vol=0)
 Virtual method ProcessHits.
virtual void EndOfEvent ()
 Virtual method EndOfEvent.
virtual void BeginEvent ()
virtual void Register ()
 Virtual method Register.
virtual TClonesArray * GetCollection (Int_t iColl) const
 Accessor to the hit collection.
virtual void Print (Option_t *) const
 Virtual method Print.
virtual void Reset ()
 Virtual method Reset.
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
 Virtual method CopyClones.
virtual void ConstructGeometry ()
 Virtual method Construct geometry.
virtual void ConstructAsciiGeometry ()
virtual Bool_t CheckIfSensitive (std::string name)
BmnSiMDPoint * AddHit (Int_t trackID, Int_t detID, Int_t copyNo, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Bool_t isPrimary, Double_t charge, Int_t pdgId, Double_t timeIn, Double_t timeOut, Double_t lengthtrack)
 BmnSiMD ()
 Default constructor.
 BmnSiMD (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnSiMD ()
 Destructor.
virtual void Initialize ()
 Virtual method Initialize Initialises detector.
virtual Bool_t ProcessHits (FairVolume *vol=0)
 Virtual method ProcessHits.
virtual void EndOfEvent ()
 Virtual method EndOfEvent.
virtual void BeginEvent ()
virtual void Register ()
 Virtual method Register.
virtual TClonesArray * GetCollection (Int_t iColl) const
 Accessor to the hit collection.
virtual void Print (Option_t *) const
 Virtual method Print.
virtual void Reset ()
 Virtual method Reset.
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
 Virtual method CopyClones.
virtual void ConstructGeometry ()
 Virtual method Construct geometry.
virtual void ConstructAsciiGeometry ()
virtual Bool_t CheckIfSensitive (std::string name)
BmnSiMDPoint * AddHit (Int_t trackID, Int_t detID, Int_t copyNo, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Bool_t isPrimary, Double_t charge, Int_t pdgId, Double_t timeIn, Double_t timeOut, Double_t lengthtrack)

Private Member Functions

void ResetParameters ()
 length
 BmnSiMD (const BmnSiMD &)=delete
BmnSiMD operator= (const BmnSiMD &)=delete
void ResetParameters ()
 length
 BmnSiMD (const BmnSiMD &)=delete
BmnSiMD operator= (const BmnSiMD &)=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
Double32_t fLength
 time
Double32_t fELoss
 length
Int_t fPosIndex
 energy loss
Int_t volDetector
Int_t fIsPrimary
 MC volume ID of MUO.
Double_t fCharge
 is track primary?
Int_t fPdgId
 track charge
Float_t fLightYield
 pdg id of particle
TClonesArray * fSiMDCollection
Double32_t fTimeIn
 Hit collection.
Double32_t fTimeOut
 time
Double32_t fLengthtrack
 time

Detailed Description

Definition at line 23 of file BmnSiMD.h.

Constructor & Destructor Documentation

◆ BmnSiMD() [1/6]

BmnSiMD::BmnSiMD ( )

Definition at line 24 of file BmnSiMD.cxx.

References fPosIndex, fSiMDCollection, and volDetector.

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

Here is the caller graph for this function:

◆ BmnSiMD() [2/6]

BmnSiMD::BmnSiMD ( const char * name,
Bool_t active )
Parameters
namedetetcor name
activesensitivity flag

Definition at line 36 of file BmnSiMD.cxx.

References fPosIndex, fSiMDCollection, and volDetector.

◆ ~BmnSiMD() [1/2]

BmnSiMD::~BmnSiMD ( )
virtual

Definition at line 49 of file BmnSiMD.cxx.

References fSiMDCollection.

◆ BmnSiMD() [3/6]

BmnSiMD::BmnSiMD ( const BmnSiMD & )
privatedelete

References BmnSiMD().

Here is the call graph for this function:

◆ BmnSiMD() [4/6]

BmnSiMD::BmnSiMD ( )

◆ BmnSiMD() [5/6]

BmnSiMD::BmnSiMD ( const char * name,
Bool_t active )
Parameters
namedetetcor name
activesensitivity flag

◆ ~BmnSiMD() [2/2]

virtual BmnSiMD::~BmnSiMD ( )
virtual

◆ BmnSiMD() [6/6]

BmnSiMD::BmnSiMD ( const BmnSiMD & )
privatedelete

References BmnSiMD().

Here is the call graph for this function:

Member Function Documentation

◆ AddHit() [1/2]

BmnSiMDPoint * BmnSiMD::AddHit ( Int_t trackID,
Int_t detID,
Int_t copyNo,
TVector3 posIn,
TVector3 posOut,
TVector3 momIn,
TVector3 momOut,
Double_t tof,
Double_t length,
Double_t eLoss,
Bool_t isPrimary,
Double_t charge,
Int_t pdgId,
Double_t timeIn,
Double_t timeOut,
Double_t lengthtrack )

Definition at line 356 of file BmnSiMD.cxx.

References fSiMDCollection, and TObjArray::GetEntriesFast().

Referenced by ProcessHits().

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

◆ AddHit() [2/2]

BmnSiMDPoint * BmnSiMD::AddHit ( Int_t trackID,
Int_t detID,
Int_t copyNo,
TVector3 posIn,
TVector3 posOut,
TVector3 momIn,
TVector3 momOut,
Double_t tof,
Double_t length,
Double_t eLoss,
Bool_t isPrimary,
Double_t charge,
Int_t pdgId,
Double_t timeIn,
Double_t timeOut,
Double_t lengthtrack )

◆ BeginEvent() [1/2]

void BmnSiMD::BeginEvent ( )
virtual

Definition at line 67 of file BmnSiMD.cxx.

◆ BeginEvent() [2/2]

virtual void BmnSiMD::BeginEvent ( )
virtual

◆ CheckIfSensitive() [1/2]

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

Definition at line 345 of file BmnSiMD.cxx.

References TString::Contains().

Here is the call graph for this function:

◆ CheckIfSensitive() [2/2]

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

◆ ConstructAsciiGeometry() [1/2]

void BmnSiMD::ConstructAsciiGeometry ( )
virtual

Definition at line 306 of file BmnSiMD.cxx.

References TObjArray::AddLast(), BmnSiMDGeoPar::GetGeoPassiveNodes(), BmnSiMDGeoPar::GetGeoSensitiveNodes(), and TListIter::Next().

Referenced by ConstructGeometry().

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

◆ ConstructAsciiGeometry() [2/2]

virtual void BmnSiMD::ConstructAsciiGeometry ( )
virtual

◆ ConstructGeometry() [1/2]

void BmnSiMD::ConstructGeometry ( )
virtual

Definition at line 293 of file BmnSiMD.cxx.

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

Here is the call graph for this function:

◆ ConstructGeometry() [2/2]

virtual void BmnSiMD::ConstructGeometry ( )
virtual

◆ CopyClones() [1/2]

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

Copies the hit collection with a given track index offset

Parameters
cl1Origin
cl2Target
offsetIndex offset

Definition at line 276 of file BmnSiMD.cxx.

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

Here is the call graph for this function:

◆ CopyClones() [2/2]

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

Copies the hit collection with a given track index offset

Parameters
cl1Origin
cl2Target
offsetIndex offset

◆ EndOfEvent() [1/2]

void BmnSiMD::EndOfEvent ( )
virtual

If verbosity level is set, print hit collection at the end of the event and resets it afterwards.

Definition at line 233 of file BmnSiMD.cxx.

References Print(), and Reset().

Here is the call graph for this function:

◆ EndOfEvent() [2/2]

virtual void BmnSiMD::EndOfEvent ( )
virtual

If verbosity level is set, print hit collection at the end of the event and resets it afterwards.

◆ GetCollection() [1/2]

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

Definition at line 247 of file BmnSiMD.cxx.

References fSiMDCollection.

◆ GetCollection() [2/2]

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

◆ Initialize() [1/2]

void BmnSiMD::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

Definition at line 58 of file BmnSiMD.cxx.

◆ Initialize() [2/2]

virtual void BmnSiMD::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

◆ operator=() [1/2]

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

References BmnSiMD().

Here is the call graph for this function:

◆ operator=() [2/2]

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

References BmnSiMD().

Here is the call graph for this function:

◆ Print() [1/2]

void BmnSiMD::Print ( Option_t * ) const
virtual

Screen output of hit collection.

Definition at line 256 of file BmnSiMD.cxx.

References fSiMDCollection, and i.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Print() [2/2]

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

Screen output of hit collection.

◆ ProcessHits() [1/2]

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

Defines the action to be taken when a step is inside the active volume. Creates BmnBdPoints and BmnBdMirrorPoints and adds them to the collections.

Parameters
volPointer to the active volume

Definition at line 73 of file BmnSiMD.cxx.

References AddHit(), TParticlePDG::Charge(), fCharge, fELoss, fIsPrimary, fMomIn, fMomOut, fPdgId, fPosIn, fPosOut, fTrackID, TParticle::GetPDG(), TParticle::GetPdgCode(), TParticle::IsPrimary(), kSiMD, TLorentzVector::Px(), TLorentzVector::Py(), TLorentzVector::Pz(), ResetParameters(), TLorentzVector::X(), TLorentzVector::Y(), and TLorentzVector::Z().

Here is the call graph for this function:

◆ ProcessHits() [2/2]

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

Defines the action to be taken when a step is inside the active volume. Creates BmnBdPoints and BmnBdMirrorPoints and adds them to the collections.

Parameters
volPointer to the active volume

◆ Register() [1/2]

void BmnSiMD::Register ( )
virtual

Registers the hit collection in the ROOT manager.

Definition at line 241 of file BmnSiMD.cxx.

References fSiMDCollection.

◆ Register() [2/2]

virtual void BmnSiMD::Register ( )
virtual

Registers the hit collection in the ROOT manager.

◆ Reset() [1/2]

void BmnSiMD::Reset ( )
virtual

Clears the hit collection

Definition at line 267 of file BmnSiMD.cxx.

References fPosIndex, and fSiMDCollection.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Reset() [2/2]

virtual void BmnSiMD::Reset ( )
virtual

Clears the hit collection

◆ ResetParameters() [1/2]

void BmnSiMD::ResetParameters ( )
inlineprivate

Definition at line 144 of file BmnSiMD.h.

References fELoss, fLength, fLengthtrack, fLightYield, fMomIn, fMomOut, fPosIn, fPosIndex, fPosOut, fTime, fTimeIn, fTimeOut, fTrackID, and fVolumeID.

Referenced by ProcessHits().

Here is the caller graph for this function:

◆ ResetParameters() [2/2]

void BmnSiMD::ResetParameters ( )
private

Member Data Documentation

◆ fCharge

Double_t BmnSiMD::fCharge
private

Definition at line 127 of file BmnSiMD.h.

Referenced by AddHit(), and ProcessHits().

◆ fELoss

Double32_t BmnSiMD::fELoss
private

Definition at line 123 of file BmnSiMD.h.

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

◆ fIsPrimary

Int_t BmnSiMD::fIsPrimary
private

Definition at line 126 of file BmnSiMD.h.

Referenced by AddHit(), and ProcessHits().

◆ fLength

Double32_t BmnSiMD::fLength
private

Definition at line 122 of file BmnSiMD.h.

Referenced by AddHit(), and ResetParameters().

◆ fLengthtrack

Double32_t BmnSiMD::fLengthtrack
private

Definition at line 133 of file BmnSiMD.h.

Referenced by AddHit(), and ResetParameters().

◆ fLightYield

Float_t BmnSiMD::fLightYield
private

Definition at line 129 of file BmnSiMD.h.

Referenced by AddHit(), and ResetParameters().

◆ fMomIn

TVector3 BmnSiMD::fMomIn
private

Definition at line 119 of file BmnSiMD.h.

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

◆ fMomOut

TVector3 BmnSiMD::fMomOut
private

Definition at line 120 of file BmnSiMD.h.

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

◆ fPdgId

Int_t BmnSiMD::fPdgId
private

Definition at line 128 of file BmnSiMD.h.

Referenced by AddHit(), and ProcessHits().

◆ fPosIn

TVector3 BmnSiMD::fPosIn
private

Definition at line 117 of file BmnSiMD.h.

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

◆ fPosIndex

Int_t BmnSiMD::fPosIndex
private

Definition at line 124 of file BmnSiMD.h.

Referenced by BmnSiMD(), BmnSiMD(), AddHit(), CopyClones(), Reset(), and ResetParameters().

◆ fPosOut

TVector3 BmnSiMD::fPosOut
private

Definition at line 118 of file BmnSiMD.h.

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

◆ fSiMDCollection

TClonesArray * BmnSiMD::fSiMDCollection
private

Definition at line 130 of file BmnSiMD.h.

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

◆ fTime

Double32_t BmnSiMD::fTime
private

Definition at line 121 of file BmnSiMD.h.

Referenced by AddHit(), and ResetParameters().

◆ fTimeIn

Double32_t BmnSiMD::fTimeIn
private

Definition at line 131 of file BmnSiMD.h.

Referenced by AddHit(), and ResetParameters().

◆ fTimeOut

Double32_t BmnSiMD::fTimeOut
private

Definition at line 132 of file BmnSiMD.h.

Referenced by AddHit(), and ResetParameters().

◆ fTrackID

Int_t BmnSiMD::fTrackID
private

Definition at line 114 of file BmnSiMD.h.

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

◆ fVolumeID

Int_t BmnSiMD::fVolumeID
private

Definition at line 115 of file BmnSiMD.h.

Referenced by AddHit(), and ResetParameters().

◆ volDetector

Int_t BmnSiMD::volDetector
private

Definition at line 125 of file BmnSiMD.h.

Referenced by BmnSiMD(), BmnSiMD(), and AddHit().


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