BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
7R__ADD_INCLUDE_PATH($VMCWORKDIR)
8#include "macro/run/bmnloadlibs.C"
9
12
13// Valid for RUN6
14// DIGITS_GEM_SILICON - in1
15// DIGITS_ZDC - in2
16// DIGITS_OTHER_DETECTORS - in3
17void 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
33{
34 BmnDigiMergeTask* mergeTask = new BmnDigiMergeTask(in1, in2, in3);
35 mergeTask->SplitToDetectors();
36 delete mergeTask;
37}
38
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 Int_t
unsigned int UInt_t
#define R__ADD_INCLUDE_PATH(PATH)
void SplitToDetectors(Bool_t src=kFALSE)
void Start(Bool_t reset=kTRUE)
static TString Format(const char *fmt,...)
void ComposeDigiFile(UInt_t)
void SplitDetectors(TString, TString, TString)
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")