Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
#ifndef MACRO_FUN4ALL_CALOANA_C
2
#define MACRO_FUN4ALL_CALOANA_C
3
4
#include <
fun4all/SubsysReco.h
>
5
#include <
fun4all/Fun4AllServer.h
>
6
#include <
fun4all/Fun4AllInputManager.h
>
7
#include <
fun4all/Fun4AllDstInputManager.h
>
8
9
#include <caloana/CaloAna.h>
10
11
R__LOAD_LIBRARY(libfun4all.so)
12
R__LOAD_LIBRARY(libcaloana.so)
13
14
void
Fun4All_CaloAna
(const
char
*
fname
= "/sphenix/sim/sim01/tutorials/
CaloAna
/G4sPHENIX_Pythia8.
root
")
15
{
16
gSystem->Load(
"libg4dst"
);
17
Fun4AllServer
*se =
Fun4AllServer::instance
();
18
CaloAna
*ca =
new
CaloAna
(
"CALOANA"
,
"out.root"
);
19
// choose CEMC, HCALIN or HCALOUT or whatever you named your
20
// calorimeter
21
ca->
Detector
(
"CEMC"
);
22
se->
registerSubsystem
(ca);
23
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"in"
);
24
in->
fileopen
(
fname
);
25
se->
registerInputManager
(in);
26
se->
run
();
27
se->
End
();
28
}
29
30
#endif
tutorials
blob
master
CaloAna
macro
Fun4All_CaloAna.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:49
using
1.8.2 with
sPHENIX GitHub integration