Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_Mvtx_Combiner.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_Mvtx_Combiner.C
7 
8 #include <phool/recoConsts.h>
9 
10 #include <array>
11 
12 R__LOAD_LIBRARY(libfun4all.so)
13 R__LOAD_LIBRARY(libfun4allraw.so)
14 
15 
17  const string &input_file00 = "mvtx-flx0.list",
18  const string &input_file01 = "mvtx-flx1.list",
19  const string &input_file02 = "mvtx-flx2.list",
20  const string &input_file03 = "mvtx-flx3.list",
21  const string &input_file04 = "mvtx-flx4.list",
22  const string &input_file05 = "mvtx-flx5.list")
23 {
24  vector<string> infiles;
25  infiles.push_back(input_file00);
26  infiles.push_back(input_file01);
27  infiles.push_back(input_file02);
28  infiles.push_back(input_file03);
29  infiles.push_back(input_file04);
30  infiles.push_back(input_file05);
31 
33  se->Verbosity(1);
35  //rc->set_IntFlag("RUNNUMBER",20445);
37 
38 // in->Verbosity(10);
39  int i = 0;
40  for (auto& infile : infiles)
41  {
42  auto* sngl= new SingleMvtxPoolInput("MVTX_FLX" + to_string(i));
43 // sngl->Verbosity(3);
44  sngl->SetBcoRange(10);
47  i++;
48  }
49  se->registerInputManager(in);
50 
51  Fun4AllOutputManager *out = new Fun4AllDstOutputManager("out","mvtx_raw_hits.root");
52  se->registerOutputManager(out);
53 
54  se->run(nEvents);
55 
56  se->End();
57  delete se;
58  gSystem->Exit(0);
59 }