BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
digiMergerBMN_RUN6.C
Go to the documentation of this file.
1
#include <
Rtypes.h
>
2
#include <
TFile.h
>
3
#include <
TKey.h
>
4
#include <
TStopwatch.h
>
5
#include <
TString.h
>
6
7
R__ADD_INCLUDE_PATH
($VMCWORKDIR)
8
#include "macro/run/bmnloadlibs.C"
9
10
void
SplitDetectors
(
TString
,
TString
,
TString
);
11
void
ComposeDigiFile
(
UInt_t
);
12
13
// Valid for RUN6
14
// DIGITS_GEM_SILICON - in1
15
// DIGITS_ZDC - in2
16
// DIGITS_OTHER_DETECTORS - in3
17
void
digiMergerBMN_RUN6
(
UInt_t
runN = 1223,
18
TString
in1 =
"/nica/mpd16/kapishin/run6/digit/bmn_run1223_sigemdigitthr2.root"
,
19
TString
in2 =
""
,
20
TString
in3 =
"/nica/mpd16/kapishin/run6/digit/bmn_run1223_digi.root"
)
21
{
22
23
bmnloadlibs();
// load BmnRoot libraries
24
// ----- Timer ---------------------------------------------------------
25
TStopwatch
timer;
26
timer.
Start
();
27
28
SplitDetectors
(in1, in2, in3);
29
ComposeDigiFile
(runN);
30
}
31
32
void
SplitDetectors
(
TString
in1,
TString
in2,
TString
in3)
33
{
34
BmnDigiMergeTask
* mergeTask =
new
BmnDigiMergeTask
(in1, in2, in3);
35
mergeTask->
SplitToDetectors
();
36
delete
mergeTask;
37
}
38
39
void
ComposeDigiFile
(
UInt_t
runN)
40
{
41
TString
run =
TString::Format
(
"%d"
, runN);
42
43
TString
in1 =
"GEM_"
+ run +
".root"
;
// GEM
44
TString
in2 =
"SILICON_"
+ run +
".root"
;
// SILICON
45
TString
in3 =
"ZDC_"
+ run +
".root"
;
// ZDC
46
TString
in4 =
"T0_"
+ run +
".root"
;
// T0
47
TString
in5 =
"BC1_"
+ run +
".root"
;
// BC1
48
TString
in6 =
"BC2_"
+ run +
".root"
;
// BC2
49
TString
in7 =
"VETO_"
+ run +
".root"
;
// VETO
50
TString
in8 =
"FD_"
+ run +
".root"
;
// FD
51
TString
in9 =
"BD_"
+ run +
".root"
;
// BD
52
TString
in10 =
"MWPC_"
+ run +
".root"
;
// MWPC
53
TString
in11 =
"DCH_"
+ run +
".root"
;
// DCH
54
TString
in12 =
"TOF400_"
+ run +
".root"
;
// TOF400
55
TString
in13 =
"TOF700_"
+ run +
".root"
;
// TOF700
56
TString
in14 =
"ECAL_"
+ run +
".root"
;
// ECAL
57
58
TString
out =
"bmn_run"
+ run +
"_digi.root"
;
59
60
const
Int_t
nFiles = 14;
61
vector<TString> files;
62
TString
_files[nFiles] = {in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14};
63
64
for
(
Int_t
iFile = 0; iFile < nFiles; iFile++)
65
files.push_back(_files[iFile]);
66
67
BmnDigiMergeTask
* mergeTask =
new
BmnDigiMergeTask
(files, out);
68
mergeTask->
ProcessEvents
();
69
delete
mergeTask;
70
}
Int_t
int Int_t
UInt_t
unsigned int UInt_t
Rtypes.h
R__ADD_INCLUDE_PATH
#define R__ADD_INCLUDE_PATH(PATH)
TFile.h
TKey.h
TStopwatch.h
TString.h
BmnDigiMergeTask
Definition
BmnDigiMergeTask.h:24
BmnDigiMergeTask::SplitToDetectors
void SplitToDetectors(Bool_t src=kFALSE)
Definition
BmnDigiMergeTask.h:65
BmnDigiMergeTask::ProcessEvents
void ProcessEvents()
Definition
BmnDigiMergeTask.cxx:1254
TStopwatch
TStopwatch::Start
void Start(Bool_t reset=kTRUE)
TString
TString::Format
static TString Format(const char *fmt,...)
ComposeDigiFile
void ComposeDigiFile(UInt_t)
Definition
digiMergerBMN_RUN6.C:39
SplitDetectors
void SplitDetectors(TString, TString, TString)
Definition
digiMergerBMN_RUN6.C:32
digiMergerBMN_RUN6
void digiMergerBMN_RUN6(UInt_t runN=1223, TString in1="/nica/mpd16/kapishin/run6/digit/bmn_run1223_sigemdigitthr2.root", TString in2="", TString in3="/nica/mpd16/kapishin/run6/digit/bmn_run1223_digi.root")
Definition
digiMergerBMN_RUN6.C:17
macro
miscellaneous
digiMergerBMN_RUN6.C
Generated on
for BmnRoot by
1.17.0