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