Go to the documentation of this file.
13 #include "FairDetector.h"
14 #include "FairRootManager.h"
15 #include "TClonesArray.h"
40 CbmStsMC(Bool_t active = kTRUE,
const char* name =
"STSMC");
56 return (TString(name).Contains(
"Sensor") ? kTRUE : kFALSE);
102 virtual void Print(Option_t* opt =
"")
const;
125 FairRootManager::Instance()->Register(
148 virtual void Reset();
156 std::map<TString, Int_t>
Class for the MC transport of the CBM-STS.
virtual Bool_t ProcessHits(FairVolume *vol=0)
Action for a track step in a sensitive node of the STS.
virtual void EndOfEvent()
Action at end of event.
Bool_t fProcessNeutrals
Transformation matrix for geometry positioning.
CbmStsPoint * CreatePoint()
Create a new StsPoint Creates a new CbmStsPoint using the current track status information and adds i...
virtual TClonesArray * GetCollection(Int_t iColl) const
Get array of CbmStsPoints.
void SetStatus(CbmStsTrackStatus &status)
Set the current track status Set the current track status (in or out) with parameters obtained from T...
CbmStsSetup * fSetup
Output array (CbmStsPoint)
virtual void ConstructGeometry()
Construct the STS geometry in the TGeoManager.
TClonesArray * fStsPoints
void ProcessNeutrals(Bool_t choice=kTRUE)
Create StsPoints also for neutral particles.
virtual void Reset()
Clear output array and reset current track status.
Stores status of track during transport. Auxiliary for CbmSts.
CbmStsMC(const CbmStsMC &)
virtual void Register()
Register output array (StsPoint) to the I/O manager.
std::map< TString, Int_t > fAddressMap
Accumulated energy loss for current track.
Double_t fEloss
Track status at exit of sensor.
TGeoCombiTrans * fCombiTrans
Pointer to static instance of CbmStsSetup.
Class representing the top level of the STS setup.
virtual Bool_t CheckIfSensitive(std::string name)
Check whether a volume is sensitive.
CbmStsMC(Bool_t active=kTRUE, const char *name="STSMC")
CbmStsMC operator=(const CbmStsMC &)
virtual void ConstructRootGeometry(TGeoMatrix *shift=NULL)
virtual void Initialize()
Initialisation.
virtual void Print(Option_t *opt="") const
Screen log Prints current number of StsPoints in array. Virtual from TObject.
CbmStsTrackStatus fStatusOut
Track status at entry of sensor.
CbmStsTrackStatus fStatusIn