|
BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
|
#include <CbmSts.h>
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 |
Defines the active detector STS. Constructs the geometry and registeres MCPoints.
| 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=().
| CbmSts::CbmSts | ( | const char * | name, |
| Bool_t | active ) |
| name | detetcor name |
| active | sensitivity 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().
|
virtual |
Definition at line 88 of file CbmSts.cxx.
References fStsCollection.
|
privatedelete |
|
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().
|
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.
|
virtual |
The decision is based on the volume name. Only used in case of ROOT geometry.
| (name) | Volume name |
Definition at line 405 of file CbmSts.cxx.
References TString::Contains().
|
virtual |
Definition at line 272 of file CbmSts.cxx.
References TObjArray::AddLast(), CbmGeoStsPar::GetGeoPassiveNodes(), CbmGeoStsPar::GetGeoSensitiveNodes(), and TListIter::Next().
Referenced by ConstructGeometry().
|
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().
|
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).
Definition at line 254 of file CbmSts.cxx.
References ConstructAsciiGeometry(), ConstructGDMLGeometry(), TString::Data(), and TString::EndsWith().
|
virtual |
Copies the hit collection with a given track index offset
| cl1 | Origin |
| cl2 | Target |
| offset | Index offset |
Definition at line 236 of file CbmSts.cxx.
References TObjArray::At(), fPosIndex, TObjArray::GetEntriesFast(), i, and CbmStsPoint::SetTrackID().
|
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().
|
virtual |
Definition at line 209 of file CbmSts.cxx.
References fStsCollection.
|
virtual |
Screen output of hit collection.
Definition at line 219 of file CbmSts.cxx.
References fStsCollection.
Referenced by EndOfEvent().
|
virtual |
Defines the action to be taken when a step is inside the active volume. Creates a CbmStsPoint and adds it to the collection.
| vol | Pointer 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().
|
virtual |
Registers the hit collection in the ROOT manager.
Definition at line 202 of file CbmSts.cxx.
References fStsCollection.
|
virtual |
Clears the hit collection
Definition at line 227 of file CbmSts.cxx.
References fStsCollection, and 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().
|
private |
Definition at line 121 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), and ProcessHits().
|
private |
Definition at line 126 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), ProcessHits(), and ResetParameters().
|
private |
Definition at line 125 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), ProcessHits(), and ResetParameters().
|
private |
Definition at line 123 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), ProcessHits(), and ResetParameters().
|
private |
Definition at line 123 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), ProcessHits(), and ResetParameters().
|
private |
Definition at line 122 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), ProcessHits(), and ResetParameters().
|
private |
Definition at line 128 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), CopyClones(), and ResetParameters().
|
private |
Definition at line 122 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), ProcessHits(), and ResetParameters().
|
private |
Definition at line 129 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), ~CbmSts(), AddHit(), EndOfEvent(), GetCollection(), Print(), Register(), and Reset().
|
private |
Definition at line 124 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), ProcessHits(), and ResetParameters().
|
private |
Definition at line 119 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), ProcessHits(), and ResetParameters().
|
private |
Definition at line 120 of file CbmSts.h.
Referenced by CbmSts(), CbmSts(), and ResetParameters().