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
hcal_toweridmacro.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file hcal_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
15
#include <hcal_towerid/hcal_towerid.h>
16
17
R__LOAD_LIBRARY(libfun4all.so)
18
R__LOAD_LIBRARY(libtowerid.so)
19
//R__LOAD_LIBRARY(libmakeMBDTrees.so)
20
#endif
21
void
hcal_toweridmacro
(
const
int
nEvents
= 5000,
const
char
*listFile =
"/sphenix/lustre01/sphnxpro/commissioning/DST/run_22950/dsts_fast/DST-00022950-0018.root"
,
const
char
*inName =
"commissioning.root"
,
const
std::string
cdbname_i =
"cdbname_i.root"
,
const
std::string
cdbname_o =
"cdbname_o.root"
,
float
adccut_i = 150,
float
adccut_o = 150,
float
sigmas_lo = 2,
float
sigmas_hi = 4,
float
inner_f = 0.05,
float
outer_f = 0.05)
22
{
23
Fun4AllServer
*se =
Fun4AllServer::instance
();
24
recoConsts
*rc =
recoConsts::instance
();
25
26
hcal_towerid
*calo =
new
hcal_towerid
(inName,cdbname_i,cdbname_o,adccut_i,adccut_o,sigmas_lo,sigmas_hi,inner_f,outer_f);
27
se->
registerSubsystem
(calo);
28
29
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"DSTcalo"
);
30
in->
AddFile
(listFile);
31
se->
registerInputManager
(in);
32
33
se->
run
(
nEvents
);
34
35
se->
End
();
36
se->
PrintTimer
();
37
38
std::cout <<
"All done!"
<< std::endl;
39
40
gSystem->Exit(0);
41
}
42
analysis
blob
master
HCalHotTowerFinder
macro
hcal_toweridmacro.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:52
using
1.8.2 with
sPHENIX GitHub integration