BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmSts Class Reference

CbmSts.h. More...

#include <CbmSts.h>

Inheritance diagram for CbmSts:
Collaboration diagram for CbmSts:

Public Member Functions

 CbmSts ()
 Default constructor.
 CbmSts (const char *name, Bool_t active)
 Standard constructor.
virtual ~CbmSts ()
 Destructor.
virtual Bool_t ProcessHits (FairVolume *vol=0)
 Virtual method ProcessHits.
virtual void BeginEvent ()
 Virtual method BeginEvent.
virtual void EndOfEvent ()
 Virtual method EndOfEvent.
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 ()
 Construct the STS geometry.
virtual void ConstructAsciiGeometry ()
 Construct the geometry from an ASCII geometry file.
virtual void ConstructGDMLGeometry (TGeoMatrix *)
 Construct the geometry from a GDML geometry file.
virtual Bool_t CheckIfSensitive (std::string name)
 Check whether a volume is sensitive.

Private Member Functions

CbmStsPoint * AddHit (Int_t trackID, Int_t detID, TVector3 posIn, TVector3 pos_out, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss, Int_t stationNum, Int_t moduleNum)
 The hit collection.
void ResetParameters ()
 Private method ResetParameters.
 CbmSts (const CbmSts &)=delete
CbmSts operator= (const CbmSts &)=delete

Private Attributes

Int_t fTrackID
 Track information to be stored until the track leaves the active volume.
Int_t fVolumeID
 track index
Int_t fDetectorId
 volume id
TVector3 fPosIn
TVector3 fPosOut
TVector3 fMomIn
 position
TVector3 fMomOut
Double32_t fTime
 momentum
Double32_t fLength
 time
Double32_t fELoss
 length
Int_t fPosIndex
 energy loss
TClonesArray * fStsCollection

Detailed Description

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e

Defines the active detector STS. Constructs the geometry and registeres MCPoints.

Definition at line 22 of file CbmSts.h.

Constructor & Destructor Documentation

◆ CbmSts() [1/3]

CbmSts::CbmSts ( )

Definition at line 39 of file CbmSts.cxx.

References fDetectorId, fELoss, fLength, fMomIn, fMomOut, fPosIn, fPosIndex, fPosOut, fStsCollection, fTime, fTrackID, fVolumeID, kGEM, and ResetParameters().

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

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

◆ CbmSts() [2/3]

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

Definition at line 65 of file CbmSts.cxx.

References fDetectorId, fELoss, fLength, fMomIn, fMomOut, fPosIn, fPosIndex, fPosOut, fStsCollection, fTime, fTrackID, fVolumeID, kGEM, and ResetParameters().

Here is the call graph for this function:

◆ ~CbmSts()

CbmSts::~CbmSts ( )
virtual

Definition at line 88 of file CbmSts.cxx.

References fStsCollection.

◆ CbmSts() [3/3]

CbmSts::CbmSts ( const CbmSts & )
privatedelete

References CbmSts().

Here is the call graph for this function:

Member Function Documentation

◆ AddHit()

CbmStsPoint * CbmSts::AddHit ( Int_t trackID,
Int_t detID,
TVector3 posIn,
TVector3 pos_out,
TVector3 momIn,
TVector3 momOut,
Double_t time,
Double_t length,
Double_t eLoss,
Int_t stationNum,
Int_t moduleNum )
private

Private method AddHit

Adds a StsPoint to the HitCollection

Definition at line 416 of file CbmSts.cxx.

References TObjArray::At(), fStsCollection, TObjArray::GetEntriesFast(), CbmStsPoint::SetModule(), CbmStsPoint::SetStation(), TVector3::X(), TVector3::Y(), and TVector3::Z().

Referenced by ProcessHits().

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

◆ BeginEvent()

void CbmSts::BeginEvent ( )
virtual

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

Definition at line 187 of file CbmSts.cxx.

◆ CheckIfSensitive()

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

The decision is based on the volume name. Only used in case of ROOT geometry.

Since
11.06.2012
Parameters
(name)Volume name
Returns
kTRUE if volume is sensitive, else kFALSE

Definition at line 405 of file CbmSts.cxx.

References TString::Contains().

Here is the call graph for this function:

◆ ConstructAsciiGeometry()

void CbmSts::ConstructAsciiGeometry ( )
virtual

Definition at line 272 of file CbmSts.cxx.

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

Referenced by ConstructGeometry().

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

◆ ConstructGDMLGeometry()

void CbmSts::ConstructGDMLGeometry ( TGeoMatrix * )
virtual

To avoid having different names of the default matrices because we could have get the volume from another TGeoManager, we reset the default matrix name

Now we can add the node to the existing cave

Definition at line 311 of file CbmSts.cxx.

References TGeoVolume::AddNode(), TFile::Close(), TGDMLParse::GDMLReadFile(), TGeoNode::GetMatrix(), TGeoVolume::GetNode(), TGeoVolume::GetVoxels(), TGeoMatrix::SetDefaultName(), TGeoVoxelFinder::SetNeedRebuild(), and TObject::Write().

Referenced by ConstructGeometry().

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

◆ ConstructGeometry()

void CbmSts::ConstructGeometry ( )
virtual

Depending on the geometry file extension, the base class method ConstructRootGeometry is called (.root), or the ASCII geometry file is read by the FairGeoLoader (.geo).

Since
11.06.2012

Definition at line 254 of file CbmSts.cxx.

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

Here is the call graph for this function:

◆ CopyClones()

void CbmSts::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 236 of file CbmSts.cxx.

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

Here is the call graph for this function:

◆ EndOfEvent()

void CbmSts::EndOfEvent ( )
virtual

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

Definition at line 189 of file CbmSts.cxx.

References fStsCollection, Print(), and ResetParameters().

Here is the call graph for this function:

◆ GetCollection()

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

Definition at line 209 of file CbmSts.cxx.

References fStsCollection.

◆ operator=()

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

References CbmSts().

Here is the call graph for this function:

◆ Print()

void CbmSts::Print ( Option_t * ) const
virtual

Screen output of hit collection.

Definition at line 219 of file CbmSts.cxx.

References fStsCollection.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ ProcessHits()

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

Defines the action to be taken when a step is inside the active volume. Creates a CbmStsPoint and adds it to the collection.

Parameters
volPointer to the active volume

Definition at line 98 of file CbmSts.cxx.

References AddHit(), CbmStack::AddPoint(), TString::Atoi(), TString::Contains(), fDetectorId, fELoss, fLength, fMomIn, fMomOut, fPosIn, fPosOut, fTime, fTrackID, TNamed::GetName(), kGEM, TVector3::Mag(), ResetParameters(), TVector3::SetMag(), TLorentzVector::X(), TLorentzVector::Y(), and TLorentzVector::Z().

Here is the call graph for this function:

◆ Register()

void CbmSts::Register ( )
virtual

Registers the hit collection in the ROOT manager.

Definition at line 202 of file CbmSts.cxx.

References fStsCollection.

◆ Reset()

void CbmSts::Reset ( )
virtual

Clears the hit collection

Definition at line 227 of file CbmSts.cxx.

References fStsCollection, and ResetParameters().

Here is the call graph for this function:

◆ ResetParameters()

void CbmSts::ResetParameters ( )
inlineprivate

Resets the private members for the track parameters

Definition at line 160 of file CbmSts.h.

References fELoss, fLength, fMomIn, fMomOut, fPosIn, fPosIndex, fPosOut, fTime, fTrackID, and fVolumeID.

Referenced by CbmSts(), CbmSts(), EndOfEvent(), ProcessHits(), and Reset().

Here is the caller graph for this function:

Member Data Documentation

◆ fDetectorId

Int_t CbmSts::fDetectorId
private

Definition at line 121 of file CbmSts.h.

Referenced by CbmSts(), CbmSts(), and ProcessHits().

◆ fELoss

Double32_t CbmSts::fELoss
private

Definition at line 126 of file CbmSts.h.

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

◆ fLength

Double32_t CbmSts::fLength
private

Definition at line 125 of file CbmSts.h.

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

◆ fMomIn

TVector3 CbmSts::fMomIn
private

Definition at line 123 of file CbmSts.h.

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

◆ fMomOut

TVector3 CbmSts::fMomOut
private

Definition at line 123 of file CbmSts.h.

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

◆ fPosIn

TVector3 CbmSts::fPosIn
private

Definition at line 122 of file CbmSts.h.

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

◆ fPosIndex

Int_t CbmSts::fPosIndex
private

Definition at line 128 of file CbmSts.h.

Referenced by CbmSts(), CbmSts(), CopyClones(), and ResetParameters().

◆ fPosOut

TVector3 CbmSts::fPosOut
private

Definition at line 122 of file CbmSts.h.

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

◆ fStsCollection

TClonesArray* CbmSts::fStsCollection
private

Definition at line 129 of file CbmSts.h.

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

◆ fTime

Double32_t CbmSts::fTime
private

Definition at line 124 of file CbmSts.h.

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

◆ fTrackID

Int_t CbmSts::fTrackID
private

Definition at line 119 of file CbmSts.h.

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

◆ fVolumeID

Int_t CbmSts::fVolumeID
private

Definition at line 120 of file CbmSts.h.

Referenced by CbmSts(), CbmSts(), and ResetParameters().


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