Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dst_simple_towerslope_runmacro.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file dst_simple_towerslope_runmacro.C
1 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3 #include <fun4all/SubsysReco.h>
8 //#include <rawwaveformtowerbuilder/RawWaveformTowerBuilder.h>
10 
11 #include <litecaloeval/LiteCaloEval.h>
12 
13 
14 R__LOAD_LIBRARY(libfun4all.so)
15 R__LOAD_LIBRARY(libfun4allraw.so)
16 //R__LOAD_LIBRARY(libCaloTowerBuilder.so)
17 R__LOAD_LIBRARY(libLiteCaloEvalTowSlope.so)
18 
19 
20 #endif
21 
22 // to get files from my local area
23 void dst_simple_towerslope_runmacro(int nevents = 1e5, const char *fname = "/sphenix/user/sregmi/FINAL_VERSION/tower_slope_old_tower_method/3_RawWaveformTowerBuilder/macro/testoutput_400.root")
24 
25 {
26  gSystem->Load("libg4dst");
27 
29 
30  // CaloWaveFormSim *ca = new CaloWaveFormSim("CALOWAVEFORMSIM",outfile);
31  // ca->Detector("CEMC");
32  // se->registerSubsystem(ca);
33 
34  // Fun4AllInputManager *in = new Fun4AllPrdfInputManager("in");
35  // in->fileopen(fname);
36 
38 
39  in->fileopen(fname);
40  //CaloTowerBuilder *ca = new CaloTowerBuilder();
41 
42 
43  LiteCaloEval *eval7e = new LiteCaloEval("CEMCEVALUATOR2", "CEMC", "output_towerslope.root");
44  // LiteCaloEval *eval = new LiteCaloEval("HOCEMCEVALUATOR2", "HCALOUT", outputfile.c_str());
45  // eval->Verbosity(verbosity);
47  //eval->CaloType(LiteCaloEval::HCALOUT);
48  se->registerSubsystem(eval7e);
49 
50 
51 
52 
53  // in->AddListFile("g4hits.list");
54 
55 // Fun4All
56  se->registerInputManager(in);
57 
58  //Fun4AllDstOutputManager *out = new Fun4AllDstOutputManager("DSTOUT", "testoutput_400.root");
59 
60  //out->StripNode("WAVEFORMS_CEMC");
61  //se->registerOutputManager(out);
62 
63  se->run(nevents);
64 
65  se->End();
66  se->PrintTimer();
67  gSystem->Exit(0);
68 }