Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_MBDTreeGen.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_MBDTreeGen.C
1 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3 #include <fun4all/SubsysReco.h>
7 
10 #include <fun4all/Fun4AllServer.h>
11 
12 #include <phool/PHRandomSeed.h>
13 #include <phool/recoConsts.h>
14 
15 #include <mbdanalysis/mbdAnalysis.h>
16 
17 R__LOAD_LIBRARY(libfun4all.so)
18 R__LOAD_LIBRARY(libmbdAnalysis.so)
19 #endif
20 
21 void Fun4All_MBDTreeGen(const int nEvents = 0, const char *listFile = "fileList_withGeo_timingCut_Template.list", const char *inName = "commissioning.root")
22 {
25 
26  mbdAnalysis *mbdAnalysis_pls = new mbdAnalysis("derp");
27  se->registerSubsystem(mbdAnalysis_pls);
28 
30  in->AddListFile(listFile);
31 
32  se->registerInputManager(in);
33 
34  se->run(nEvents);
35  se->End();
36  se->PrintTimer();
37  std::cout << "All done!" << std::endl;
38 
39  gSystem->Exit(0);
40 }