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
CaloProduction
Fun4All_CaloProduction.C
Fun4All_CaloProduction_PreQM23.C
Fun4All_Year1.C
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_CaloProduction.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_CaloProduction.C
1
#ifndef FUN4ALL_CALOPRODUCTION_C
2
#define FUN4ALL_CALOPRODUCTION_C
3
4
#include <caloreco/CaloTowerBuilder.h>
5
#include <caloreco/CaloWaveformProcessing.h>
6
#include <caloreco/CaloGeomMapping.h>
7
8
#include <
ffamodules/FlagHandler.h
>
9
#include <
ffamodules/HeadReco.h
>
10
#include <
ffamodules/SyncReco.h
>
11
#include <
ffamodules/CDBInterface.h
>
12
13
#include <
fun4allraw/Fun4AllPrdfInputManager.h
>
14
15
#include <
fun4all/Fun4AllDstOutputManager.h
>
16
#include <
fun4all/Fun4AllInputManager.h
>
17
#include <
fun4all/Fun4AllServer.h
>
18
#include <
fun4all/SubsysReco.h
>
19
20
21
#include <
phool/recoConsts.h
>
22
23
24
25
R__LOAD_LIBRARY(libfun4all.so)
26
R__LOAD_LIBRARY(libfun4allraw.so)
27
R__LOAD_LIBRARY(libcalo_reco.so)
28
R__LOAD_LIBRARY(libffamodules.so)
29
30
void
Fun4All_CaloProduction
(const std::
string
&
fname
= "/sphenix/user/trinn/combined_event_prdfs/calib-00007377-0000.prdf", const std::
string
&
outfile
= "testfile.
root
",
int
nskip = 0,
int
nevents
= 0)
31
{
32
Fun4AllServer
*se =
Fun4AllServer::instance
();
33
se->
Verbosity
(0);
34
recoConsts
*rc =
recoConsts::instance
();
35
36
//===============
37
// conditions DB flags
38
//===============
39
rc->
set_StringFlag
(
"CDB_GLOBALTAG"
,
"MDC2"
);
40
rc->
set_uint64Flag
(
"TIMESTAMP"
,6);
41
42
CaloTowerBuilder
*ca =
new
CaloTowerBuilder
();
43
ca->
set_detector_type
(
CaloTowerBuilder::CEMC
);
44
ca->
set_nsamples
(31);
45
ca->
set_processing_type
(
CaloWaveformProcessing::TEMPLATE
);
46
se->
registerSubsystem
(ca);
47
48
CaloTowerBuilder
*ca1 =
new
CaloTowerBuilder
();
49
ca1->
set_detector_type
(
CaloTowerBuilder::HCALIN
);
50
ca1->
set_nsamples
(31);
51
ca1->
set_processing_type
(
CaloWaveformProcessing::TEMPLATE
);
52
se->
registerSubsystem
(ca1);
53
54
CaloTowerBuilder
*ca2 =
new
CaloTowerBuilder
();
55
ca2->
set_detector_type
(
CaloTowerBuilder::HCALOUT
);
56
ca2->
set_nsamples
(31);
57
ca2->
set_processing_type
(
CaloWaveformProcessing::TEMPLATE
);
58
se->
registerSubsystem
(ca2);
59
60
//default is FAST
61
CaloTowerBuilder
*ca3 =
new
CaloTowerBuilder
();
62
ca3->
set_detector_type
(
CaloTowerBuilder::ZDC
);
63
ca3->
set_nsamples
(31);
64
se->
registerSubsystem
(ca3);
65
66
CaloGeomMapping
*cgm =
new
CaloGeomMapping
();
67
cgm->
set_detector_name
(
"CEMC"
);
68
se->
registerSubsystem
(cgm);
69
70
CaloGeomMapping
*cgm1 =
new
CaloGeomMapping
();
71
cgm1->
set_detector_name
(
"HCALIN"
);
72
se->
registerSubsystem
(cgm1);
73
74
CaloGeomMapping
*cgm2 =
new
CaloGeomMapping
();
75
cgm2->
set_detector_name
(
"HCALOUT"
);
76
se->
registerSubsystem
(cgm2);
77
78
Fun4AllInputManager
*
in
=
new
Fun4AllPrdfInputManager
(
"in"
);
79
in->
fileopen
(
fname
);
80
se->
registerInputManager
(in);
81
82
Fun4AllDstOutputManager
*
out
=
new
Fun4AllDstOutputManager
(
"DSTOUT"
,
outfile
);
83
se->
registerOutputManager
(out);
84
85
86
se->
skip
(nskip);
87
se->
run
(nevents);
88
CDBInterface::instance
()->
Print
();
// print used DB files
89
se->
End
();
90
se->
PrintTimer
();
91
gSystem->Exit(0);
92
}
93
94
#endif
macros
blob
master
CaloProduction
Fun4All_CaloProduction.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:26
using
1.8.2 with
sPHENIX GitHub integration