FairRoot/PandaRoot
|
Go to the source code of this file.
Variables | |
gDebug =0 | |
FairRunSim * | fRun = new FairRunSim() |
TString | digiFile = "emc.par" |
TString | parFile = "simparams.root" |
Int_t | nEvents = 10 |
FairModule * | Cave = new PndCave("CAVE") |
FairModule * | Magnet = new PndMagnet("MAGNET") |
FairModule * | Dipole = new PndMagnet("MAGNET") |
FairModule * | Pipe = new PndPipe("PIPE") |
FairDetector * | Stt = new PndStt("STT", kTRUE) |
FairDetector * | Mvd = new PndMvdDetector("MVD", kTRUE) |
PndEmc * | Emc = new PndEmc("EMC",kTRUE) |
FairDetector * | Tof = new PndTof("TOF",kTRUE) |
PndMdt * | Muo = new PndMdt("MDT",kTRUE) |
PndDrc * | Drc = new PndDrc("DIRC", kTRUE) |
FairPrimaryGenerator * | primGen = new FairPrimaryGenerator() |
FairBoxGenerator * | boxGen = new FairBoxGenerator(22, 5) |
PndMultiField * | fField = new PndMultiField() |
PndTransMap * | map_t = new PndTransMap("TransMap", "R") |
PndDipoleMap * | map_d1 = new PndDipoleMap("DipoleMap1", "R") |
PndDipoleMap * | map_d2 = new PndDipoleMap("DipoleMap2", "R") |
PndSolenoidMap * | map_s1 = new PndSolenoidMap("SolenoidMap1", "R") |
PndSolenoidMap * | map_s2 = new PndSolenoidMap("SolenoidMap2", "R") |
PndSolenoidMap * | map_s3 = new PndSolenoidMap("SolenoidMap3", "R") |
PndSolenoidMap * | map_s4 = new PndSolenoidMap("SolenoidMap4", "R") |
TString | emcDigiFile = gSystem->Getenv("VMCWORKDIR") |
FairRuntimeDb * | rtdb = fRun->GetRuntimeDb() |
FairParAsciiFileIo * | parIo1 = new FairParAsciiFileIo() |
Bool_t | kParameterMerged =kTRUE |
FairParRootFileIo * | output =new FairParRootFileIo(kParameterMerged) |
PndEmcHitProducer * | emcHitProd = new PndEmcHitProducer() |
PndMultiFieldPar * | Par = (PndMultiFieldPar*) rtdb->getContainer("PndMultiFieldPar") |
Double_t | rtime = timer.RealTime() |
Double_t | ctime = timer.CpuTime() |
fRun AddTask | ( | emcHitProd | ) |
if | ( | fField | ) |
Definition at line 163 of file sim_hit_emc.C.
References PndMultiFieldPar::SetParameters().
fRun Init | ( | ) |
parIo1 open | ( | emcDigiFile. | Data(), |
"in" | |||
) |
output open | ( | "simparams.root" | ) |
printf | ( | " | RealTime = %f seconds | ) |
rtdb saveOutput | ( | ) |
All parameters are initialized and ready to be saved
Muo SetBarrel | ( | "torino" | ) |
fRun SetBeamMom | ( | 15 | ) |
Par setChanged | ( | ) |
Muo SetEndcap | ( | "torino" | ) |
Cave SetGeometryFileName | ( | "pndcave.geo" | ) |
Magnet SetGeometryFileName | ( | "FullSolenoid.root" | ) |
Dipole SetGeometryFileName | ( | "dipole.geo" | ) |
Stt SetGeometryFileName | ( | "straws_skewed_blocks_35cm_pipe.geo" | ) |
Mvd SetGeometryFileName | ( | "MVD_v1.0_woPassiveTraps.root" | ) |
Tof SetGeometryFileName | ( | "tofbarrel.geo" | ) |
Emc SetGeometryFileNameTriple | ( | "emc_module125.dat" | , |
"emc_module3new.root" | , | ||
"emc_module4_StraightGeo24.4.root" | |||
) |
fRun SetMaterials | ( | "media_pnd.geo" | ) |
Muo SetMdtMagnet | ( | kTRUE | ) |
Muo SetMdtMFIron | ( | kTRUE | ) |
Muo SetMuonFilter | ( | "torino" | ) |
fRun SetName | ( | "TGeant3" | ) |
fRun SetOutputFile | ( | "sim_hit_emc.root" | ) |
boxGen SetPhiRange | ( | 0. | , |
360. | |||
) |
boxGen SetPRange | ( | 1. | , |
1. | |||
) |
Drc SetRunCherenkov | ( | kFALSE | ) |
boxGen7 SetThetaRange | ( | 0. | , |
180. | |||
) |
boxGen SetXYZ | ( | 0. | , |
0. | , | ||
0. | |||
) |
timer Start | ( | ) |
Modified 17.12.08 by M. Al-Turany The hit producing is added to the simulation session, so that the EmcHits are produced on the fly during the simulation
timer Stop | ( | ) |
FairBoxGenerator* boxGen = new FairBoxGenerator(22, 5) |
Definition at line 94 of file sim_hit_emc.C.
FairModule* Cave = new PndCave("CAVE") |
Definition at line 43 of file sim_hit_emc.C.
Double_t ctime = timer.CpuTime() |
Definition at line 178 of file sim_hit_emc.C.
TString digiFile = "emc.par" |
Definition at line 22 of file sim_hit_emc.C.
FairModule* Dipole = new PndMagnet("MAGNET") |
Definition at line 51 of file sim_hit_emc.C.
Definition at line 83 of file sim_hit_emc.C.
Definition at line 66 of file sim_hit_emc.C.
emcDigiFile = gSystem->Getenv("VMCWORKDIR") |
Set the digitization parameters
Definition at line 130 of file sim_hit_emc.C.
PndEmcHitProducer* emcHitProd = new PndEmcHitProducer() |
Add Hit producer task to the simulation
Definition at line 150 of file sim_hit_emc.C.
PndMultiField* fField = new PndMultiField() |
Definition at line 107 of file sim_hit_emc.C.
FairRunSim* fRun = new FairRunSim() |
Definition at line 20 of file sim_hit_emc.C.
gDebug =0 |
Definition at line 12 of file sim_hit_emc.C.
Bool_t kParameterMerged =kTRUE |
Definition at line 138 of file sim_hit_emc.C.
FairModule* Magnet = new PndMagnet("MAGNET") |
Definition at line 47 of file sim_hit_emc.C.
PndDipoleMap* map_d1 = new PndDipoleMap("DipoleMap1", "R") |
Definition at line 110 of file sim_hit_emc.C.
Referenced by PndMultiField::PndMultiField(), QAmacro_mdt_1(), run0AllSysDPMbkg(), runGeaneTestSimBox(), runLumi0DPMbkg(), runLumiSimBox(), sim_emc_test(), sim_gg(), sim_muo_test(), and visualize_fieldmaps().
PndDipoleMap* map_d2 = new PndDipoleMap("DipoleMap2", "R") |
Definition at line 111 of file sim_hit_emc.C.
Referenced by PndMultiField::PndMultiField(), QAmacro_mdt_1(), run0AllSysDPMbkg(), runGeaneTestSimBox(), runLumi0DPMbkg(), runLumiSimBox(), sim_emc_test(), sim_gg(), sim_muo_test(), and visualize_fieldmaps().
PndSolenoidMap* map_s1 = new PndSolenoidMap("SolenoidMap1", "R") |
Definition at line 112 of file sim_hit_emc.C.
Referenced by PndMultiField::PndMultiField(), QAmacro_mdt_1(), run0AllSysDPMbkg(), runGeaneTestSimBox(), runLumi0DPMbkg(), runLumiSimBox(), runMCsim(), sim_emc_test(), sim_gg(), sim_muo_test(), and visualize_fieldmaps().
PndSolenoidMap* map_s2 = new PndSolenoidMap("SolenoidMap2", "R") |
Definition at line 113 of file sim_hit_emc.C.
Referenced by PndMultiField::PndMultiField(), QAmacro_mdt_1(), run0AllSysDPMbkg(), runGeaneTestSimBox(), runLumi0DPMbkg(), runLumiSimBox(), runMCsim(), sim_emc_test(), sim_gg(), sim_muo_test(), and visualize_fieldmaps().
PndSolenoidMap* map_s3 = new PndSolenoidMap("SolenoidMap3", "R") |
Definition at line 114 of file sim_hit_emc.C.
Referenced by PndMultiField::PndMultiField(), QAmacro_mdt_1(), run0AllSysDPMbkg(), runGeaneTestSimBox(), runLumi0DPMbkg(), runLumiSimBox(), runMCsim(), sim_emc_test(), sim_gg(), sim_muo_test(), and visualize_fieldmaps().
PndSolenoidMap* map_s4 = new PndSolenoidMap("SolenoidMap4", "R") |
Definition at line 115 of file sim_hit_emc.C.
Referenced by PndMultiField::PndMultiField(), QAmacro_mdt_1(), run0AllSysDPMbkg(), runGeaneTestSimBox(), runLumi0DPMbkg(), runLumiSimBox(), runMCsim(), sim_emc_test(), sim_gg(), sim_muo_test(), and visualize_fieldmaps().
PndTransMap* map_t = new PndTransMap("TransMap", "R") |
Definition at line 109 of file sim_hit_emc.C.
Referenced by PndMultiField::PndMultiField(), QAmacro_mdt_1(), run0AllSysDPMbkg(), runGeaneTestSimBox(), runLumi0DPMbkg(), runLumiSimBox(), runMCsim(), sim_emc_test(), sim_gg(), sim_muo_test(), and visualize_fieldmaps().
Definition at line 75 of file sim_hit_emc.C.
FairDetector* Mvd = new PndMvdDetector("MVD", kTRUE) |
Definition at line 62 of file sim_hit_emc.C.
Int_t nEvents = 10 |
Definition at line 27 of file sim_hit_emc.C.
FairParRootFileIo* output =new FairParRootFileIo(kParameterMerged) |
Parameters created for this simulation goes to the out put
Definition at line 141 of file sim_hit_emc.C.
PndMultiFieldPar* Par = (PndMultiFieldPar*) rtdb->getContainer("PndMultiFieldPar") |
After initialization now we can save the field parameters
Definition at line 162 of file sim_hit_emc.C.
TString parFile = "simparams.root" |
Definition at line 24 of file sim_hit_emc.C.
FairParAsciiFileIo* parIo1 = new FairParAsciiFileIo() |
Definition at line 135 of file sim_hit_emc.C.
FairModule* Pipe = new PndPipe("PIPE") |
Definition at line 55 of file sim_hit_emc.C.
FairPrimaryGenerator* primGen = new FairPrimaryGenerator() |
Definition at line 90 of file sim_hit_emc.C.
FairRuntimeDb* rtdb = fRun->GetRuntimeDb() |
Get the run time data base for this session and set the needed input
Definition at line 134 of file sim_hit_emc.C.
Double_t rtime = timer.RealTime() |
Definition at line 177 of file sim_hit_emc.C.
FairDetector* Stt = new PndStt("STT", kTRUE) |
Definition at line 58 of file sim_hit_emc.C.
FairDetector* Tof = new PndTof("TOF",kTRUE) |
Definition at line 71 of file sim_hit_emc.C.