Go to the documentation of this file.
7 #define CBMTRANSPORT_H 1
61 void AddInput(FairGenerator* generator);
130 void Run(Int_t nEvents);
148 Double_t sigmaX = -1.,
149 Double_t sigmaY = -1.);
170 Double_t sigmaX = -1.,
171 Double_t sigmaY = -1.,
183 void SetDecayMode(Int_t pdg, UInt_t nDaughters, Int_t* daughterPdg);
std::map< Int_t, std::vector< Int_t > > fDecayModes
std::unique_ptr< CbmMCEventFilter > fEventFilter
void SetSetupSource(ECbmSetupSource setupSource)
Set the source the setup will be loaded from.
void StoreTrajectories(Bool_t choice=kTRUE)
Enable storing of trajectories.
void InitEventGenerator()
Event generator initialisation.
void SetRandomEventPlane(Double_t phiMin=0., Double_t phiMax=2. *TMath::Pi())
Activate random event plane.
void SetEngine(ECbmEngine engine)
Set transport engine.
CbmEventGenerator * fEventGen
CbmGeant4Settings * fGeant4Settings
void SetEventFilterMinNofData(ECbmDataType type, Int_t value)
CbmGeant3Settings * fGeant3Settings
std::vector< FairGenerator * > fGenerators
virtual ~CbmTransport()
Destructor
User interface class for transport simulation.
Class for constructing the geometry of the CBM target.
void SetGeant4Settings(CbmGeant4Settings *val)
Set user defined transport settings for Geant4.
void SetBeamPosition(Double_t x0, Double_t y0, Double_t sigmaX=-1., Double_t sigmaY=-1., Double_t zF=0.)
Set the beam position.
void RegisterIons()
Register ions.
void AddInput(const char *fileName, ECbmGenerator generator=kUnigen)
Add an input by file name and generator type.
void SetMediaFilePath(std::string filePath)
void SetVertexSmearZ(Bool_t choice=kTRUE)
Enable smearing of event vertex in z.
CbmTransport()
Constructor.
CbmSetup * GetSetup() const
Detector setup interface.
void SetGeoFileName(TString name)
Define geometry file name (output)
void RegisterSetup()
Create and register the setup modules.
void SetStackFilter(std::unique_ptr< CbmStackFilter > &filter)
Set a user-defined stack filter class.
void ForceUserDecays()
Force user-defined single-mode decays.
void RegisterRadLength(Bool_t choice=kTRUE)
Enable registration of radiation length.
void ForceVertexInTarget(Bool_t choice=kTRUE)
Enable or disable forcing the vertex to be in the target.
void ConfigureVMC()
Set the parameters for the TVirtualMC.
void PiAndEtaDecay(TVirtualMC *vmc)
Correct decay modes for pi0 and eta.
std::unique_ptr< CbmStackFilter > fStackFilter
Bool_t fStoreTrajectories
ClassDef(CbmTransport, 3)
User interface class to define the Geant3 simulation settings.
void SetParFileName(TString name)
Define parameter file name.
User interface class to define the Geant4 simulation settings.
void Run(Int_t nEvents)
Execute transport run.
void SetDecayMode(Int_t pdg, UInt_t nDaughters, Int_t *daughterPdg)
Set a decay mode for a particle.
void ForceVertexAtZ(Double_t zVertex)
Force the event vertex to be at a given z position.
std::unique_ptr< CbmStackFilter > & GetStackFilter()
Access to stack filter object.
void SetVertexSmearXY(Bool_t choice=kTRUE)
Enable smearing of event vertex in x and y.
void SetMediaFileName(TString fileName)
Set the media file name.
void LoadSetup(const char *setupName)
Use a standard setup.
void SetTarget(const char *medium, Double_t thickness, Double_t diameter, Double_t x=0., Double_t y=0., Double_t z=0., Double_t rot=0.)
Define the target.
void SetEventFilter(std::unique_ptr< CbmMCEventFilter > &filter)
Set a user-defined event filter class.
void GenerateRunInfo(Bool_t choice=kTRUE)
Trigger generation of a run info file.
std::function< void()> fSimSetup
void SetGeant3Settings(CbmGeant3Settings *val)
Set user defined transport settings for Geant3.
void SetField(FairField *field)
Set magnetic field.
void SetBeamAngle(Double_t x0, Double_t y0, Double_t sigmaX=-1., Double_t sigmaY=-1.)
Set the beam angle (emittency at the beam position)
void SetOutFileName(TString name)
Define output file name.
std::shared_ptr< CbmTarget > fTarget