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

#include <BmnVacWall.h>

Inheritance diagram for BmnVacWall:
Collaboration diagram for BmnVacWall:

Public Member Functions

 BmnVacWall ()
 Default constructor.
 BmnVacWall (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnVacWall ()
 Destructor.
virtual void Initialize ()
 Initialises detector and FairRun.
virtual Bool_t ProcessHits (FairVolume *vol=nullptr)
 Processes hits and creates FairMCPoints.
virtual void EndOfEvent ()
 Called at the end of each event.
virtual void BeginEvent ()
 Called at the beginning of each event.
virtual void Register ()
 Registers the hit collection in the ROOT manager.
virtual TClonesArray * GetCollection (Int_t iColl) const
 Accessor to the hit collection.
virtual void Print (Option_t *) const
 Screen output of hit collection.
virtual void Reset ()
 Clears the hit collection.
virtual void ConstructGeometry ()
 Constructs geometry from files.
virtual Bool_t CheckIfSensitive (std::string name)
 Checks whether a volume is sensitive based on its name.
FairMCPoint * AddHit (FairMCPoint *point)
 Adds the hit to hits collection.
void RemoveHit (Int_t index)
 Remove hit from hits collection by index.
 BmnVacWall ()
 Default constructor.
 BmnVacWall (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnVacWall ()
 Destructor.
virtual void Initialize ()
 Initialises detector and FairRun.
virtual Bool_t ProcessHits (FairVolume *vol=nullptr)
 Processes hits and creates FairMCPoints.
virtual void EndOfEvent ()
 Called at the end of each event.
virtual void BeginEvent ()
 Called at the beginning of each event.
virtual void Register ()
 Registers the hit collection in the ROOT manager.
virtual TClonesArray * GetCollection (Int_t iColl) const
 Accessor to the hit collection.
virtual void Print (Option_t *) const
 Screen output of hit collection.
virtual void Reset ()
 Clears the hit collection.
virtual void ConstructGeometry ()
 Constructs geometry from files.
virtual Bool_t CheckIfSensitive (std::string name)
 Checks whether a volume is sensitive based on its name.
FairMCPoint * AddHit (FairMCPoint *point)
 Adds the hit to hits collection.
void RemoveHit (Int_t index)
 Remove hit from hits collection by index.

Private Attributes

BmnZdcGeo * fGeoHandler
TClonesArray * fCollection

Detailed Description

Definition at line 11 of file BmnVacWall.h.

Constructor & Destructor Documentation

◆ BmnVacWall() [1/4]

BmnVacWall::BmnVacWall ( )

Definition at line 15 of file BmnVacWall.cxx.

References fCollection, and fGeoHandler.

Referenced by RemoveHit().

Here is the caller graph for this function:

◆ BmnVacWall() [2/4]

BmnVacWall::BmnVacWall ( const char * name,
Bool_t active )
Parameters
nameDetector name
activeSensitivity flag

Definition at line 23 of file BmnVacWall.cxx.

References fCollection, and fGeoHandler.

◆ ~BmnVacWall() [1/2]

BmnVacWall::~BmnVacWall ( )
virtual

Definition at line 31 of file BmnVacWall.cxx.

References fCollection, and fGeoHandler.

◆ BmnVacWall() [3/4]

BmnVacWall::BmnVacWall ( )

◆ BmnVacWall() [4/4]

BmnVacWall::BmnVacWall ( const char * name,
Bool_t active )
Parameters
nameDetector name
activeSensitivity flag

◆ ~BmnVacWall() [2/2]

virtual BmnVacWall::~BmnVacWall ( )
virtual

Member Function Documentation

◆ AddHit() [1/2]

FairMCPoint * BmnVacWall::AddHit ( FairMCPoint * point)
Parameters
pointFairMCPoint
Returns
Pointer to the hit

Definition at line 156 of file BmnVacWall.cxx.

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

FairMCPoint * BmnVacWall::AddHit ( FairMCPoint * point)
Parameters
pointFairMCPoint
Returns
Pointer to the hit

◆ BeginEvent() [1/2]

void BmnVacWall::BeginEvent ( )
virtual

Definition at line 49 of file BmnVacWall.cxx.

◆ BeginEvent() [2/2]

virtual void BmnVacWall::BeginEvent ( )
virtual

◆ CheckIfSensitive() [1/2]

Bool_t BmnVacWall::CheckIfSensitive ( std::string name)
virtual
Parameters
nameVolume name
Returns
kTRUE if the volume is sensitive, otherwise kFALSE

Definition at line 148 of file BmnVacWall.cxx.

References TString::Contains().

Referenced by ProcessHits().

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

◆ CheckIfSensitive() [2/2]

virtual Bool_t BmnVacWall::CheckIfSensitive ( std::string name)
virtual
Parameters
nameVolume name
Returns
kTRUE if the volume is sensitive, otherwise kFALSE

◆ ConstructGeometry() [1/2]

void BmnVacWall::ConstructGeometry ( )
virtual

Definition at line 126 of file BmnVacWall.cxx.

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

Here is the call graph for this function:

◆ ConstructGeometry() [2/2]

virtual void BmnVacWall::ConstructGeometry ( )
virtual

◆ EndOfEvent() [1/2]

void BmnVacWall::EndOfEvent ( )
virtual

Definition at line 85 of file BmnVacWall.cxx.

References Print(), and Reset().

Here is the call graph for this function:

◆ EndOfEvent() [2/2]

virtual void BmnVacWall::EndOfEvent ( )
virtual

◆ GetCollection() [1/2]

TClonesArray * BmnVacWall::GetCollection ( Int_t iColl) const
virtual
Parameters
iCollIndex of the collection
Returns
Pointer to the hit collection

Definition at line 101 of file BmnVacWall.cxx.

References fCollection.

◆ GetCollection() [2/2]

virtual TClonesArray * BmnVacWall::GetCollection ( Int_t iColl) const
virtual
Parameters
iCollIndex of the collection
Returns
Pointer to the hit collection

◆ Initialize() [1/2]

void BmnVacWall::Initialize ( )
virtual

Definition at line 41 of file BmnVacWall.cxx.

◆ Initialize() [2/2]

virtual void BmnVacWall::Initialize ( )
virtual

◆ Print() [1/2]

void BmnVacWall::Print ( Option_t * ) const
virtual

Definition at line 107 of file BmnVacWall.cxx.

References fCollection, and i.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Print() [2/2]

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

◆ ProcessHits() [1/2]

Bool_t BmnVacWall::ProcessHits ( FairVolume * vol = nullptr)
virtual
Parameters
volPointer to the active volume
Returns
kTRUE if the volume is sensitive and a hit is processed, otherwise kFALSE

Definition at line 54 of file BmnVacWall.cxx.

References AddHit(), CheckIfSensitive(), kVACWALL, TLorentzVector::X(), TLorentzVector::Y(), and TLorentzVector::Z().

Here is the call graph for this function:

◆ ProcessHits() [2/2]

virtual Bool_t BmnVacWall::ProcessHits ( FairVolume * vol = nullptr)
virtual
Parameters
volPointer to the active volume
Returns
kTRUE if the volume is sensitive and a hit is processed, otherwise kFALSE

◆ Register() [1/2]

void BmnVacWall::Register ( )
virtual

Definition at line 92 of file BmnVacWall.cxx.

References fCollection.

◆ Register() [2/2]

virtual void BmnVacWall::Register ( )
virtual

◆ RemoveHit() [1/2]

void BmnVacWall::RemoveHit ( Int_t index)
Parameters
indexhit index

Definition at line 163 of file BmnVacWall.cxx.

References fCollection.

◆ RemoveHit() [2/2]

void BmnVacWall::RemoveHit ( Int_t index)
Parameters
indexhit index

References BmnVacWall(), fCollection, and fGeoHandler.

Here is the call graph for this function:

◆ Reset() [1/2]

void BmnVacWall::Reset ( )
virtual

Definition at line 120 of file BmnVacWall.cxx.

References fCollection.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Reset() [2/2]

virtual void BmnVacWall::Reset ( )
virtual

Member Data Documentation

◆ fCollection

TClonesArray * BmnVacWall::fCollection
private

◆ fGeoHandler

BmnZdcGeo * BmnVacWall::fGeoHandler
private

Definition at line 77 of file BmnVacWall.h.

Referenced by BmnVacWall(), BmnVacWall(), ~BmnVacWall(), ConstructGeometry(), and RemoveHit().


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