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

#include <BmnHodo.h>

Inheritance diagram for BmnHodo:
Collaboration diagram for BmnHodo:

Public Member Functions

 BmnHodo ()
 Default constructor.
 BmnHodo (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnHodo ()
 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 SetSpecialPhysicsCuts ()
virtual void BeginEvent ()
virtual void FinishPrimary ()
virtual void FinishRun ()
virtual void BeginPrimary ()
virtual void PostTrack ()
virtual void PreTrack ()
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 ConstructGeometry ()
 Virtual method Construct geometry.
virtual Bool_t CheckIfSensitive (std::string name)
BmnHodoPoint * GetHit (Int_t i) const
BmnHodoPoint * GetHit (Int_t sticksens, Int_t stick) const
Int_t GetHodoStickSensVolId ()
BmnHodoPoint * 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)
 BmnHodo ()
 Default constructor.
 BmnHodo (const char *name, Bool_t active)
 Standard constructor.
virtual ~BmnHodo ()
 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 SetSpecialPhysicsCuts ()
virtual void BeginEvent ()
virtual void FinishPrimary ()
virtual void FinishRun ()
virtual void BeginPrimary ()
virtual void PostTrack ()
virtual void PreTrack ()
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 ConstructGeometry ()
 Virtual method Construct geometry.
virtual Bool_t CheckIfSensitive (std::string name)
BmnHodoPoint * GetHit (Int_t i) const
BmnHodoPoint * GetHit (Int_t sticksens, Int_t stick) const
Int_t GetHodoStickSensVolId ()
BmnHodoPoint * 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)

Private Member Functions

void ResetParameters ()
 Hit collection.
 BmnHodo (const BmnHodo &)=delete
BmnHodo operator= (const BmnHodo &)=delete
void ResetParameters ()
 Hit collection.
 BmnHodo (const BmnHodo &)=delete
BmnHodo operator= (const BmnHodo &)=delete

Private Attributes

Int_t fTrackID
Int_t fVolumeID
 track index
Int_t fEventID
 volume id
Int_t fHodoStickSensVolId
 event id
TVector3 fPos
TVector3 fMom
 position (in)
Double32_t fTime
 momentum (in)
Double32_t fLength
 time
Double32_t fELoss
 length
Int_t volDetector
 energy loss
TClonesArray * fHodoCollection
 MC volume ID of MUO.

Detailed Description

Definition at line 25 of file BmnHodo.h.

Constructor & Destructor Documentation

◆ BmnHodo() [1/6]

BmnHodo::BmnHodo ( )

Definition at line 31 of file BmnHodo.cxx.

References fEventID, fHodoCollection, fHodoStickSensVolId, and volDetector.

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

Here is the caller graph for this function:

◆ BmnHodo() [2/6]

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

Definition at line 40 of file BmnHodo.cxx.

References fEventID, fHodoCollection, fHodoStickSensVolId, and volDetector.

◆ ~BmnHodo() [1/2]

BmnHodo::~BmnHodo ( )
virtual

Definition at line 51 of file BmnHodo.cxx.

References fHodoCollection.

◆ BmnHodo() [3/6]

BmnHodo::BmnHodo ( const BmnHodo & )
privatedelete

References BmnHodo().

Here is the call graph for this function:

◆ BmnHodo() [4/6]

BmnHodo::BmnHodo ( )

◆ BmnHodo() [5/6]

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

◆ ~BmnHodo() [2/2]

virtual BmnHodo::~BmnHodo ( )
virtual

◆ BmnHodo() [6/6]

BmnHodo::BmnHodo ( const BmnHodo & )
privatedelete

References BmnHodo().

Here is the call graph for this function:

Member Function Documentation

◆ AddHit() [1/2]

BmnHodoPoint * BmnHodo::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 328 of file BmnHodo.cxx.

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

BmnHodoPoint * BmnHodo::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]

virtual void BmnHodo::BeginEvent ( )
inlinevirtual

Definition at line 62 of file BmnHodo.h.

◆ BeginEvent() [2/2]

virtual void BmnHodo::BeginEvent ( )
inlinevirtual

Definition at line 62 of file BmnHodo.h.

◆ BeginPrimary() [1/2]

virtual void BmnHodo::BeginPrimary ( )
inlinevirtual

Definition at line 65 of file BmnHodo.h.

◆ BeginPrimary() [2/2]

virtual void BmnHodo::BeginPrimary ( )
inlinevirtual

Definition at line 65 of file BmnHodo.h.

◆ CheckIfSensitive() [1/2]

virtual Bool_t BmnHodo::CheckIfSensitive ( std::string name)
inlinevirtual

Definition at line 94 of file BmnHodo.h.

References BmnHodoGeoPar::CheckIfSensitive().

Here is the call graph for this function:

◆ CheckIfSensitive() [2/2]

virtual Bool_t BmnHodo::CheckIfSensitive ( std::string name)
inlinevirtual

Definition at line 94 of file BmnHodo.h.

References BmnHodoGeoPar::CheckIfSensitive().

Here is the call graph for this function:

◆ ConstructGeometry() [1/2]

void BmnHodo::ConstructGeometry ( )
virtual

Definition at line 317 of file BmnHodo.cxx.

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

Here is the call graph for this function:

◆ ConstructGeometry() [2/2]

virtual void BmnHodo::ConstructGeometry ( )
virtual

◆ EndOfEvent() [1/2]

void BmnHodo::EndOfEvent ( )
virtual

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

Definition at line 278 of file BmnHodo.cxx.

References Print(), and Reset().

Here is the call graph for this function:

◆ EndOfEvent() [2/2]

virtual void BmnHodo::EndOfEvent ( )
virtual

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

◆ FinishPrimary() [1/2]

virtual void BmnHodo::FinishPrimary ( )
inlinevirtual

Definition at line 63 of file BmnHodo.h.

◆ FinishPrimary() [2/2]

virtual void BmnHodo::FinishPrimary ( )
inlinevirtual

Definition at line 63 of file BmnHodo.h.

◆ FinishRun() [1/2]

virtual void BmnHodo::FinishRun ( )
inlinevirtual

Definition at line 64 of file BmnHodo.h.

◆ FinishRun() [2/2]

virtual void BmnHodo::FinishRun ( )
inlinevirtual

Definition at line 64 of file BmnHodo.h.

◆ GetCollection() [1/2]

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

Definition at line 292 of file BmnHodo.cxx.

References fHodoCollection.

◆ GetCollection() [2/2]

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

◆ GetHit() [1/4]

BmnHodoPoint * BmnHodo::GetHit ( Int_t i) const

Definition at line 72 of file BmnHodo.cxx.

References fHodoCollection, and i.

Referenced by GetHit(), and ProcessHits().

Here is the caller graph for this function:

◆ GetHit() [2/4]

BmnHodoPoint * BmnHodo::GetHit ( Int_t i) const

References i.

◆ GetHit() [3/4]

BmnHodoPoint * BmnHodo::GetHit ( Int_t sticksens,
Int_t stick ) const

Definition at line 81 of file BmnHodo.cxx.

References fHodoCollection, BmnHodoPoint::GetCopy(), BmnHodoPoint::GetCopyMother(), GetHit(), and i.

Here is the call graph for this function:

◆ GetHit() [4/4]

BmnHodoPoint * BmnHodo::GetHit ( Int_t sticksens,
Int_t stick ) const

◆ GetHodoStickSensVolId() [1/2]

Int_t BmnHodo::GetHodoStickSensVolId ( )
inline

Definition at line 98 of file BmnHodo.h.

References fHodoStickSensVolId.

◆ GetHodoStickSensVolId() [2/2]

Int_t BmnHodo::GetHodoStickSensVolId ( )
inline

Definition at line 98 of file BmnHodo.h.

References fHodoStickSensVolId.

◆ Initialize() [1/2]

void BmnHodo::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

Definition at line 60 of file BmnHodo.cxx.

References fHodoStickSensVolId.

◆ Initialize() [2/2]

virtual void BmnHodo::Initialize ( )
virtual

Stores volume IDs for MUO detector and mirror.

◆ operator=() [1/2]

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

References BmnHodo().

Here is the call graph for this function:

◆ operator=() [2/2]

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

References BmnHodo().

Here is the call graph for this function:

◆ PostTrack() [1/2]

virtual void BmnHodo::PostTrack ( )
inlinevirtual

Definition at line 66 of file BmnHodo.h.

◆ PostTrack() [2/2]

virtual void BmnHodo::PostTrack ( )
inlinevirtual

Definition at line 66 of file BmnHodo.h.

◆ PreTrack() [1/2]

virtual void BmnHodo::PreTrack ( )
inlinevirtual

Definition at line 67 of file BmnHodo.h.

◆ PreTrack() [2/2]

virtual void BmnHodo::PreTrack ( )
inlinevirtual

Definition at line 67 of file BmnHodo.h.

◆ Print() [1/2]

void BmnHodo::Print ( Option_t * ) const
virtual

Screen output of hit collection.

Definition at line 300 of file BmnHodo.cxx.

References fHodoCollection, and i.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Print() [2/2]

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

Screen output of hit collection.

◆ ProcessHits() [1/2]

Bool_t BmnHodo::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

This method is called from the MC stepping

Definition at line 98 of file BmnHodo.cxx.

References AddHit(), BmnHodoPoint::AddSTICK(), fELoss, fHodoStickSensVolId, fLength, fMom, fPos, fTime, fTrackID, GetHit(), kHODO, 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 BmnHodo::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 BmnHodo::Register ( )
virtual

Registers the hit collection in the ROOT manager.

Definition at line 286 of file BmnHodo.cxx.

References fHodoCollection.

◆ Register() [2/2]

virtual void BmnHodo::Register ( )
virtual

Registers the hit collection in the ROOT manager.

◆ Reset() [1/2]

void BmnHodo::Reset ( )
virtual

Clears the hit collection

Definition at line 311 of file BmnHodo.cxx.

References fHodoCollection.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Reset() [2/2]

virtual void BmnHodo::Reset ( )
virtual

Clears the hit collection

◆ ResetParameters() [1/2]

void BmnHodo::ResetParameters ( )
inlineprivate

Definition at line 133 of file BmnHodo.h.

References fELoss, fLength, fMom, fPos, fTime, fTrackID, and fVolumeID.

Referenced by ProcessHits().

Here is the caller graph for this function:

◆ ResetParameters() [2/2]

void BmnHodo::ResetParameters ( )
private

◆ SetSpecialPhysicsCuts() [1/2]

virtual void BmnHodo::SetSpecialPhysicsCuts ( )
inlinevirtual

Definition at line 61 of file BmnHodo.h.

◆ SetSpecialPhysicsCuts() [2/2]

virtual void BmnHodo::SetSpecialPhysicsCuts ( )
inlinevirtual

Definition at line 61 of file BmnHodo.h.

Member Data Documentation

◆ fELoss

Double32_t BmnHodo::fELoss
private

Definition at line 119 of file BmnHodo.h.

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

◆ fEventID

Int_t BmnHodo::fEventID
private

Definition at line 113 of file BmnHodo.h.

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

◆ fHodoCollection

TClonesArray * BmnHodo::fHodoCollection
private

Definition at line 122 of file BmnHodo.h.

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

◆ fHodoStickSensVolId

Int_t BmnHodo::fHodoStickSensVolId
private

Definition at line 114 of file BmnHodo.h.

Referenced by BmnHodo(), BmnHodo(), AddHit(), GetHodoStickSensVolId(), Initialize(), and ProcessHits().

◆ fLength

Double32_t BmnHodo::fLength
private

Definition at line 118 of file BmnHodo.h.

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

◆ fMom

TVector3 BmnHodo::fMom
private

Definition at line 116 of file BmnHodo.h.

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

◆ fPos

TVector3 BmnHodo::fPos
private

Definition at line 115 of file BmnHodo.h.

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

◆ fTime

Double32_t BmnHodo::fTime
private

Definition at line 117 of file BmnHodo.h.

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

◆ fTrackID

Int_t BmnHodo::fTrackID
private

Definition at line 111 of file BmnHodo.h.

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

◆ fVolumeID

Int_t BmnHodo::fVolumeID
private

Definition at line 112 of file BmnHodo.h.

Referenced by AddHit(), and ResetParameters().

◆ volDetector

Int_t BmnHodo::volDetector
private

Definition at line 120 of file BmnHodo.h.

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


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