Go to the source code of this file.
|
| timer | Start () |
| |
| gROOT | Macro ("$VMCWORKDIR/gconfig/rootlogon.C") |
| |
| gSystem | Load ("librazhyp") |
| |
| gSystem | Load ("libHyp") |
| |
| fRun | SetName ("TGeant4") |
| |
| fRun | SetOutputFile ("bup_test.root") |
| |
| fRun | SetMaterials ("media_pnd.geo") |
| |
| Cave | SetGeometryFileName ("pndcave.geo") |
| |
| fRun | AddModule (Cave) |
| |
| Hyp | SetAbsorberVol ("Absorber") |
| |
| Hyp | SetSensorVol ("Sensor") |
| |
| Hyp | SetGeoVersion ("List") |
| |
| Hyp | SetListMat ("HYPboron") |
| |
| Hyp | SetListMat ("HYPaluminium") |
| |
| Hyp | SetListMat ("Al97Mg3") |
| |
| Hyp | SetListMat ("titanium") |
| |
| Hyp | SetListMat ("HYPcarbon") |
| |
| Hyp | SetListMat ("siliconinactive") |
| |
| Hyp | SetGeometryFileName ("TargetSystem_Ti_AbsWindow_addSens.root") |
| |
| Hyp | SetHypSDtoFile (true, false) |
| |
| fRun | AddModule (Hyp) |
| |
| gROOT | LoadMacro ("$VMCWORKDIR/gconfig/SetFragments.C") |
| |
| | FragConfig (fRun) |
| |
| fRun | SetGenerator (primGen) |
| |
| partGen | GammaEmissPar (kTRUE) |
| |
| partGen | SetPRange (1., 1.) |
| |
| partGen | SetPhiRange (0, 360) |
| |
| partGen | SetThetaRange (0, 180) |
| |
| primGen | AddGenerator (partGen) |
| |
| fMagField | SetField (0, 0, 10.) |
| |
| fMagField | SetFieldRegion (-50, 50,-50, 50,-200, 200) |
| |
| fRun | SetField (fMagField) |
| |
| fRun | SetStoreTraj (kTRUE) |
| |
| fRun | Init () |
| |
| | if (fMagField) |
| |
| fieldPar | setInputVersion (fRun->GetRunId(), 1) |
| |
| fieldPar | setChanged () |
| |
| output | open ("test_params.root") |
| |
| rtdb | setOutput (output) |
| |
| rtdb | saveOutput () |
| |
| rtdb | print () |
| |
| fRun | Run (nEvents) |
| |
| timer | Stop () |
| |
| | printf ("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime) |
| |
Initialize the session
Definition at line 20 of file NHitsPerEvent.C.
22 TFile*
f =
new TFile(
"2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Event.root",
"READ");
23 t = (TTree*)f->Get(
"pndsim");
29 t->SetBranchAddress(
"MVDHitsPixelPosCorrected", &
mvdHitArray);
TClonesArray * mvdHitArray
| gSystem Load |
( |
"librazhyp" |
| ) |
|
| gSystem Load |
( |
"libHyp" |
| ) |
|
| output open |
( |
"test_params.root" |
| ) |
|
| printf |
( |
" |
RealTime = %f seconds | ) |
|
| Hyp SetAbsorberVol |
( |
"Absorber" |
| ) |
|
| fMagField SetFieldRegion |
( |
- |
50, |
|
|
50 |
, |
|
|
- |
50, |
|
|
50 |
, |
|
|
- |
200, |
|
|
200 |
|
|
) |
| |
| Cave SetGeometryFileName |
( |
"pndcave.geo" |
| ) |
|
| Hyp SetGeometryFileName |
( |
"TargetSystem_Ti_AbsWindow_addSens.root" |
| ) |
|
| Hyp SetGeoVersion |
( |
"List" |
| ) |
|
| Hyp SetHypSDtoFile |
( |
true |
, |
|
|
false |
|
|
) |
| |
| Hyp SetListMat |
( |
"HYPboron" |
| ) |
|
| Hyp SetListMat |
( |
"HYPaluminium" |
| ) |
|
| Hyp SetListMat |
( |
"Al97Mg3" |
| ) |
|
| Hyp SetListMat |
( |
"titanium" |
| ) |
|
| Hyp SetListMat |
( |
"HYPcarbon" |
| ) |
|
| Hyp SetListMat |
( |
"siliconinactive" |
| ) |
|
| fRun SetMaterials |
( |
"media_pnd.geo" |
| ) |
|
| fRun SetName |
( |
"TGeant4" |
| ) |
|
| fRun SetOutputFile |
( |
"bup_test.root" |
| ) |
|
| Hyp SetSensorVol |
( |
"Sensor" |
| ) |
|
| fRun SetStoreTraj |
( |
kTRUE |
| ) |
|
| FairModule* Cave = new PndCave("CAVE") |
| FairRunSim* fRun = new FairRunSim() |
| TString inFile = "/home/lorente/work/FairFeb14/pandaroot/macro/hyp/Alicia/hypBupV1T_Decay_gam.root" |
| Bool_t kParameterMerged =kTRUE |
| FairPrimaryGenerator* primGen = new FairPrimaryGenerator() |
| FairRuntimeDb* rtdb =fRun->GetRuntimeDb() |