ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
blob
master
AnaTutorial
AnaTutorialECCE
block
CaloAna
macro
Fun4All_CaloAna.C
src
clusters
CreateSubsysRecoModule
cylinder
dst_workflow
eventgenerator_display
IonGun
MagneticField
materialscan
Momentum
myjetanalysis
MyOwnTTree
PHG4DSTReader
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Fun4All_CaloAna.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_CaloAna.C
1
#pragma once
2
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3
#include <
fun4all/SubsysReco.h
>
4
#include <
fun4all/Fun4AllServer.h
>
5
#include <
fun4all/Fun4AllInputManager.h
>
6
#include <
fun4all/Fun4AllDstInputManager.h
>
7
8
#include <caloana/CaloAna.h>
9
10
R__LOAD_LIBRARY
(libfun4all.so)
11
R__LOAD_LIBRARY
(libcaloana.so)
12
#endif
13
14
void
Fun4All_CaloAna
(
const
char
*
fname
=
"/sphenix/sim/sim01/tutorials/CaloAna/G4sPHENIX_Pythia8.root"
)
15
{
16
gSystem->Load(
"libg4dst"
);
17
gSystem->Load(
"libcaloana"
);
18
Fun4AllServer
*se =
Fun4AllServer::instance
();
19
CaloAna
*ca =
new
CaloAna
(
"CALOANA"
,
"out.root"
);
20
// choose CEMC, HCALIN or HCALOUT or whatever you named your
21
// calorimeter
22
ca->
Detector
(
"CEMC"
);
23
se->
registerSubsystem
(ca);
24
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"in"
);
25
in->
fileopen
(
fname
);
26
se->
registerInputManager
(in);
27
se->
run
();
28
se->
End
();
29
}
tutorials
blob
master
CaloAna
macro
Fun4All_CaloAna.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:26:00
using
1.8.2 with
ECCE GitHub integration