Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_Combiner.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_Combiner.C
7 
9 
10 //#include <ffarawmodules/EventCombiner.h>
12 
13 R__LOAD_LIBRARY(libfun4all.so)
14 R__LOAD_LIBRARY(libfun4allraw.so)
15 R__LOAD_LIBRARY(libffarawmodules.so)
16 //9451
18  const string &input_file00 = "seb00.list",
19  const string &input_file01 = "seb01.list",
20  const string &input_file02 = "seb02.list",
21  const string &input_file03 = "seb03.list",
22  const string &input_file04 = "seb04.list",
23  const string &input_file05 = "seb05.list",
24  const string &input_file06 = "seb06.list",
25  const string &input_file07 = "seb07.list",
26  const string &input_file08 = "seb14.list",
27  const string &input_file09 = "seb18.list",
28  const string &input_file10 = "hcaleast.list",
29  const string &input_file11 = "hcalwest.list"
30 )
31 {
32  vector<string> infile;
33  infile.push_back(input_file00);
34  infile.push_back(input_file01);
35  infile.push_back(input_file02);
36  infile.push_back(input_file03);
37  infile.push_back(input_file04);
38  infile.push_back(input_file05);
39  infile.push_back(input_file06);
40  infile.push_back(input_file07);
41  infile.push_back(input_file08);
42  infile.push_back(input_file10);
43  infile.push_back(input_file11);
44 
46  se->Verbosity(1);
48  in->Verbosity(1);
49 // this one is the reference with the mbd data
50  in->AddPrdfInputList(input_file09)->MakeReference(true);
51  for (auto iter : infile)
52  {
53  in->AddPrdfInputList(iter);//->Verbosity(2);
54  }
55 
56  se->registerInputManager(in);
57 
58  // EventNumberCheck *evtchk = new EventNumberCheck();
59  // evtchk->MyPrdfNode("PRDF");
60  // se->registerSubsystem(evtchk);
61 
62  Fun4AllEventOutputManager *out = new Fun4AllEventOutputManager("EvtOut","/sphenix/lustre01/sphnxpro/commissioning/aligned_prdf/beam-%08d-%04d.prdf",20000);
63 // out->DropPacket(21102);
64  se->registerOutputManager(out);
65  if (nEvents < 0)
66  {
67  return;
68  }
69  se->run(nEvents);
70  in->Print();
71  se->End();
72  delete se;
73  gSystem->Exit(0);
74 }