BmnRoot 26.10.0-19-g6979a6c6
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnEcal Class Reference

#include <BmnEcal.h>

Inheritance diagram for BmnEcal:
Collaboration diagram for BmnEcal:

Public Member Functions

 BmnEcal ()
 Default constructor.
 BmnEcal (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnEcal ()
 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)
void SetToFile (Bool_t toFile)
 SetToFile.
BmnEcalPoint * 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

 BmnEcal (const BmnEcal &)=delete
 if kFALSE, branch will NOT be saved to the tree
BmnEcal operator= (const BmnEcal &)=delete

Private Attributes

Int_t fTrackID
Int_t fVolumeID
 track index
TLorentzVector fPos
 volume id
TLorentzVector fMom
 position
Double32_t fTime
 momentum
Double32_t fLength
 time
Double32_t fELoss
 length
TClonesArray * fEcalCollection
 energy loss
Bool_t fToFile = kTRUE
 Hit collection.

Detailed Description

Definition at line 22 of file BmnEcal.h.

Constructor & Destructor Documentation

◆ BmnEcal() [1/3]

BmnEcal::BmnEcal ( )

Definition at line 40 of file BmnEcal.cxx.

References fEcalCollection.

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

Here is the caller graph for this function:

◆ BmnEcal() [2/3]

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

Definition at line 48 of file BmnEcal.cxx.

References fEcalCollection.

◆ ~BmnEcal()

BmnEcal::~BmnEcal ( )
virtual

Definition at line 57 of file BmnEcal.cxx.

References fEcalCollection.

◆ BmnEcal() [3/3]

BmnEcal::BmnEcal ( const BmnEcal & )
privatedelete

References BmnEcal().

Here is the call graph for this function:

Member Function Documentation

◆ AddHit()

BmnEcalPoint * BmnEcal::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 250 of file BmnEcal.cxx.

References fEcalCollection, and TObjArray::GetEntriesFast().

Referenced by ProcessHits().

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

◆ BeginEvent()

void BmnEcal::BeginEvent ( )
virtual

Definition at line 77 of file BmnEcal.cxx.

◆ CheckIfSensitive()

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

Definition at line 240 of file BmnEcal.cxx.

References TString::Contains().

Here is the call graph for this function:

◆ ConstructGeometry()

void BmnEcal::ConstructGeometry ( )
virtual

Definition at line 192 of file BmnEcal.cxx.

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

Here is the call graph for this function:

◆ CopyClones()

void BmnEcal::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 176 of file BmnEcal.cxx.

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

Here is the call graph for this function:

◆ EndOfEvent()

void BmnEcal::EndOfEvent ( )
virtual

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

Definition at line 135 of file BmnEcal.cxx.

References Print(), and Reset().

Here is the call graph for this function:

◆ GetCollection()

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

Definition at line 149 of file BmnEcal.cxx.

References fEcalCollection.

◆ Initialize()

void BmnEcal::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

Definition at line 67 of file BmnEcal.cxx.

◆ operator=()

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

References BmnEcal().

Here is the call graph for this function:

◆ Print()

void BmnEcal::Print ( Option_t * ) const
virtual

Screen output of hit collection.

Definition at line 158 of file BmnEcal.cxx.

References fEcalCollection, and i.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ ProcessHits()

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

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

Parameters
volPointer to the active volume

Definition at line 83 of file BmnEcal.cxx.

References AddHit(), fELoss, fLength, fMom, fPos, fTime, fTrackID, fVolumeID, and kECAL.

Here is the call graph for this function:

◆ Register()

void BmnEcal::Register ( )
virtual

Registers the hit collection in the ROOT manager.

Definition at line 143 of file BmnEcal.cxx.

References fEcalCollection, and fToFile.

◆ Reset()

void BmnEcal::Reset ( )
virtual

Clears the hit collection

Definition at line 169 of file BmnEcal.cxx.

References fEcalCollection.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ SetToFile()

void BmnEcal::SetToFile ( Bool_t toFile)
inline

Allows to disable writing the brunch into the output tree

Parameters
toFileif kFALSE, branch will NOT be saved to the tree

Definition at line 101 of file BmnEcal.h.

References fToFile.

Member Data Documentation

◆ fEcalCollection

TClonesArray* BmnEcal::fEcalCollection
private

Definition at line 122 of file BmnEcal.h.

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

◆ fELoss

Double32_t BmnEcal::fELoss
private

Definition at line 120 of file BmnEcal.h.

Referenced by ProcessHits().

◆ fLength

Double32_t BmnEcal::fLength
private

Definition at line 119 of file BmnEcal.h.

Referenced by ProcessHits().

◆ fMom

TLorentzVector BmnEcal::fMom
private

Definition at line 117 of file BmnEcal.h.

Referenced by ProcessHits().

◆ fPos

TLorentzVector BmnEcal::fPos
private

Definition at line 116 of file BmnEcal.h.

Referenced by ProcessHits().

◆ fTime

Double32_t BmnEcal::fTime
private

Definition at line 118 of file BmnEcal.h.

Referenced by ProcessHits().

◆ fToFile

Bool_t BmnEcal::fToFile = kTRUE
private

Definition at line 124 of file BmnEcal.h.

Referenced by Register(), and SetToFile().

◆ fTrackID

Int_t BmnEcal::fTrackID
private

Definition at line 114 of file BmnEcal.h.

Referenced by ProcessHits().

◆ fVolumeID

Int_t BmnEcal::fVolumeID
private

Definition at line 115 of file BmnEcal.h.

Referenced by ProcessHits().


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