EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Fun4All_G4_Pi0_Tbt.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_G4_Pi0_Tbt.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 <calib_emc_pi0/CaloCalibEmc_Pi0.h>
11
12
R__LOAD_LIBRARY
(libfun4all.so)
13
14
void
Fun4All_G4_Pi0_Tbt
(
15
const
int
nEvents
= 1,
16
const
string
&inputClustersFileList = "/sphenix/user/jfrantz/caloCalib/xaa",
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(
"libcalibCaloEmc_pi0.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
33
CaloCalibEmc_Pi0
*eval =
new
CaloCalibEmc_Pi0
(
"CEMC_CALIB_PI0"
, outputfile);
34
// eval->Verbosity(verbosity);
35
se->
registerSubsystem
(eval);
36
37
se->
run
(nEvents);
38
se->
End
();
39
delete
se;
40
gSystem->Exit(0);
41
}
42
43
#endif //MACRO_FUN4ALLG4SLOPECAL_C
fun4all_coresoftware
blob
master
calibrations
calorimeter
calo_emc_pi0_tbt
macro
Fun4All_G4_Pi0_Tbt.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:38
using
1.8.2 with
EIC GitHub integration