ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AnalyzeTree.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file AnalyzeTree.C
1 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3 #include <fun4all/SubsysReco.h>
7 #include <mytree/AnalyzeSimpleTree.h>
8 
9 R__LOAD_LIBRARY(libfun4all.so)
10 R__LOAD_LIBRARY(libmytree.so)
11 #endif
12 
14 {
15  gSystem->Load("libmytree.so");
17  Fun4AllInputManager *in1 = new Fun4AllDstInputManager("DSTIN1");
18  se->registerInputManager(in1);
19  se->fileopen("DSTIN1","mytree.root");
20  SubsysReco *mytree = new AnalyzeSimpleTree();
21  se->registerSubsystem(mytree);
22  se->run(100);
23  se->End();
24  se->dumpHistos();
25  delete se;
26 }