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
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