Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_UE_v2_Psi2.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_UE_v2_Psi2.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 <g4jets/FastJetAlgo.h>
16 #include <g4jets/JetReco.h>
17 #include <g4jets/TowerJetInput.h>
18 #include <g4jets/TruthJetInput.h>
19 
21 
28 
29 #include <HIJetReco.C>
30 
31 #include <uevsetacentrality/UEvsEtaCentrality.h>
32 
33 
34 R__LOAD_LIBRARY(libfun4all.so)
35 R__LOAD_LIBRARY(libg4jets.so)
36 R__LOAD_LIBRARY(libjetbackground.so)
37 R__LOAD_LIBRARY(libUEvsEtaCentrality.so)
38 R__LOAD_LIBRARY(libg4centrality.so)
39 R__LOAD_LIBRARY(libg4dst.so)
40 
41 
42 #endif
43 
44 
45 void Fun4All_UE_v2_Psi2(const char *filelistbbc = "dst_bbc_g4hit.list",
46  const char *filelistcalo = "dst_calo_cluster.list",
47  const char *outname = "outputest.root")
48 {
49 
50 
52  int verbosity = 0;
53 
54  se->Verbosity(verbosity);
56 
58  cent->Verbosity(0);
59  cent->GetCalibrationParameters().ReadFromFile("centrality", "xml", 0, 0, string(getenv("CALIBRATIONROOT")) + string("/Centrality/"));
60  se->registerSubsystem( cent );
61 
62 
63  HIJetReco();
64 
65  UEvsEtaCentrality *myJetVal = new UEvsEtaCentrality();
66  se->registerSubsystem(myJetVal);
67 
68  Fun4AllInputManager *intrue = new Fun4AllDstInputManager("DSTbbc");
69  intrue->AddListFile(filelistbbc,1);
70  se->registerInputManager(intrue);
71 
72  Fun4AllInputManager *in2 = new Fun4AllDstInputManager("DSTcalo");
73  in2->AddListFile(filelistcalo,1);
74  se->registerInputManager(in2);
75 
76 
77  se->run(-1);
78  se->End();
79  se->PrintTimer();
80  gSystem->Exit(0);
81  return 0;
82 
83 }