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_CaloWaveFormSim.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_CaloWaveFormSim.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 <calowaveformsim/CaloWaveFormSim.h>
9
10
R__LOAD_LIBRARY(libfun4all.so)
11
R__LOAD_LIBRARY(libcalowaveformsim.so)
12
#endif
13
14
void
Fun4All_CaloWaveFormSim
(
const
char
*
fname
=
"G4Hits_sHijing_0_20fm-0000000041-00000.root"
,
const
char
*fname2 =
"DST_CALO_CLUSTER_sHijing_0_20fm-0000000041-00000.root"
,
const
char
*
outfile
=
"trees/0.root"
)
15
{
16
gSystem->Load(
"libg4dst"
);
17
gSystem->Load(
"libcalowaveformsim"
);
18
Fun4AllServer
*se =
Fun4AllServer::instance
();
19
CaloWaveFormSim
*ca =
new
CaloWaveFormSim
(
"CALOWAVEFORMSIM"
,
outfile
);
20
ca->
Detector
(
"CEMC"
);
21
se->
registerSubsystem
(ca);
22
23
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"in"
);
24
in->
fileopen
(
fname
);
25
26
Fun4AllInputManager
*in2 =
new
Fun4AllDstInputManager
(
"in2"
);
27
in2->
fileopen
(fname2);
28
29
// in->AddListFile("g4hits.list");
30
31
// Fun4All
32
se->
registerInputManager
(in2);
33
se->
registerInputManager
(in);
34
se->
run
();
35
se->
End
();
36
}
analysis
blob
master
Calo_waveform_sim
macro
Fun4All_CaloWaveFormSim.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:48
using
1.8.2 with
sPHENIX GitHub integration