FairRoot/PandaRoot
|
Go to the source code of this file.
Functions | |
timer | Start () |
gROOT | Macro ("$VMCWORKDIR/gconfig/rootlogon.C") |
gSystem | Load ("libHyp") |
fRun | SetName ("TGeant4") |
fRun | SetOutputFile ("./sim_hypgeantcheck.root") |
fRun | SetMaterials ("media_pnd.geo") |
Cave | SetGeometryFileName ("pndcave.geo") |
fRun | AddModule (Cave) |
Hyp | SetGeometryFileName ("HypST_newxy3C.geo") |
fRun | AddModule (Hyp) |
fRun | SetGenerator (primGen) |
boxGen | SetPRange (.1, 0.7) |
boxGen | SetPhiRange (0., 360.) |
boxGen | SetThetaRange (20., 180.) |
boxGen | SetCosTheta () |
boxGen | SetXYZ (0., 0.,-76.) |
primGen | AddGenerator (boxGen) |
fField | AddField (map) |
fField | AddField (map1) |
fField | AddField (map2) |
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) | |
Variables | |
gDebug =0 | |
FairRunSim * | fRun = new FairRunSim() |
FairModule * | Cave = new PndCave("CAVE") |
FairDetector * | Hyp = new PndHyp("HYP",kTRUE) |
FairPrimaryGenerator * | primGen = new FairPrimaryGenerator() |
PndBoxGenerator * | boxGen = new PndBoxGenerator(3312, 1) |
PndMultiField * | fField = new PndMultiField() |
PndTransMap * | map = new PndTransMap("TransMap", "R") |
PndDipoleMap * | map1 = new PndDipoleMap("DipoleMap", "R") |
PndSolenoidMap * | map2 = new PndSolenoidMap("SolenoidMap", "R") |
FairRuntimeDb * | rtdb =fRun->GetRuntimeDb() |
PndMultiFieldPar * | fieldPar = (PndMultiFieldPar*) rtdb->getContainer("PndMultiFieldPar") |
Bool_t | kParameterMerged =kTRUE |
FairParRootFileIo * | output =new FairParRootFileIo(kParameterMerged) |
Int_t | nEvents =50 |
Double_t | rtime = timer.RealTime() |
Double_t | ctime = timer.CpuTime() |
if | ( | fField | ) |
Definition at line 149 of file sim_hyp.C.
References PndMultiFieldPar::SetParameters().
fRun Init | ( | ) |
gSystem Load | ( | "libHyp" | ) |
gROOT Macro | ( | "$VMCWORKDIR/gconfig/rootlogon.C" | ) |
output open | ( | "simparams.root" | ) |
printf | ( | " | RealTime = %f seconds | ) |
rtdb saveOutput | ( | ) |
fieldPar setChanged | ( | ) |
fBox3 SetCosTheta | ( | ) |
Cave SetGeometryFileName | ( | "pndcave.geo" | ) |
Hyp SetGeometryFileName | ( | "HypST_newxy3C.geo" | ) |
fRun SetMaterials | ( | "media_pnd.geo" | ) |
fRun SetName | ( | "TGeant4" | ) |
fRun SetOutputFile | ( | "./sim_hypgeantcheck.root" | ) |
boxGen SetPhiRange | ( | 0. | , |
360. | |||
) |
boxGen SetPRange | ( | . | 1, |
0. | 7 | ||
) |
fRun SetStoreTraj | ( | kTRUE | ) |
boxGen SetThetaRange | ( | 20. | , |
180. | |||
) |
boxGen7 SetXYZ | ( | 0. | , |
0. | , | ||
- | 76. | ||
) |
timer Start | ( | ) |
timer Stop | ( | ) |
PndBoxGenerator* boxGen = new PndBoxGenerator(3312, 1) |
PndMultiField* fField = new PndMultiField() |
PndMultiFieldPar* fieldPar = (PndMultiFieldPar*) rtdb->getContainer("PndMultiFieldPar") |
PndTransMap* map = new PndTransMap("TransMap", "R") |
PndDipoleMap* map1 = new PndDipoleMap("DipoleMap", "R") |
PndSolenoidMap* map2 = new PndSolenoidMap("SolenoidMap", "R") |
FairParRootFileIo* output =new FairParRootFileIo(kParameterMerged) |