FairRoot/PandaRoot
Functions
runpmt.C File Reference

Go to the source code of this file.

Functions

int runpmt (int nevt=250, int laut=0, int seed=-1)
 

Function Documentation

int runpmt ( int  nevt = 250,
int  laut = 0,
int  seed = -1 
)

Definition at line 10 of file runpmt.C.

References PndPmtTask::Exec(), PndPmtTask::Finish(), RhoCalculationTools::ForceConstantBz(), i, PndPmtTask::Init(), LoadPandaStyle(), seed, and SetVerbose().

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
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()