BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnBd Class Reference

#include <BmnBd.h>

Inheritance diagram for BmnBd:
Collaboration diagram for BmnBd:

Public Member Functions

 BmnBd ()
 Default constructor.
 BmnBd (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnBd ()
 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)
BmnBdPoint * 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, 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
 BmnBd (const BmnBd &)=delete
BmnBd operator= (const BmnBd &)=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
Float_t fLightYield
 pdg id of particle
TClonesArray * fBdCollection
Double32_t fTimeIn
 Hit collection.
Double32_t fTimeOut
 time
Double32_t fLengthtrack
 time

Detailed Description

Definition at line 7 of file BmnBd.h.

Constructor & Destructor Documentation

◆ BmnBd() [1/3]

BmnBd::BmnBd ( )

Definition at line 22 of file BmnBd.cxx.

References fBdCollection, fPosIndex, and volDetector.

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

Here is the caller graph for this function:

◆ BmnBd() [2/3]

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

Definition at line 34 of file BmnBd.cxx.

References fBdCollection, fPosIndex, and volDetector.

◆ ~BmnBd()

BmnBd::~BmnBd ( )
virtual

Definition at line 47 of file BmnBd.cxx.

References fBdCollection.

◆ BmnBd() [3/3]

BmnBd::BmnBd ( const BmnBd & )
privatedelete

References BmnBd().

Here is the call graph for this function:

Member Function Documentation

◆ AddHit()

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

Definition at line 362 of file BmnBd.cxx.

References fBdCollection, and TObjArray::GetEntriesFast().

Referenced by ProcessHits().

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

◆ BeginEvent()

void BmnBd::BeginEvent ( )
virtual

Definition at line 64 of file BmnBd.cxx.

◆ CheckIfSensitive()

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

Definition at line 352 of file BmnBd.cxx.

References TString::Contains().

Here is the call graph for this function:

◆ ConstructAsciiGeometry()

void BmnBd::ConstructAsciiGeometry ( )
virtual

Definition at line 312 of file BmnBd.cxx.

References TObjArray::AddLast(), BmnBdGeoPar::GetGeoPassiveNodes(), BmnBdGeoPar::GetGeoSensitiveNodes(), and TListIter::Next().

Referenced by ConstructGeometry().

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

◆ ConstructGeometry()

void BmnBd::ConstructGeometry ( )
virtual

Definition at line 299 of file BmnBd.cxx.

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

Here is the call graph for this function:

◆ CopyClones()

void BmnBd::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 283 of file BmnBd.cxx.

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

Here is the call graph for this function:

◆ EndOfEvent()

void BmnBd::EndOfEvent ( )
virtual

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

Definition at line 241 of file BmnBd.cxx.

References Print(), and Reset().

Here is the call graph for this function:

◆ GetCollection()

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

Definition at line 255 of file BmnBd.cxx.

References fBdCollection.

◆ Initialize()

void BmnBd::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

Definition at line 56 of file BmnBd.cxx.

◆ operator=()

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

References BmnBd().

Here is the call graph for this function:

◆ Print()

void BmnBd::Print ( Option_t * ) const
virtual

Screen output of hit collection.

Definition at line 264 of file BmnBd.cxx.

References fBdCollection, and i.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ ProcessHits()

Bool_t BmnBd::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 67 of file BmnBd.cxx.

References TMath::Abs(), AddHit(), TParticlePDG::Charge(), fCharge, fELoss, fIsPrimary, fMomIn, fMomOut, fPdgId, fPosIn, fPosOut, fTrackID, TParticle::GetPDG(), TParticle::GetPdgCode(), TParticle::IsPrimary(), kBD, TLorentzVector::Px(), TLorentzVector::Py(), TLorentzVector::Pz(), ResetParameters(), TLorentzVector::X(), TLorentzVector::Y(), and TLorentzVector::Z().

Here is the call graph for this function:

◆ Register()

void BmnBd::Register ( )
virtual

Registers the hit collection in the ROOT manager.

Definition at line 249 of file BmnBd.cxx.

References fBdCollection.

◆ Reset()

void BmnBd::Reset ( )
virtual

Clears the hit collection

Definition at line 275 of file BmnBd.cxx.

References fBdCollection, and fPosIndex.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ ResetParameters()

void BmnBd::ResetParameters ( )
inlineprivate

Definition at line 129 of file BmnBd.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:

Member Data Documentation

◆ fBdCollection

TClonesArray* BmnBd::fBdCollection
private

Definition at line 115 of file BmnBd.h.

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

◆ fCharge

Double_t BmnBd::fCharge
private

Definition at line 112 of file BmnBd.h.

Referenced by ProcessHits().

◆ fELoss

Double32_t BmnBd::fELoss
private

Definition at line 108 of file BmnBd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fIsPrimary

Int_t BmnBd::fIsPrimary
private

Definition at line 111 of file BmnBd.h.

Referenced by ProcessHits().

◆ fLength

Double32_t BmnBd::fLength
private

Definition at line 107 of file BmnBd.h.

Referenced by ResetParameters().

◆ fLengthtrack

Double32_t BmnBd::fLengthtrack
private

Definition at line 118 of file BmnBd.h.

Referenced by ResetParameters().

◆ fLightYield

Float_t BmnBd::fLightYield
private

Definition at line 114 of file BmnBd.h.

Referenced by ResetParameters().

◆ fMomIn

TVector3 BmnBd::fMomIn
private

Definition at line 104 of file BmnBd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fMomOut

TVector3 BmnBd::fMomOut
private

Definition at line 105 of file BmnBd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fPdgId

Int_t BmnBd::fPdgId
private

Definition at line 113 of file BmnBd.h.

Referenced by ProcessHits().

◆ fPosIn

TVector3 BmnBd::fPosIn
private

Definition at line 102 of file BmnBd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fPosIndex

Int_t BmnBd::fPosIndex
private

Definition at line 109 of file BmnBd.h.

Referenced by BmnBd(), BmnBd(), CopyClones(), Reset(), and ResetParameters().

◆ fPosOut

TVector3 BmnBd::fPosOut
private

Definition at line 103 of file BmnBd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fTime

Double32_t BmnBd::fTime
private

Definition at line 106 of file BmnBd.h.

Referenced by ResetParameters().

◆ fTimeIn

Double32_t BmnBd::fTimeIn
private

Definition at line 116 of file BmnBd.h.

Referenced by ResetParameters().

◆ fTimeOut

Double32_t BmnBd::fTimeOut
private

Definition at line 117 of file BmnBd.h.

Referenced by ResetParameters().

◆ fTrackID

Int_t BmnBd::fTrackID
private

Definition at line 99 of file BmnBd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fVolumeID

Int_t BmnBd::fVolumeID
private

Definition at line 100 of file BmnBd.h.

Referenced by ResetParameters().

◆ volDetector

Int_t BmnBd::volDetector
private

Definition at line 110 of file BmnBd.h.

Referenced by BmnBd(), and BmnBd().


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