Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_AnaTutorial_DSTReadBack.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_AnaTutorial_DSTReadBack.C
4 #include <fun4all/SubsysReco.h>
5 
6 #include <TSystem.h>
7 
8 #include <anatutorial/AnaTutorial.h>
9 
10 R__LOAD_LIBRARY(libanatutorial.so)
11 
12 R__LOAD_LIBRARY(libfun4all.so)
13 
15 void Fun4All_AnaTutorial_DSTReadBack(const int nevnt = 0, const std::string & inputfile = "G4sPHENIX.root")
16 {
17  gSystem->Load("libg4dst");
19 
20  AnaTutorial *anaTutorial = new AnaTutorial("anaTutorial", inputfile + "_anaTutorial.root");
21  anaTutorial->setMinJetPt(4.);
22  anaTutorial->Verbosity(0);
23  anaTutorial->analyzeTracks(true);
24  anaTutorial->analyzeClusters(true);
25  anaTutorial->analyzeJets(true);
26  anaTutorial->analyzeTruth(false);
27  se->registerSubsystem(anaTutorial);
28 
30  in->fileopen(inputfile);
31  // or
32  // in->AddListFile(inputfile);
33  se->registerInputManager(in);
34 
35  se->run(nevnt);
36  se->End();
37  delete se;
38 
39  cout <<"All done. Exiting..."<<endl;
40 
41  gSystem->Exit(0);
42 }