Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_JetAna_MDC.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_JetAna_MDC.C
1 #ifndef MACRO_FUN4ALLJETANA_C
2 #define MACRO_FUN4ALLJETANA_C
3 
4 #include <G4_Jets.C>
5 
9 #include <fun4all/SubsysReco.h>
10 
11 
12 // here you need your package name (set in configure.ac)
13 // this suppresses a cling warning when reading an eigen include
14 #pragma GCC diagnostic push
15 #pragma GCC diagnostic ignored "-Wundefined-internal"
16 #include <myjetanalysis/MyJetAnalysis.h>
17 #pragma GCC diagnostic pop
18 
19 R__LOAD_LIBRARY(libfun4all.so)
20 R__LOAD_LIBRARY(libmyjetanalysis.so)
21 
22 void Fun4All_JetAna_MDC(const int nevnt = 0, const std::string &inlist1 = "dst_tracks.list", const std::string &inlist2 = "dst_calo_cluster.list", const std::string &inlist3 = "dst_truth.list")
23 {
24  gSystem->Load("libmyjetanalysis");
25  gSystem->Load("libg4dst");
26 
27  Jet_Reco();
28 
30  // uncomment if you want the event counter printed
31  //se->Verbosity(1);
32  MyJetAnalysis *myJetAnalysis = new MyJetAnalysis("AntiKt_Tower_r04", "AntiKt_Truth_r04", "myjetanalysis.root");
33  //myJetAnalysis->Verbosity(10);
34  // change lower pt and eta cut to make them visible
35  myJetAnalysis->setPtRange(1, 100);
36  myJetAnalysis->setEtaRange(-1.1, 1.1);
37  myJetAnalysis->use_initial_vertex(true);
38  se->registerSubsystem(myJetAnalysis);
39 
41  in->AddListFile(inlist1);
42  se->registerInputManager(in);
43  in = new Fun4AllDstInputManager("DSTin2");
44  in->AddListFile(inlist2);
45  se->registerInputManager(in);
46  in = new Fun4AllDstInputManager("DSTin3");
47  in->AddListFile(inlist3);
48  se->registerInputManager(in);
49 
50  se->run(nevnt);
51  se->End();
52  delete se;
53  gSystem->Exit(0);
54 }
55 
56 #endif