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

#include <BmnBC.h>

Inheritance diagram for BmnBC:
Collaboration diagram for BmnBC:

Public Member Functions

 BmnBC ()
 Default constructor.
 BmnBC (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnBC ()
 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)
BmnBCPoint * 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, Int_t fStat, Bool_t isPrimary, Double_t charge, Int_t pdgId, Double_t lightYield, Double_t timeIn, Double_t timeOut, Double_t lengthtrack)
 BmnBC ()
 Default constructor.
 BmnBC (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnBC ()
 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)
BmnBCPoint * 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, Int_t fStat, Bool_t isPrimary, Double_t charge, Int_t pdgId, Double_t lightYield, Double_t timeIn, Double_t timeOut, Double_t lengthtrack)

Private Member Functions

void ResetParameters ()
 length
 BmnBC (const BmnBC &)=delete
BmnBC operator= (const BmnBC &)=delete
void ResetParameters ()
 length
 BmnBC (const BmnBC &)=delete
BmnBC operator= (const BmnBC &)=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
Int_t fStation
 pdg id of particle
Float_t fLightYield
TClonesArray * fBCCollection
Double32_t fTimeIn
 Hit collection.
Double32_t fTimeOut
 time
Double32_t fLengthtrack
 time

Detailed Description

Definition at line 23 of file BmnBC.h.

Constructor & Destructor Documentation

◆ BmnBC() [1/6]

BmnBC::BmnBC ( )

Definition at line 35 of file BmnBC.cxx.

References fBCCollection, fPosIndex, and volDetector.

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

Here is the caller graph for this function:

◆ BmnBC() [2/6]

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

Definition at line 48 of file BmnBC.cxx.

References fBCCollection, fPosIndex, and volDetector.

◆ ~BmnBC() [1/2]

BmnBC::~BmnBC ( )
virtual

Definition at line 62 of file BmnBC.cxx.

References fBCCollection.

◆ BmnBC() [3/6]

BmnBC::BmnBC ( const BmnBC & )
privatedelete

References BmnBC().

Here is the call graph for this function:

◆ BmnBC() [4/6]

BmnBC::BmnBC ( )

◆ BmnBC() [5/6]

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

◆ ~BmnBC() [2/2]

virtual BmnBC::~BmnBC ( )
virtual

◆ BmnBC() [6/6]

BmnBC::BmnBC ( const BmnBC & )
privatedelete

References BmnBC().

Here is the call graph for this function:

Member Function Documentation

◆ AddHit() [1/2]

BmnBCPoint * BmnBC::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,
Int_t fStat,
Bool_t isPrimary,
Double_t charge,
Int_t pdgId,
Double_t lightYield,
Double_t timeIn,
Double_t timeOut,
Double_t lengthtrack )

Definition at line 433 of file BmnBC.cxx.

References fBCCollection, fStation, 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]

BmnBCPoint * BmnBC::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,
Int_t fStat,
Bool_t isPrimary,
Double_t charge,
Int_t pdgId,
Double_t lightYield,
Double_t timeIn,
Double_t timeOut,
Double_t lengthtrack )

◆ BeginEvent() [1/2]

void BmnBC::BeginEvent ( )
virtual

Definition at line 81 of file BmnBC.cxx.

◆ BeginEvent() [2/2]

virtual void BmnBC::BeginEvent ( )
virtual

◆ CheckIfSensitive() [1/2]

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

Definition at line 420 of file BmnBC.cxx.

References TString::Contains().

Here is the call graph for this function:

◆ CheckIfSensitive() [2/2]

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

◆ ConstructAsciiGeometry() [1/2]

void BmnBC::ConstructAsciiGeometry ( )
virtual

Definition at line 380 of file BmnBC.cxx.

References TObjArray::AddLast(), BmnBCGeoPar::GetGeoPassiveNodes(), BmnBCGeoPar::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 BmnBC::ConstructAsciiGeometry ( )
virtual

◆ ConstructGeometry() [1/2]

void BmnBC::ConstructGeometry ( )
virtual

Definition at line 364 of file BmnBC.cxx.

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

Here is the call graph for this function:

◆ ConstructGeometry() [2/2]

virtual void BmnBC::ConstructGeometry ( )
virtual

◆ CopyClones() [1/2]

void BmnBC::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 347 of file BmnBC.cxx.

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

Here is the call graph for this function:

◆ CopyClones() [2/2]

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

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

Definition at line 304 of file BmnBC.cxx.

References Print(), and Reset().

Here is the call graph for this function:

◆ EndOfEvent() [2/2]

virtual void BmnBC::EndOfEvent ( )
virtual

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

◆ GetCollection() [1/2]

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

Definition at line 318 of file BmnBC.cxx.

References fBCCollection.

◆ GetCollection() [2/2]

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

◆ Initialize() [1/2]

void BmnBC::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

Definition at line 72 of file BmnBC.cxx.

◆ Initialize() [2/2]

virtual void BmnBC::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

◆ operator=() [1/2]

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

References BmnBC().

Here is the call graph for this function:

◆ operator=() [2/2]

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

References BmnBC().

Here is the call graph for this function:

◆ Print() [1/2]

void BmnBC::Print ( Option_t * ) const
virtual

Screen output of hit collection.

Definition at line 327 of file BmnBC.cxx.

References fBCCollection, and i.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Print() [2/2]

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

Screen output of hit collection.

◆ ProcessHits() [1/2]

Bool_t BmnBC::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 87 of file BmnBC.cxx.

References TMath::Abs(), AddHit(), TParticlePDG::Charge(), fCharge, fELoss, fIsPrimary, fMomIn, fMomOut, fPdgId, fPosIn, fPosOut, fStation, fTrackID, TParticle::GetPDG(), TParticle::GetPdgCode(), TParticle::IsPrimary(), kBC, 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 BmnBC::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 BmnBC::Register ( )
virtual

Registers the hit collection in the ROOT manager.

Definition at line 312 of file BmnBC.cxx.

References fBCCollection.

◆ Register() [2/2]

virtual void BmnBC::Register ( )
virtual

Registers the hit collection in the ROOT manager.

◆ Reset() [1/2]

void BmnBC::Reset ( )
virtual

Clears the hit collection

Definition at line 338 of file BmnBC.cxx.

References fBCCollection, and fPosIndex.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Reset() [2/2]

virtual void BmnBC::Reset ( )
virtual

Clears the hit collection

◆ ResetParameters() [1/2]

void BmnBC::ResetParameters ( )
inlineprivate

Definition at line 148 of file BmnBC.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 BmnBC::ResetParameters ( )
private

Member Data Documentation

◆ fBCCollection

TClonesArray * BmnBC::fBCCollection
private

Definition at line 134 of file BmnBC.h.

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

◆ fCharge

Double_t BmnBC::fCharge
private

Definition at line 130 of file BmnBC.h.

Referenced by AddHit(), and ProcessHits().

◆ fELoss

Double32_t BmnBC::fELoss
private

Definition at line 126 of file BmnBC.h.

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

◆ fIsPrimary

Int_t BmnBC::fIsPrimary
private

Definition at line 129 of file BmnBC.h.

Referenced by AddHit(), and ProcessHits().

◆ fLength

Double32_t BmnBC::fLength
private

Definition at line 125 of file BmnBC.h.

Referenced by AddHit(), and ResetParameters().

◆ fLengthtrack

Double32_t BmnBC::fLengthtrack
private

Definition at line 137 of file BmnBC.h.

Referenced by AddHit(), and ResetParameters().

◆ fLightYield

Float_t BmnBC::fLightYield
private

Definition at line 133 of file BmnBC.h.

Referenced by AddHit(), and ResetParameters().

◆ fMomIn

TVector3 BmnBC::fMomIn
private

Definition at line 122 of file BmnBC.h.

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

◆ fMomOut

TVector3 BmnBC::fMomOut
private

Definition at line 123 of file BmnBC.h.

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

◆ fPdgId

Int_t BmnBC::fPdgId
private

Definition at line 131 of file BmnBC.h.

Referenced by AddHit(), and ProcessHits().

◆ fPosIn

TVector3 BmnBC::fPosIn
private

Definition at line 120 of file BmnBC.h.

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

◆ fPosIndex

Int_t BmnBC::fPosIndex
private

Definition at line 127 of file BmnBC.h.

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

◆ fPosOut

TVector3 BmnBC::fPosOut
private

Definition at line 121 of file BmnBC.h.

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

◆ fStation

Int_t BmnBC::fStation
private

Definition at line 132 of file BmnBC.h.

Referenced by AddHit(), and ProcessHits().

◆ fTime

Double32_t BmnBC::fTime
private

Definition at line 124 of file BmnBC.h.

Referenced by AddHit(), and ResetParameters().

◆ fTimeIn

Double32_t BmnBC::fTimeIn
private

Definition at line 135 of file BmnBC.h.

Referenced by AddHit(), and ResetParameters().

◆ fTimeOut

Double32_t BmnBC::fTimeOut
private

Definition at line 136 of file BmnBC.h.

Referenced by AddHit(), and ResetParameters().

◆ fTrackID

Int_t BmnBC::fTrackID
private

Definition at line 117 of file BmnBC.h.

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

◆ fVolumeID

Int_t BmnBC::fVolumeID
private

Definition at line 118 of file BmnBC.h.

Referenced by AddHit(), and ResetParameters().

◆ volDetector

Int_t BmnBC::volDetector
private

Definition at line 128 of file BmnBC.h.

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


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