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

#include <BmnZdc.h>

Inheritance diagram for BmnZdc:
Collaboration diagram for BmnZdc:

Public Member Functions

 BmnZdc ()
 Default constructor.
 BmnZdc (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnZdc ()
 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 Bool_t CheckIfSensitive (std::string name)
BmnZdcPoint * AddHit (Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss)
 BmnZdc ()
 Default constructor.
 BmnZdc (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnZdc ()
 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 Bool_t CheckIfSensitive (std::string name)
BmnZdcPoint * AddHit (Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss)

Private Member Functions

void ResetParameters ()
 Hit collection.
void ResetParameters ()
 Hit collection.

Private Attributes

Int_t fTrackID
Int_t fVolumeID
 track index
Int_t fEventID
 volume id
TLorentzVector fPos
 event id
TLorentzVector fMom
 position
Double32_t fTime
 momentum
Double32_t fLength
 time
Double32_t fELoss
 length
Int_t fVSCVolId
 energy loss
Int_t fVSCVolId_after
Int_t fPosIndex
Int_t volDetector
TClonesArray * fZdcCollection
 MC volume ID of MUO.

Detailed Description

Definition at line 26 of file BmnZdc.h.

Constructor & Destructor Documentation

◆ BmnZdc() [1/4]

BmnZdc::BmnZdc ( )

Definition at line 42 of file BmnZdc.cxx.

References fEventID, fPosIndex, fVSCVolId, fVSCVolId_after, fZdcCollection, and volDetector.

Referenced by ResetParameters().

Here is the caller graph for this function:

◆ BmnZdc() [2/4]

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

Definition at line 57 of file BmnZdc.cxx.

References fEventID, fPosIndex, fVSCVolId, fVSCVolId_after, fZdcCollection, and volDetector.

◆ ~BmnZdc() [1/2]

BmnZdc::~BmnZdc ( )
virtual

Definition at line 73 of file BmnZdc.cxx.

References fZdcCollection.

◆ BmnZdc() [3/4]

BmnZdc::BmnZdc ( )

◆ BmnZdc() [4/4]

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

◆ ~BmnZdc() [2/2]

virtual BmnZdc::~BmnZdc ( )
virtual

Member Function Documentation

◆ AddHit() [1/2]

BmnZdcPoint * BmnZdc::AddHit ( Int_t trackID,
Int_t detID,
Int_t copyNo,
Int_t copyNoMother,
TVector3 pos,
TVector3 mom,
Double_t tof,
Double_t length,
Double_t eLoss )

Definition at line 520 of file BmnZdc.cxx.

References fZdcCollection, 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]

BmnZdcPoint * BmnZdc::AddHit ( Int_t trackID,
Int_t detID,
Int_t copyNo,
Int_t copyNoMother,
TVector3 pos,
TVector3 mom,
Double_t tof,
Double_t length,
Double_t eLoss )

◆ BeginEvent() [1/2]

void BmnZdc::BeginEvent ( )
virtual

Definition at line 96 of file BmnZdc.cxx.

◆ BeginEvent() [2/2]

virtual void BmnZdc::BeginEvent ( )
virtual

◆ CheckIfSensitive() [1/2]

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

Definition at line 508 of file BmnZdc.cxx.

References TString::Contains().

Here is the call graph for this function:

◆ CheckIfSensitive() [2/2]

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

◆ ConstructGeometry() [1/2]

void BmnZdc::ConstructGeometry ( )
virtual

Definition at line 459 of file BmnZdc.cxx.

References TObjArray::AddLast(), TString::Data(), TString::EndsWith(), BmnZdcGeoPar::GetGeoPassiveNodes(), BmnZdcGeoPar::GetGeoSensitiveNodes(), and TListIter::Next().

Here is the call graph for this function:

◆ ConstructGeometry() [2/2]

virtual void BmnZdc::ConstructGeometry ( )
virtual

◆ CopyClones() [1/2]

void BmnZdc::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 441 of file BmnZdc.cxx.

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

Here is the call graph for this function:

◆ CopyClones() [2/2]

virtual void BmnZdc::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 BmnZdc::EndOfEvent ( )
virtual

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

Definition at line 398 of file BmnZdc.cxx.

References Print(), and Reset().

Here is the call graph for this function:

◆ EndOfEvent() [2/2]

virtual void BmnZdc::EndOfEvent ( )
virtual

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

◆ GetCollection() [1/2]

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

Definition at line 412 of file BmnZdc.cxx.

References fZdcCollection.

◆ GetCollection() [2/2]

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

◆ Initialize() [1/2]

void BmnZdc::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

Definition at line 83 of file BmnZdc.cxx.

References fVSCVolId, and fVSCVolId_after.

◆ Initialize() [2/2]

virtual void BmnZdc::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

◆ Print() [1/2]

void BmnZdc::Print ( Option_t * ) const
virtual

Screen output of hit collection.

Definition at line 421 of file BmnZdc.cxx.

References fZdcCollection, and i.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Print() [2/2]

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

Screen output of hit collection.

◆ ProcessHits() [1/2]

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

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

Parameters
volPointer to the active volume

Definition at line 103 of file BmnZdc.cxx.

References AddHit(), fELoss, fEventID, fTrackID, fVSCVolId, fVSCVolId_after, kZDC, 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 BmnZdc::ProcessHits ( FairVolume * vol = 0)
virtual

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

Parameters
volPointer to the active volume

◆ Register() [1/2]

void BmnZdc::Register ( )
virtual

Registers the hit collection in the ROOT manager.

Definition at line 406 of file BmnZdc.cxx.

References fZdcCollection.

◆ Register() [2/2]

virtual void BmnZdc::Register ( )
virtual

Registers the hit collection in the ROOT manager.

◆ Reset() [1/2]

void BmnZdc::Reset ( )
virtual

Clears the hit collection

Definition at line 432 of file BmnZdc.cxx.

References fPosIndex, and fZdcCollection.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Reset() [2/2]

virtual void BmnZdc::Reset ( )
virtual

Clears the hit collection

◆ ResetParameters() [1/2]

void BmnZdc::ResetParameters ( )
inlineprivate

Definition at line 140 of file BmnZdc.h.

References fELoss, fLength, fMom, fPos, fPosIndex, fTime, fTrackID, and fVolumeID.

Referenced by ProcessHits().

Here is the caller graph for this function:

◆ ResetParameters() [2/2]

void BmnZdc::ResetParameters ( )
private

References BmnZdc().

Here is the call graph for this function:

Member Data Documentation

◆ fELoss

Double32_t BmnZdc::fELoss
private

Definition at line 125 of file BmnZdc.h.

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

◆ fEventID

Int_t BmnZdc::fEventID
private

Definition at line 120 of file BmnZdc.h.

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

◆ fLength

Double32_t BmnZdc::fLength
private

Definition at line 124 of file BmnZdc.h.

Referenced by AddHit(), and ResetParameters().

◆ fMom

TLorentzVector BmnZdc::fMom
private

Definition at line 122 of file BmnZdc.h.

Referenced by AddHit(), and ResetParameters().

◆ fPos

TLorentzVector BmnZdc::fPos
private

Definition at line 121 of file BmnZdc.h.

Referenced by AddHit(), and ResetParameters().

◆ fPosIndex

Int_t BmnZdc::fPosIndex
private

Definition at line 128 of file BmnZdc.h.

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

◆ fTime

Double32_t BmnZdc::fTime
private

Definition at line 123 of file BmnZdc.h.

Referenced by AddHit(), and ResetParameters().

◆ fTrackID

Int_t BmnZdc::fTrackID
private

Definition at line 118 of file BmnZdc.h.

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

◆ fVolumeID

Int_t BmnZdc::fVolumeID
private

Definition at line 119 of file BmnZdc.h.

Referenced by AddHit(), and ResetParameters().

◆ fVSCVolId

Int_t BmnZdc::fVSCVolId
private

Definition at line 126 of file BmnZdc.h.

Referenced by BmnZdc(), BmnZdc(), AddHit(), Initialize(), and ProcessHits().

◆ fVSCVolId_after

Int_t BmnZdc::fVSCVolId_after
private

Definition at line 127 of file BmnZdc.h.

Referenced by BmnZdc(), BmnZdc(), AddHit(), Initialize(), and ProcessHits().

◆ fZdcCollection

TClonesArray * BmnZdc::fZdcCollection
private

Definition at line 131 of file BmnZdc.h.

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

◆ volDetector

Int_t BmnZdc::volDetector
private

Definition at line 129 of file BmnZdc.h.

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


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