FairRoot/PandaRoot
PndMasterRunSim.h
Go to the documentation of this file.
1 
13 #ifndef PNDMASTERRUNSIM_H
14 #define PNDMASTERRUNSIM_H
15 
16 #include "FairRunSim.h"
17 #include "FairRuntimeDb.h"
18 
19 #include "TStopwatch.h"
20 #include "TString.h"
21 
24 class FairGenerator;
25 
26 class FairBoxGenerator;
27 
28 class PndBoxGenerator;
29 
30 
31 class PndMasterRunSim : public FairRunSim
32 {
33  public:
34 
39 
43  virtual ~PndMasterRunSim();
44 
52  Bool_t Setup(TString outprefix="");
53 
60  void Finish();
61 
68  void CreateGeometry();
69 
76  void CreateGeometryDefault();
77 
85  void CreateGeometryPhase1();
86 
94  void CreateGeometryDay1();
95 
101  void AddSimTasks();
102 
112  void SetGenerator();
113 
119  void AddGenerator(FairGenerator *aGen);
120 
128  void SetGenerator(FairGenerator *boxGen);
129 
137  void SetGenerator(PndBoxGenerator *boxGen);
138 
145  void SetDpmFlag(Int_t Mode) { fDpmFlag = Mode; };
146 
152  void SetFtfFlag(Int_t Mode) { fFtfFlag = Mode; };
153 
157  void UseDpmGenerator();
158 
166  void UseFtfGenerator(TString ftfData);
167 
176  void UseEvtGenGenerator(TString EvtGenFile);
177 
189  void UseBoxGenerator(TString BoxConfig);
190 
199  void UsePiPiGenerator(TString pipiConfig);
200 
209  void UseLepLepGenerator(TString leplepConfig);
210 
220 
225 
230 
235 
247  void SetOptions(TString par) { fOptions = par; fOptions.ToLower();}
249 
253  void SetNumberOfEvents(Int_t par) { fNEvents = par;}
254 
259 
268  void SetTargetMode(Short_t par) { fTargetMode = par;}
269 
275 
276  private:
277 
278  void GetRange(TString par, double &min, double &max);
279 
286 
287  Int_t fDpmFlag;
288  Int_t fFtfFlag;
289  Int_t fNEvents;
291  Short_t fTargetMode;
292 
293  FairRuntimeDb *fRtdb;
294  TStopwatch fTimer;
295 
297  ClassDef(PndMasterRunSim,2);
298 
300 };
301 
302 #endif /* PNDMASTERRUNSIM_H */
TString fInput
Name of the input for the simulation.
void SetInputDir(TString par)
Input directory of the simulation.
Int_t fFtfFlag
Flag for FTF event generator.
void Finish()
Final diagnostics.
void CreateGeometryDefault()
It creates all the standard geometry volumes.
Int_t fNEvents
Number of events.
Double_t par[3]
Bool_t Setup(TString outprefix="")
Initial setup.
PndFilteredPrimaryGenerator * GetPndFilteredPrimaryGenerator()
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:26
void UseEvtGenGenerator(TString EvtGenFile)
Use EvtGen as event generator.
Short_t fTargetMode
Target mode.
void UseDpmGenerator()
Use DPM as event generator.
TString fOptions
Options parsed to the simulation.
Int_t fEventCounterRate
After how many events the counter will print.
void AddGenerator(FairGenerator *aGen)
Add a generator to existing setup.
void SetInput(TString par)
Input of the simulation This string can be: a) the name of the dec file for EvtGen, ending w/ .dec b) "dpm" if you want to use dpm c) "ftf" if you want to use ftf d) "box:[...]" if you want to use box.
virtual ~PndMasterRunSim()
Default destructor.
void AddSimTasks()
Add simulation tasks.
Primary generator with added event filtering capabilities.
void SetParamRootFile(TString par)
Setter of the parameter root file.
FairFilteredPrimaryGenerator * GetFilteredPrimaryGenerator()
Getter for the primary generator, e.g. to configure the event filter.
void UsePiPiGenerator(TString pipiConfig)
Use PiPiGenerator as event generator.
Primary generator with added event filtering capabilities.
void SetTargetMode(Short_t par)
Setter of the target mode.
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:25
void SetNumberOfEvents(Int_t par)
Setter of the number of events.
void CreateGeometry()
It switches between different standard geometry volumes.
void CreateGeometryDay1()
It creates the standard geometry volumes for day1 phase.
Class for the master simulation chain.
void UseFtfGenerator(TString ftfData)
Use FTF as event generator.
FairBoxGenerator * boxGen
Definition: sim_emc_apd.C:85
TString fParamRootFile
Name of the parameter root file.
void SetEventCounterRate(Int_t par)
Setter of the event counter rate.
void GetRange(TString par, double &min, double &max)
PndMasterRunSim()
Default constructor.
void UseBoxGenerator(TString BoxConfig)
Use BoxGen as event generator.
void SetOptions(TString par)
Setter of the simulation options This string can be: "" -> default settings full setup "day1" -> Set...
TString GetOptions()
FairRuntimeDb * fRtdb
Runtime DB.
void SetFtfFlag(Int_t Mode)
Set the FTF noelastic flag.
TString fOutFile
Name of the output file.
TStopwatch fTimer
Timer.
void SetGenerator()
Set the event generator.
TString fInputDir
Name of the input directory for the simulation.
void CreateGeometryPhase1()
It creates the standard geometry volumes for phase1 of the experiment.
TString fParamAsciiFile
Name of the parameter ascii file.
void UseLepLepGenerator(TString leplepConfig)
Use LepLepGenerator as event generator.
void SetDpmFlag(Int_t Mode)
Set the DPM flag.
Int_t fDpmFlag
Flag for DPM event generator.