FairRoot/PandaRoot
|
Go to the source code of this file.
Functions | |
timer | Start () |
gROOT | Macro ("$VMCWORKDIR/gconfig/rootlogon.C") |
gSystem | Load ("libFtof") |
fRun | SetBeamMom (BeamMomentum) |
fRun | SetName ("TGeant3") |
fRun | SetOutputFile ("test.root") |
fRun | SetMaterials ("media_pnd.geo") |
Cave | SetGeometryFileName ("cave.geo") |
fRun | AddModule (Cave) |
FTof | SetGeometryFileName ("ftofwall+stof.root") |
fRun | AddModule (FTof) |
Fts | SetGeometryFileName ("fts.geo") |
fRun | AddModule (Fts) |
fRun | SetGenerator (primGen) |
boxGen | SetPRange (.2, 7.) |
boxGen | SetPhiRange (0., 360.) |
boxGen | SetThetaRange (0., 15.) |
boxGen | SetXYZ (0., 0., 0.) |
primGen | AddGenerator (boxGen) |
fRun | SetField (fField) |
fRun | SetStoreTraj (kTRUE) |
fRun | Init () |
if (fField) | |
fieldPar | setInputVersion (fRun->GetRunId(), 1) |
fieldPar | setChanged () |
output | open ("simparams.root") |
rtdb | setOutput (output) |
rtdb | saveOutput () |
rtdb | print () |
fRun | Run (nEvents) |
timer | Stop () |
printf ("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime) | |
exit (0) | |
Variables | |
gDebug =0 | |
FairRunSim * | fRun = new FairRunSim() |
TString | inFile3 = "pbarC_3_GeV.root" |
double | BeamMomentum = 15 |
FairModule * | Cave = new PndCave("CAVE") |
FairDetector * | FTof = new PndFtof("FTOF",kTRUE) |
FairDetector * | Fts = new PndFts("FTS", kTRUE) |
FairPrimaryGenerator * | primGen = new FairPrimaryGenerator() |
PndBoxGenerator * | boxGen = new PndBoxGenerator(13, 10) |
PndMultiField * | fField = new PndMultiField("FULL") |
FairRuntimeDb * | rtdb =fRun->GetRuntimeDb() |
PndMultiFieldPar * | fieldPar = (PndMultiFieldPar*) rtdb->getContainer("PndMultiFieldPar") |
Bool_t | kParameterMerged =kTRUE |
FairParRootFileIo * | output =new FairParRootFileIo(kParameterMerged) |
Int_t | nEvents = 100 |
Double_t | rtime = timer.RealTime() |
Double_t | ctime = timer.CpuTime() |
exit | ( | 0 | ) |
if | ( | fField | ) |
Definition at line 104 of file sim_ftof_stof.C.
References PndMultiFieldPar::SetParameters().
fRun Init | ( | ) |
gSystem Load | ( | "libFtof" | ) |
gROOT Macro | ( | "$VMCWORKDIR/gconfig/rootlogon.C" | ) |
output open | ( | "simparams.root" | ) |
printf | ( | " | RealTime = %f seconds | ) |
rtdb saveOutput | ( | ) |
fRun SetBeamMom | ( | BeamMomentum | ) |
fieldPar setChanged | ( | ) |
Cave SetGeometryFileName | ( | "cave.geo" | ) |
FTof SetGeometryFileName | ( | "ftofwall+stof.root" | ) |
Fts SetGeometryFileName | ( | "fts.geo" | ) |
fRun SetMaterials | ( | "media_pnd.geo" | ) |
fRun SetName | ( | "TGeant3" | ) |
fRun SetOutputFile | ( | "test.root" | ) |
boxGen SetPhiRange | ( | 0. | , |
360. | |||
) |
boxGen SetPRange | ( | . | 2, |
7. | |||
) |
fRun SetStoreTraj | ( | kTRUE | ) |
boxGen SetThetaRange | ( | 0. | , |
15. | |||
) |
boxGen SetXYZ | ( | 0. | , |
0. | , | ||
0. | |||
) |
timer Start | ( | ) |
timer Stop | ( | ) |
BeamMomentum = 15 |
Definition at line 17 of file sim_ftof_stof.C.
Referenced by gem_material_sim1(), gem_sim(), gem_simBoxN(), plotHoughSpaces(), plotTrackCands(), prod_sim(), QAmacro_hyp_1(), QAmacro_mvd_1(), rad_complete(), run_sim(), run_sim_complete(), sim(), sim_box(), sim_complete(), sim_complete_newSTT(), sim_complete_pbarA(), sim_complete_runs(), sim_complete_vis(), sim_day1(), sim_evtgen(), sim_filter_ex1(), sim_filter_ex2(), sim_filter_inv_mass(), sim_mvd(), sim_radlength_complete(), sim_rich(), sim_scit(), sim_stt_bg(), sim_stt_signal1(), sim_stt_signal2(), sim_test(), sim_toy(), simExclusive(), simInclusive(), TB_gem_simDPM(), tb_sim_complete(), tb_sim_scit(), and tut_sim().
PndBoxGenerator* boxGen = new PndBoxGenerator(13, 10) |
Definition at line 77 of file sim_ftof_stof.C.
FairModule* Cave = new PndCave("CAVE") |
Definition at line 38 of file sim_ftof_stof.C.
Double_t ctime = timer.CpuTime() |
Definition at line 125 of file sim_ftof_stof.C.
PndMultiField* fField = new PndMultiField("FULL") |
Definition at line 88 of file sim_ftof_stof.C.
PndMultiFieldPar* fieldPar = (PndMultiFieldPar*) rtdb->getContainer("PndMultiFieldPar") |
Definition at line 103 of file sim_ftof_stof.C.
delete fRun = new FairRunSim() |
Definition at line 13 of file sim_ftof_stof.C.
FairDetector* FTof = new PndFtof("FTOF",kTRUE) |
Definition at line 52 of file sim_ftof_stof.C.
FairDetector* Fts = new PndFts("FTS", kTRUE) |
Definition at line 58 of file sim_ftof_stof.C.
Referenced by PndMasterRunSim::CreateGeometryDay1(), PndMasterRunSim::CreateGeometryDefault(), PndMasterRunSim::CreateGeometryPhase1(), emc_correction_data_production(), emc_correction_QA_data_production(), prod_sim(), QAmacro_stt_1(), rad_complete(), run0AllSysDPMbkg(), run_sim(), run_sim_complete(), run_sim_llbar_evtgen(), run_sim_stt_evt(), run_sim_stt_evt_fix(), run_sim_sttcombi_dpm(), run_sim_sttcombi_evtgen(), run_sim_sttcombi_pgun(), run_sim_tpc_evt(), runLumiPixel0SimDPMDirect_all(), runMvdSim(), runSim(), runSimPions(), sim(), sim_complete(), sim_complete_newSTT(), sim_complete_pbarA(), sim_complete_runs(), sim_complete_vis(), sim_emc(), sim_evtgen(), sim_filter_ex1(), sim_radlength_complete(), sim_rich(), sim_sttcombi_pgun(), sim_test(), sim_toy(), simExclusive(), simInclusive(), and tb_sim_complete().
gDebug =0 |
Definition at line 6 of file sim_ftof_stof.C.
TString inFile3 = "pbarC_3_GeV.root" |
Definition at line 16 of file sim_ftof_stof.C.
Bool_t kParameterMerged =kTRUE |
Definition at line 108 of file sim_ftof_stof.C.
Int_t nEvents = 100 |
Definition at line 119 of file sim_ftof_stof.C.
FairParRootFileIo* output =new FairParRootFileIo(kParameterMerged) |
Definition at line 109 of file sim_ftof_stof.C.
FairPrimaryGenerator* primGen = new FairPrimaryGenerator() |
Definition at line 66 of file sim_ftof_stof.C.
FairRuntimeDb* rtdb =fRun->GetRuntimeDb() |
Definition at line 101 of file sim_ftof_stof.C.
Double_t rtime = timer.RealTime() |
Definition at line 124 of file sim_ftof_stof.C.