BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
bmn_pid_generator.C
Go to the documentation of this file.
1
// --------------------------------------------------------------------------
2
// Macro for generating QA-reports
3
// --------------------------------------------------------------------------
4
#include <
Rtypes.h
>
5
R__ADD_INCLUDE_PATH
($VMCWORKDIR)
6
#include "macro/run/bmnloadlibs.C"
7
8
void
bmn_pid_generator
(
9
// TString recoFile = "$VMCWORKDIR/macro/run/bmndst_ArPb_geo2018.root",
10
// TString recoFile = "$VMCWORKDIR/macro/run/bmndst_ArPb_noLor.root",
11
TString
recoFile =
"$VMCWORKDIR/macro/run/bmndst.root"
,
12
// TString recoFile = "$VMCWORKDIR/macro/run/bmndst_KrPb_noLor.root",
13
// TString mcFile = "/home/merz/batyuk/home/batyuk/bmnroot_run7/macro/run/testParams/evetest_ArPb_geo2018.root",
14
// TString mcFile = "/home/merz/batyuk/nfs/evetest_10k_ArPb_noLor.root",
15
TString
mcFile =
"$VMCWORKDIR/macro/run/bmnsim.root"
,
16
// TString mcFile = "/home/merz/batyuk/nfs/evetest_10k_KrPb_noLor.root",
17
TString
outFile =
"pid.root"
,
18
Int_t
nStartEvent = 0,
19
Bool_t
isPrimary =
kFALSE
,
20
Int_t
nEvents = 1000000)
21
{
22
// ---- Load libraries -------------------------------------------------
23
24
bmnloadlibs();
// load bmn libraries
25
26
// ------------------------------------------------------------------------
27
28
FairRunAna* fRun =
new
FairRunAna();
29
fRun->SetInputFile(recoFile);
30
fRun->AddFriend(mcFile);
31
fRun->SetOutputFile(outFile);
32
fRun->SetGenerateRunInfo(
false
);
33
34
Int_t
period = 7;
35
36
TString
gPathConfig =
gSystem
->Getenv(
"VMCWORKDIR"
);
37
TString
gPathGemConfig = gPathConfig +
"/parameters/gem/XMLConfigs/"
;
38
TString
gPathSilConfig = gPathConfig +
"/parameters/silicon/XMLConfigs/"
;
39
TString
confGem = gPathGemConfig
40
+ ((period == 7) ?
"GemRunSpring2018.xml"
41
: (period == 6) ?
"GemRunSpring2017.xml"
42
:
"GemRunSpring2017.xml"
);
43
TString
confSil = gPathSilConfig
44
+ ((period == 7) ?
"SiliconRunSpring2018.xml"
45
: (period == 6) ?
"SiliconRunSpring2017.xml"
46
:
"SiliconRunSpring2017.xml"
);
47
48
// ============ TASKS ============= //
49
50
BmnMatchRecoToMC
* mcMatching =
new
BmnMatchRecoToMC
();
51
fRun->AddTask(mcMatching);
52
53
BmnPidQa
* pidQaAll =
new
BmnPidQa
(
"pid_qa"
,
"pidStorage"
);
54
pidQaAll->
SetOnlyPrimes
(isPrimary);
55
fRun->AddTask(pidQaAll);
56
57
// ============ TASKS ============= //
58
59
// ----- Intialise and run --------------------------------------------
60
fRun->Init();
61
cout <<
"Starting run"
<< endl;
62
fRun->Run(nStartEvent, nStartEvent + nEvents);
63
// ------------------------------------------------------------------------
64
}
Bool_t
bool Bool_t
Int_t
int Int_t
kFALSE
constexpr Bool_t kFALSE
Rtypes.h
R__ADD_INCLUDE_PATH
#define R__ADD_INCLUDE_PATH(PATH)
gSystem
R__EXTERN TSystem * gSystem
BmnMatchRecoToMC
Definition
BmnMatchRecoToMC.h:20
BmnPidQa
Definition
BmnPidQa.h:30
BmnPidQa::SetOnlyPrimes
void SetOnlyPrimes(const Bool_t prime)
Definition
BmnPidQa.h:73
TString
bmn_pid_generator
void bmn_pid_generator(TString recoFile="$VMCWORKDIR/macro/run/bmndst.root", TString mcFile="$VMCWORKDIR/macro/run/bmnsim.root", TString outFile="pid.root", Int_t nStartEvent=0, Bool_t isPrimary=kFALSE, Int_t nEvents=1000000)
Definition
bmn_pid_generator.C:8
install
macro
run
QA
bmn_pid_generator.C
Generated on
for BmnRoot by
1.17.0