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 R__LOAD_LIBRARY(libmbd_io.so)
20 R__LOAD_LIBRARY(libmbd.so)
21 #endif
22 
23 void Fun4All_MBDTreeGen(const int nEvents = 100, const char *listFile = "mbdFileList.list")
24 {
27 
28  mbdAnalysis *mbdAnalysis_pls = new mbdAnalysis("derp");
29  se->registerSubsystem(mbdAnalysis_pls);
30 
32  in->AddListFile(listFile);
33  //in -> AddFile("/sphenix/lustre01/sphnxpro/zfs/rucio/group/sphenix/bd/1e/DST_CALOR_ana383_2023p002-00021598-0000.root");
34  se->registerInputManager(in);
35 
36  se->run(nEvents);
37  se->End();
38  se->PrintTimer();
39  std::cout << "All done!" << std::endl;
40 
41  gSystem->Exit(0);
42 }