Analysis Software
Documentation for sPHENIX simulation 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 #ifndef MACRO_ANALYZETREE_C
2 #define MACRO_ANALYZETREE_C
3 
4 #include <mytree/AnalyzeSimpleTree.h>
5 
6 #include <fun4all/SubsysReco.h>
10 
11 R__LOAD_LIBRARY(libfun4all.so)
12 R__LOAD_LIBRARY(libmytree.so)
13 
15 {
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("dummy.root");
25  delete se;
26 }
27 
28 #endif