Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_JetNconst.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_JetNconst.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 
16 
17 
18 #include <HIJetReco.C>
19 
20 
21 #include <jetnconstituents/JetNconstituents.h>
22 
23 // #include <jetvalidation/JetValidation.h>
24 
25 R__LOAD_LIBRARY(libfun4all.so)
26 R__LOAD_LIBRARY(libg4jets.so)
27 R__LOAD_LIBRARY(libjetbackground.so)
28 R__LOAD_LIBRARY(libJetNconstituents.so)
29 R__LOAD_LIBRARY(libg4centrality.so)
30 R__LOAD_LIBRARY(libg4dst.so)
31 
32 
33 #endif
34 
35 void Fun4All_JetNconst(const char *filelistcalo = "/sphenix/u/tmengel/dst_calo_cluster.list",
36  const char *outname = "outputest.root")
37 {
38 
39 
40 
42  int verbosity = 0;
43 
44  se->Verbosity(verbosity);
46 
48  cent->Verbosity(0);
49  cent->GetCalibrationParameters().ReadFromFile("centrality", "xml", 0, 0, string(getenv("CALIBRATIONROOT")) + string("/Centrality/"));
50  se->registerSubsystem( cent );
51 
52  HIJetReco();
53 
54  JetNconstituents *myJetNconst = new JetNconstituents("AntiKt_Tower_r04_Sub1", outname);
55 
56  myJetNconst->setPtRange(5, 100);
57  myJetNconst->setEtaRange(-1.1, 1.1);
58  se->registerSubsystem(myJetNconst);
59 
60  Fun4AllInputManager *in2 = new Fun4AllDstInputManager("DSTcalo");
61  in2->AddListFile(filelistcalo,1);
62  se->registerInputManager(in2);
63 
64 
65  se->run(-1);
66  se->End();
67 
68  gSystem->Exit(0);
69  return 0;
70 
71 }