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

#include <BmnArmTrig.h>

Inheritance diagram for BmnArmTrig:
Collaboration diagram for BmnArmTrig:

Public Member Functions

 BmnArmTrig ()
 Default constructor.
 BmnArmTrig (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnArmTrig ()
 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)
BmnArmTrigPoint * 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 timeIn, Double_t timeOut, Double_t lengthtrack)
 BmnArmTrig ()
 Default constructor.
 BmnArmTrig (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnArmTrig ()
 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)
BmnArmTrigPoint * 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 timeIn, Double_t timeOut, Double_t lengthtrack)

Private Member Functions

void ResetParameters ()
 length
void ResetParameters ()
 length

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 * fArmTrigCollection
Double32_t fTimeIn
 Hit collection.
Double32_t fTimeOut
 time
Double32_t fLengthtrack
 time

Detailed Description

Definition at line 28 of file BmnArmTrig.h.

Constructor & Destructor Documentation

◆ BmnArmTrig() [1/4]

BmnArmTrig::BmnArmTrig ( )

Definition at line 31 of file BmnArmTrig.cxx.

References fArmTrigCollection, fPosIndex, and volDetector.

Referenced by ResetParameters().

Here is the caller graph for this function:

◆ BmnArmTrig() [2/4]

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

Definition at line 45 of file BmnArmTrig.cxx.

References fArmTrigCollection, fPosIndex, and volDetector.

◆ ~BmnArmTrig() [1/2]

BmnArmTrig::~BmnArmTrig ( )
virtual

Definition at line 60 of file BmnArmTrig.cxx.

References fArmTrigCollection.

◆ BmnArmTrig() [3/4]

BmnArmTrig::BmnArmTrig ( )

◆ BmnArmTrig() [4/4]

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

◆ ~BmnArmTrig() [2/2]

virtual BmnArmTrig::~BmnArmTrig ( )
virtual

Member Function Documentation

◆ AddHit() [1/2]

BmnArmTrigPoint * BmnArmTrig::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 timeIn,
Double_t timeOut,
Double_t lengthtrack )

Definition at line 298 of file BmnArmTrig.cxx.

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

BmnArmTrigPoint * BmnArmTrig::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 timeIn,
Double_t timeOut,
Double_t lengthtrack )

◆ BeginEvent() [1/2]

void BmnArmTrig::BeginEvent ( )
virtual

Definition at line 81 of file BmnArmTrig.cxx.

◆ BeginEvent() [2/2]

virtual void BmnArmTrig::BeginEvent ( )
virtual

◆ CheckIfSensitive() [1/2]

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

Definition at line 286 of file BmnArmTrig.cxx.

References TString::Contains().

Here is the call graph for this function:

◆ CheckIfSensitive() [2/2]

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

◆ ConstructAsciiGeometry() [1/2]

void BmnArmTrig::ConstructAsciiGeometry ( )
virtual

Definition at line 249 of file BmnArmTrig.cxx.

Referenced by ConstructGeometry().

Here is the caller graph for this function:

◆ ConstructAsciiGeometry() [2/2]

virtual void BmnArmTrig::ConstructAsciiGeometry ( )
virtual

◆ ConstructGeometry() [1/2]

void BmnArmTrig::ConstructGeometry ( )
virtual

Definition at line 232 of file BmnArmTrig.cxx.

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

Here is the call graph for this function:

◆ ConstructGeometry() [2/2]

virtual void BmnArmTrig::ConstructGeometry ( )
virtual

◆ CopyClones() [1/2]

void BmnArmTrig::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 214 of file BmnArmTrig.cxx.

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

Here is the call graph for this function:

◆ CopyClones() [2/2]

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

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

Definition at line 166 of file BmnArmTrig.cxx.

References Print(), and Reset().

Here is the call graph for this function:

◆ EndOfEvent() [2/2]

virtual void BmnArmTrig::EndOfEvent ( )
virtual

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

◆ GetCollection() [1/2]

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

Definition at line 182 of file BmnArmTrig.cxx.

References fArmTrigCollection.

◆ GetCollection() [2/2]

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

◆ Initialize() [1/2]

void BmnArmTrig::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

Definition at line 71 of file BmnArmTrig.cxx.

◆ Initialize() [2/2]

virtual void BmnArmTrig::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

◆ Print() [1/2]

void BmnArmTrig::Print ( Option_t * ) const
virtual

Screen output of hit collection.

Definition at line 192 of file BmnArmTrig.cxx.

References fArmTrigCollection, and i.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Print() [2/2]

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

Screen output of hit collection.

◆ ProcessHits() [1/2]

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

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

Parameters
volPointer to the active volume

Definition at line 87 of file BmnArmTrig.cxx.

References AddHit(), TParticlePDG::Charge(), fCharge, fELoss, fIsPrimary, fMomIn, fMomOut, fPdgId, fPosIn, fPosOut, fTrackID, TParticle::GetPDG(), TParticle::GetPdgCode(), TParticle::IsPrimary(), kARMTRIG, 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 BmnArmTrig::ProcessHits ( FairVolume * vol = 0)
virtual

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

Parameters
volPointer to the active volume

◆ Register() [1/2]

void BmnArmTrig::Register ( )
virtual

Registers the hit collection in the ROOT manager.

Definition at line 175 of file BmnArmTrig.cxx.

References fArmTrigCollection.

◆ Register() [2/2]

virtual void BmnArmTrig::Register ( )
virtual

Registers the hit collection in the ROOT manager.

◆ Reset() [1/2]

void BmnArmTrig::Reset ( )
virtual

Clears the hit collection

Definition at line 204 of file BmnArmTrig.cxx.

References fArmTrigCollection, and fPosIndex.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Reset() [2/2]

virtual void BmnArmTrig::Reset ( )
virtual

Clears the hit collection

◆ ResetParameters() [1/2]

void BmnArmTrig::ResetParameters ( )
inlineprivate

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

References BmnArmTrig().

Here is the call graph for this function:

Member Data Documentation

◆ fArmTrigCollection

TClonesArray * BmnArmTrig::fArmTrigCollection
private

◆ fCharge

Double_t BmnArmTrig::fCharge
private

Definition at line 135 of file BmnArmTrig.h.

Referenced by AddHit(), and ProcessHits().

◆ fELoss

Double32_t BmnArmTrig::fELoss
private

Definition at line 131 of file BmnArmTrig.h.

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

◆ fIsPrimary

Int_t BmnArmTrig::fIsPrimary
private

Definition at line 134 of file BmnArmTrig.h.

Referenced by AddHit(), and ProcessHits().

◆ fLength

Double32_t BmnArmTrig::fLength
private

Definition at line 130 of file BmnArmTrig.h.

Referenced by AddHit(), and ResetParameters().

◆ fLengthtrack

Double32_t BmnArmTrig::fLengthtrack
private

Definition at line 141 of file BmnArmTrig.h.

Referenced by AddHit(), and ResetParameters().

◆ fLightYield

Float_t BmnArmTrig::fLightYield
private

Definition at line 137 of file BmnArmTrig.h.

Referenced by AddHit(), and ResetParameters().

◆ fMomIn

TVector3 BmnArmTrig::fMomIn
private

Definition at line 127 of file BmnArmTrig.h.

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

◆ fMomOut

TVector3 BmnArmTrig::fMomOut
private

Definition at line 128 of file BmnArmTrig.h.

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

◆ fPdgId

Int_t BmnArmTrig::fPdgId
private

Definition at line 136 of file BmnArmTrig.h.

Referenced by AddHit(), and ProcessHits().

◆ fPosIn

TVector3 BmnArmTrig::fPosIn
private

Definition at line 125 of file BmnArmTrig.h.

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

◆ fPosIndex

Int_t BmnArmTrig::fPosIndex
private

Definition at line 132 of file BmnArmTrig.h.

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

◆ fPosOut

TVector3 BmnArmTrig::fPosOut
private

Definition at line 126 of file BmnArmTrig.h.

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

◆ fTime

Double32_t BmnArmTrig::fTime
private

Definition at line 129 of file BmnArmTrig.h.

Referenced by AddHit(), and ResetParameters().

◆ fTimeIn

Double32_t BmnArmTrig::fTimeIn
private

Definition at line 139 of file BmnArmTrig.h.

Referenced by AddHit(), and ResetParameters().

◆ fTimeOut

Double32_t BmnArmTrig::fTimeOut
private

Definition at line 140 of file BmnArmTrig.h.

Referenced by AddHit(), and ResetParameters().

◆ fTrackID

Int_t BmnArmTrig::fTrackID
private

Definition at line 122 of file BmnArmTrig.h.

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

◆ fVolumeID

Int_t BmnArmTrig::fVolumeID
private

Definition at line 123 of file BmnArmTrig.h.

Referenced by AddHit(), and ResetParameters().

◆ volDetector

Int_t BmnArmTrig::volDetector
private

Definition at line 133 of file BmnArmTrig.h.

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


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