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
blob
master
A_N
Ana
AndersonAnalysisModules
AntiSigma
BBCStudy
Calo_Validation_Package
Calo_waveform_sim
Calorimeter
CalorimeterEmbedding
CalorimeterJets
cdbEMCalExample
cemcRecoAna
Centrality_Validation_Package
dNdEta_Run2023
EIC-IR
EIC-SynRad
EICAnalysis
EICMCAnalysis
EICTrigger
ElectronID
EMCal-analysis
EMCal-calibration
EMCal-commissioning
emcal_tower_masking
emcalHotTowerFinder
macro
Fun4All_EMCalBadTowerID.C
toweridmacro.C
src
emcalTreeMaker
packetCorrelation
EMCal-LEDs
EMCal-position-dependent-calibration
EMCal-QA
EMCal_pi0_Calib_2023
EMCTemplateFitting
EpFinder
Event-Display
EventMix
FilterEvents
FilterEventsUpsilon
Fluence
ForwardCalo
ForwardTracking
FrawleyTrackEvalMacros
hbcup
HCal-analysis
HCalCosmicCalib
HCalHotTowerFinder
HCalib
HcalSingleHadronCalib
HF-Jet
HF-Particle
isoCluster
IsolatedTrackAnalysis
JS-Jet
mbdAnalysis
MBDStudy
MultiDetectorMultiplicity
MvtxTelescope
mybuild
ParticleID
PHFlowJetMaker
PhotonConversion
PhotonJet
pi0ClusterAna
pi0Efficiency
Pi0MassAnalysis
Prototype2
Prototype3
Prototype4
psTOF
pythiaEMCalAna
pythiaInfo
QuarkoniaBG
quickHIJING
ResonanceJetTaggingOutputs
runTrackingDiagnostics
Shift_emcal_g4hits
SimpleTrackingAnalysis
singlePhotonClusterAna
sPhenixAj
SvtxSimPerformanceCheckReco
TemplateCreation
Test
TowerInfoExample
TPC
TPC-ClusterAnimation
TPC-GemGain
Tracking
TrackPid
TreeMaker
ZDC-CALIB
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
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
toweridmacro.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file toweridmacro.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 <
fun4all/Fun4AllDstOutputManager.h
>
9
#include <
fun4all/Fun4AllOutputManager.h
>
10
#include <
fun4all/Fun4AllServer.h
>
11
12
#include <
phool/PHRandomSeed.h
>
13
#include <
phool/recoConsts.h
>
14
#include <
cdbobjects/CDBTTree.h
>
15
16
17
#include <towerid/towerid.h>
18
19
R__LOAD_LIBRARY(libcdbobjects.so)
20
R__LOAD_LIBRARY(libfun4all.so)
21
R__LOAD_LIBRARY(libtowerid.so)
22
//R__LOAD_LIBRARY(libmakeMBDTrees.so)
23
#endif
24
void
toweridmacro
(
const
int
nEvents
= 5000,
const
char
*listFile =
"/sphenix/lustre01/sphnxpro/commissioning/DST/run_20488/dsts_fast/DST-00020488-0042.root"
,
const
char
*inName =
"commissioning3.root"
,
const
std::string
cdbname =
"test.root"
,
float
adccut_sg = 150,
float
adccut_k = 150,
float
sigmas_lo = -2,
float
sigmas_hi = 4,
float
SG_f = 0.5,
float
Kur_f = 0.5,
float
region_f = 1.0)
25
{
26
Fun4AllServer
*se =
Fun4AllServer::instance
();
27
recoConsts
*rc =
recoConsts::instance
();
28
29
towerid
*calo =
new
towerid
(inName,cdbname,adccut_sg,adccut_k,sigmas_lo,sigmas_hi,
nEvents
,SG_f,Kur_f);
30
se->
registerSubsystem
(calo);
31
32
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"DSTcalo"
);
33
in->
AddFile
(listFile);
34
se->
registerInputManager
(in);
35
36
se->
run
(
nEvents
);
37
38
se->
End
();
39
se->
PrintTimer
();
40
41
std::cout <<
"All done!"
<< std::endl;
42
43
gSystem->Exit(0);
44
}
45
analysis
blob
master
EMCal-commissioning
emcalHotTowerFinder
macro
toweridmacro.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:51
using
1.8.2 with
sPHENIX GitHub integration