Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
blob
master
calibrations
calo
calib_nov23
emc_pi0_tbt
emcal_calib_year1
tower_slope_macro
emc_corr_files
do_eta_fit.C
do_eta_fit2.C
Fun4All_G4_SlopeCal.C
G4_CEmc_Spacal.C
G4_HcalIn_ref.C
G4_HcalOut_ref.C
run_calo_fromMDC2Hits_towslope_Fun4All_G4_Calo.C
tower_slope_run23
CaloProduction
CDBTest
common
detectors
eventcombine
InttProduction
macros
MvtxProduction
StreamingProduction
TpcProduction
TrackingProduction
validation
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Fun4All_G4_SlopeCal.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_G4_SlopeCal.C
1
// these include guards are not really needed, but if we ever include this
2
// file somewhere they would be missed and we will have to refurbish all macros
3
#ifndef MACRO_FUN4ALLG4SLOPECAL_C
4
#define MACRO_FUN4ALLG4SLOPECAL_C
5
6
#include <
fun4all/Fun4AllDstInputManager.h
>
7
#include <
fun4all/Fun4AllInputManager.h
>
8
#include <
fun4all/Fun4AllServer.h
>
9
10
#include <litecaloeval/LiteCaloEval.h>
11
12
R__LOAD_LIBRARY(libfun4all.so)
13
14
void
Fun4All_G4_SlopeCal
(
15
const
int
nEvents
= 1,
16
const
string
&inputClustersFileList = "dst_calo_cluster.list",
17
const
string
&outputFile = "test1")
18
{
19
// this convenience library knows all our i/o objects so you don't
20
// have to figure out what is in each dst type
21
gSystem->Load(
"libg4dst.so"
);
22
gSystem->Load(
"libLiteCaloEvalTowSlope.so"
);
23
24
Fun4AllServer
*se =
Fun4AllServer::instance
();
25
se->
Verbosity
();
// set it to 1 if you want event printouts
26
27
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"DSTClusters"
);
28
in->
AddListFile
(inputClustersFileList);
29
se->
registerInputManager
(in);
30
31
string
outputfile = outputFile +
"_g4cemc_eval.root"
;
32
string
outputfile2 = outputFile +
"_g4hcalin_eval.root"
;
33
string
outputfile3 = outputFile +
"_g4hcalout_eval.root"
;
34
35
LiteCaloEval
*eval =
new
LiteCaloEval
(
"CEMCEVALUATOR"
,
"CEMC"
, outputfile);
36
// eval->Verbosity(verbosity);
37
eval->
CaloType
(
LiteCaloEval::CEMC
);
38
se->
registerSubsystem
(eval);
39
40
LiteCaloEval
*eval2 =
new
LiteCaloEval
(
"HINEVALUATOR"
,
"HCALIN"
, outputfile2);
41
eval2->
CaloType
(
LiteCaloEval::HCALIN
);
42
// eval->Verbosity(verbosity);
43
se->
registerSubsystem
(eval2);
44
45
LiteCaloEval
*eval3 =
new
LiteCaloEval
(
"HOUTEVALUATOR"
,
"HCALOUT"
, outputfile3);
46
// eval->Verbosity(verbosity);
47
eval3->
CaloType
(
LiteCaloEval::HCALOUT
);
48
se->
registerSubsystem
(eval3);
49
50
se->
run
(nEvents);
51
se->
End
();
52
delete
se;
53
gSystem->Exit(0);
54
}
55
56
#endif //MACRO_FUN4ALLG4SLOPECAL_C
macros
blob
master
calibrations
calo
tower_slope_macro
Fun4All_G4_SlopeCal.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:26
using
1.8.2 with
sPHENIX GitHub integration