FairRoot/PandaRoot
runpmt.C
Go to the documentation of this file.
1 //
2 // pmt.C
3 // PANDAROOT
4 //
5 // Author Ralf Kliemt.
6 // Copyright (c) 2013 GSI. All rights reserved.
7 //
8 //
9 
10 int runpmt(int nevt=250, int laut=0, int seed=-1)
11 {
12  gROOT->LoadMacro("$VMCWORKDIR/macro/run/Tools.C");
14  gRandom->SetSeed(seed);
15  RhoCalculationTools::ForceConstantBz(20.); // [kGs]=[0.1T]
17  PndPmtTask* myPmt = new PndPmtTask();
18  cout<<"init"<<endl;
19  myPmt->Init();
20  cout<<"event loop"<<endl;
21  for(int i=0;i<nevt;i++){
22  if( i % 100 == 0 ) cout<<"event "<<i<<"/"<<nevt<<endl;
23  myPmt->Exec("");
24  }
25  cout<<"finish"<<endl;
26  myPmt->Finish();
27  cout<<"done"<<endl;
28 
29  return 0;
30 }
void Init()
Definition: PndPmtTask.cxx:46
Int_t i
Definition: run_full.C:25
int runpmt(int nevt=250, int laut=0, int seed=-1)
Definition: runpmt.C:10
static void ForceConstantBz(Double_t bz=0.)
Force a constant B field value for all positions.
unsigned int seed
void Exec(Option_t *opt)
Definition: PndPmtTask.cxx:327
drchit SetVerbose(iVerbose)
void Finish()
Definition: PndPmtTask.cxx:625
LoadPandaStyle()