FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
macro
examples
analysistools
PmtTask
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"
);
13
LoadPandaStyle
();
14
gRandom->SetSeed(
seed
);
15
RhoCalculationTools::ForceConstantBz
(20.);
// [kGs]=[0.1T]
16
PndAnalysisCalcTools::SetVerbose
(0);
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
}
PndPmtTask
Definition:
PndPmtTask.h:17
PndPmtTask::Init
void Init()
Definition:
PndPmtTask.cxx:46
i
Int_t i
Definition:
run_full.C:25
runpmt
int runpmt(int nevt=250, int laut=0, int seed=-1)
Definition:
runpmt.C:10
RhoCalculationTools::ForceConstantBz
static void ForceConstantBz(Double_t bz=0.)
Force a constant B field value for all positions.
Definition:
RhoCalculationTools.h:37
seed
unsigned int seed
Definition:
createPndLmdMisalignmentMatrices.C:5
PndPmtTask::Exec
void Exec(Option_t *opt)
Definition:
PndPmtTask.cxx:327
SetVerbose
drchit SetVerbose(iVerbose)
PndPmtTask::Finish
void Finish()
Definition:
PndPmtTask.cxx:625
LoadPandaStyle
LoadPandaStyle()
Generated on Sun Aug 18 2019 03:02:02 for FairRoot/PandaRoot by
1.8.8