BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
digiMergerBMN_RUN7.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
7using namespace std;
8
9R__ADD_INCLUDE_PATH($VMCWORKDIR)
10#include "macro/run/bmnloadlibs.C"
11
14
15// Valid for RUN7
16// DIGITS_OTHER_DETECTORS - in1
17// DIGITS_ZDC_TRIGGERS - in2
18// DIGITS_TOF700 - in3
19
20void digiMergerBMN_RUN7(UInt_t runN = 4649,
21 TString in1 = "/nica/mpd20/kapishin/run7/digit/bmn_run4649_sigemdigittrigcmode.root",
22 TString in2 = "/nica/mpd22/lenivenko/run7/digit/bmn_run4649_digi_zdc.root",
23 TString in3 = "/nica/mpd22/lenivenko/run7/digit/bmn_run4649_digi_tof700.root")
24{
25
26 bmnloadlibs(); // load BmnRoot libraries
27 // ----- Timer ---------------------------------------------------------
28 TStopwatch timer;
29 timer.Start();
30
31 SplitDetectors(in1, in2, in3);
32 ComposeDigiFile(runN);
33}
34
36{
37 TString input[3] = {in1, in2, in3};
38 BmnDigiMergeTask* mergeTask = new BmnDigiMergeTask(input);
39 mergeTask->SplitToDetectors();
40 delete mergeTask;
41}
42
44{
45 TString run = TString::Format("%d", runN);
46
47 TString in1 = "BC1_" + run + ".root"; // BC1
48 TString in2 = "BC2_" + run + ".root"; // BC2
49 TString in3 = "BC3_" + run + ".root"; // BC3
50 TString in4 = "VC_" + run + ".root"; // VETO
51 TString in5 = "Si_" + run + ".root"; // Si
52 TString in6 = "BD_" + run + ".root"; // BD
53 TString in7 = "ZDC_" + run + ".root"; // ZDC
54 TString in8 = "GEM_" + run + ".root"; // GEM
55 TString in9 = "SILICON_" + run + ".root"; // SILICON
56 TString in10 = "MWPC_" + run + ".root"; // MWPC
57 TString in11 = "DCH_" + run + ".root"; // DCH
58 TString in12 = "TOF400_" + run + ".root"; // TOF400
59 TString in13 = "ECAL_" + run + ".root"; // TOF700
60 TString in14 = "CSC_" + run + ".root"; // ECAL
61 TString in15 = "TOF700_" + run + ".root"; // CSC
62
63 TString out = "bmn_run" + run + "_digi.root";
64
65 const Int_t nFiles = 15;
66 vector<TString> files;
67 TString _files[nFiles] = {in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15};
68
69 for (Int_t iFile = 0; iFile < nFiles; iFile++)
70 files.push_back(_files[iFile]);
71
72 BmnDigiMergeTask* mergeTask = new BmnDigiMergeTask(files, out);
73 mergeTask->ProcessEvents();
74 delete mergeTask;
75}
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_RUN7(UInt_t runN=4649, TString in1="/nica/mpd20/kapishin/run7/digit/bmn_run4649_sigemdigittrigcmode.root", TString in2="/nica/mpd22/lenivenko/run7/digit/bmn_run4649_digi_zdc.root", TString in3="/nica/mpd22/lenivenko/run7/digit/bmn_run4649_digi_tof700.root")
Definition json.hpp:4446