Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_JetVal.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_JetVal.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 
22 #include <HIJetReco.C>
23 
24 #include <tracksinjets/TracksInJets.h>
25 
26 R__LOAD_LIBRARY(libfun4all.so)
27 R__LOAD_LIBRARY(libg4jets.so)
28 R__LOAD_LIBRARY(libjetbackground.so)
29 R__LOAD_LIBRARY(libTracksInJets.so)
30 R__LOAD_LIBRARY(libg4centrality.so)
31 R__LOAD_LIBRARY(libg4dst.so)
32 
33 #endif
34 
35 void Fun4All_JetVal(const char *filelisttrk = "dst_tracks.list",
36  const char *filelistcalo = "dst_calo_cluster.list",
37  const char *filelistbbc = "dst_bbc_g4hit.list",
38  const char *outname = "outputest.root")
39 {
40 
41 
43  int verbosity = 0;
44 
45  se->Verbosity(verbosity);
47 
49  cent->Verbosity(0);
50  cent->GetCalibrationParameters().ReadFromFile("centrality", "xml", 0, 0, string(getenv("CALIBRATIONROOT")) + string("/Centrality/"));
51  se->registerSubsystem( cent );
52 
53  HIJetReco();
54 
55  TracksInJets *trksinjets = new TracksInJets("AntiKt_Tower_r04_Sub1", outname);
56  se->registerSubsystem(trksinjets);
57 
59  in->AddListFile(filelistcalo,1);
60  se->registerInputManager(in);
61 
62  Fun4AllInputManager *intrk = new Fun4AllDstInputManager("DSTtrk");
63  intrk->AddListFile(filelisttrk,1);
64  se->registerInputManager(intrk);
65 
66  Fun4AllInputManager *inbbc = new Fun4AllDstInputManager("DSTbbc");
67  inbbc->AddListFile(filelistbbc,1);
68  se->registerInputManager(inbbc);
69 
70  se->run(100);
71  se->End();
72 
73  gSystem->Exit(0);
74  return 0;
75 
76 }