BmnRoot
Loading...
Searching...
No Matches
BmnEcal Class Reference

#include <BmnEcal.h>

Inheritance diagram for BmnEcal:
[legend]
Collaboration diagram for BmnEcal:
[legend]

Public Member Functions

 BmnEcal ()
 
 BmnEcal (const char *name, Bool_t active)
 
virtual ~BmnEcal ()
 
virtual void Initialize ()
 
virtual Bool_t ProcessHits (FairVolume *vol=0)
 
virtual void EndOfEvent ()
 
virtual void BeginEvent ()
 
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 Bool_t CheckIfSensitive (std::string name)
 
void SetToFile (Bool_t toFile)
 
BmnEcalPointAddHit (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)
 
 BmnEcal ()
 
 BmnEcal (const char *name, Bool_t active)
 
virtual ~BmnEcal ()
 
virtual void Initialize ()
 
virtual Bool_t ProcessHits (FairVolume *vol=0)
 
virtual void EndOfEvent ()
 
virtual void BeginEvent ()
 
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 Bool_t CheckIfSensitive (std::string name)
 
void SetToFile (Bool_t toFile)
 
BmnEcalPointAddHit (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)
 

Detailed Description

Definition at line 24 of file BmnEcal.h.

Constructor & Destructor Documentation

◆ BmnEcal() [1/4]

BmnEcal::BmnEcal ( )

Default constructor

Definition at line 42 of file BmnEcal.cxx.

◆ BmnEcal() [2/4]

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

Standard constructor.

Parameters
namedetetcor name
activesensitivity flag

Definition at line 49 of file BmnEcal.cxx.

◆ ~BmnEcal() [1/2]

BmnEcal::~BmnEcal ( )
virtual

Destructor

Definition at line 57 of file BmnEcal.cxx.

◆ BmnEcal() [3/4]

BmnEcal::BmnEcal ( )

Default constructor

◆ BmnEcal() [4/4]

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

Standard constructor.

Parameters
namedetetcor name
activesensitivity flag

◆ ~BmnEcal() [2/2]

virtual BmnEcal::~BmnEcal ( )
virtual

Destructor

Member Function Documentation

◆ AddHit() [1/2]

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 245 of file BmnEcal.cxx.

Referenced by ProcessHits().

◆ AddHit() [2/2]

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 
)

◆ BeginEvent() [1/2]

void BmnEcal::BeginEvent ( )
virtual

Definition at line 75 of file BmnEcal.cxx.

◆ BeginEvent() [2/2]

virtual void BmnEcal::BeginEvent ( )
virtual

◆ CheckIfSensitive() [1/2]

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

Definition at line 236 of file BmnEcal.cxx.

◆ CheckIfSensitive() [2/2]

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

◆ ConstructGeometry() [1/2]

void BmnEcal::ConstructGeometry ( )
virtual

Virtual method Construct geometry

Definition at line 189 of file BmnEcal.cxx.

References BmnEcalGeoPar::GetGeoPassiveNodes(), and BmnEcalGeoPar::GetGeoSensitiveNodes().

◆ ConstructGeometry() [2/2]

virtual void BmnEcal::ConstructGeometry ( )
virtual

Virtual method Construct geometry

◆ CopyClones() [1/2]

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

Virtual method CopyClones

Copies the hit collection with a given track index offset

Parameters
cl1Origin
cl2Target
offsetIndex offset

Definition at line 173 of file BmnEcal.cxx.

References i.

◆ CopyClones() [2/2]

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

Virtual method CopyClones

Copies the hit collection with a given track index offset

Parameters
cl1Origin
cl2Target
offsetIndex offset

◆ EndOfEvent() [1/2]

void BmnEcal::EndOfEvent ( )
virtual

Virtual method EndOfEvent

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

Definition at line 133 of file BmnEcal.cxx.

References Print(), and Reset().

◆ EndOfEvent() [2/2]

virtual void BmnEcal::EndOfEvent ( )
virtual

Virtual method EndOfEvent

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

◆ GetCollection() [1/2]

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

Accessor to the hit collection

Definition at line 146 of file BmnEcal.cxx.

◆ GetCollection() [2/2]

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

Accessor to the hit collection

◆ Initialize() [1/2]

void BmnEcal::Initialize ( )
virtual

Virtual method Initialize Initialises detector. Stores volume IDs for MUO detector and mirror.

Definition at line 66 of file BmnEcal.cxx.

◆ Initialize() [2/2]

virtual void BmnEcal::Initialize ( )
virtual

Virtual method Initialize Initialises detector. Stores volume IDs for MUO detector and mirror.

◆ Print() [1/2]

void BmnEcal::Print ( Option_t *  ) const
virtual

Virtual method Print

Screen output of hit collection.

Definition at line 154 of file BmnEcal.cxx.

References i.

Referenced by EndOfEvent().

◆ Print() [2/2]

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

Virtual method Print

Screen output of hit collection.

◆ ProcessHits() [1/2]

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

Virtual method ProcessHits

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 80 of file BmnEcal.cxx.

References AddHit(), and kECAL.

◆ ProcessHits() [2/2]

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

Virtual method ProcessHits

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

◆ Register() [1/2]

void BmnEcal::Register ( )
virtual

Virtual method Register

Registers the hit collection in the ROOT manager.

Definition at line 140 of file BmnEcal.cxx.

◆ Register() [2/2]

virtual void BmnEcal::Register ( )
virtual

Virtual method Register

Registers the hit collection in the ROOT manager.

◆ Reset() [1/2]

void BmnEcal::Reset ( )
virtual

Virtual method Reset

Clears the hit collection

Definition at line 166 of file BmnEcal.cxx.

Referenced by EndOfEvent().

◆ Reset() [2/2]

virtual void BmnEcal::Reset ( )
virtual

Virtual method Reset

Clears the hit collection

◆ SetToFile() [1/2]

void BmnEcal::SetToFile ( Bool_t  toFile)
inline

SetToFile

Allows to disable writing the brunch into the output tree

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

Definition at line 116 of file BmnEcal.h.

◆ SetToFile() [2/2]

void BmnEcal::SetToFile ( Bool_t  toFile)
inline

SetToFile

Allows to disable writing the brunch into the output tree

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

Definition at line 116 of file BmnEcal.h.


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