2 #ifndef MACRO_FUN4ALL_READDST_C
3 #define MACRO_FUN4ALL_READDST_C
5 #include <tpcrawtottree/TPCRawDataTree.h>
12 R__LOAD_LIBRARY(libfun4allraw.so)
13 R__LOAD_LIBRARY(libTPCRawDataTree.so)
17 const
int sector = 11,
18 const
int run = 11127,
19 const
string &
mode = "beam")
27 const string inputFile =
28 Form(
"/sphenix/lustre01/sphnxpro/commissioning/tpc/%s/TPC_ebdc%02d_%s-000%05d-0000.prdf",
31 string outFile = Form(
"/phenix/u/jinhuang/links/sPHENIX_work/TPC/commissioning/TPC_ebdc%02d_%s-000%05d-0000.prdf.TPCRawDataTree.root",
34 string fileName = inputFile;
35 size_t pos = fileName.find(
"TPC_ebdc");
36 fileName.erase(fileName.begin(), fileName.begin() +
pos);
41 for (
int packet = 4000; packet <= 4230; packet += 10)
59 std::cout <<
"All done processing" << std::endl;