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
HCalib.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file HCalib.h
1
#ifndef __HCALIB_H__
2
#define __HCALIB_H__
3
4
#include <
fun4all/SubsysReco.h
>
5
#include <string>
6
7
class
PHCompositeNode
;
8
class
RawTowerContainer
;
9
class
RawTowerGeomContainer
;
10
class
PHG4CellContainer
;
11
class
PHG4ScintillatorSlatContainer
;
12
class
TFile;
13
class
TH1F;
14
class
RawTower
;
15
16
#include <
g4detectors/PHG4ScintillatorSlatDefs.h
>
17
#include <calobase/RawTowerDefs.h>
18
#include <map>
19
20
class
HCalib
:
public
SubsysReco
21
{
22
public
:
23
typedef
std::map<PHG4ScintillatorSlatDefs::keytype,TH1F *>
SlatMap
;
24
typedef
std::map<RawTowerDefs::keytype, TH1F *>
TowerMap
;
25
26
HCalib
();
27
virtual
~HCalib
() {}
28
29
int
Init
(
PHCompositeNode
*
topNode
);
30
int
process_event
(
PHCompositeNode
*
topNode
);
31
int
End
(
PHCompositeNode
*
topNode
);
32
int
genkey
(
const
int
detid
,
const
int
etabin
,
const
int
phibin);
33
enum
detid
{
HCALIN
=0,
HCALOUT
=1 };
34
protected
:
35
bool
is_proto
;
36
void
GetNodes
(
PHCompositeNode
*
topNode
,
const
std::string
&det =
"None"
);
37
38
PHCompositeNode
*
topNode
;
39
RawTowerContainer
*
towers
;
40
PHG4CellContainer
*
slats
;
41
PHG4ScintillatorSlatContainer
*
proto_slats
;
42
float
threshold
;
43
TFile *
outfile
;
44
SlatMap
slat_hists
;
45
TowerMap
tower_hists
;
46
bool
fill_towers
;
47
bool
fill_slats
;
48
};
49
50
#endif
analysis
blob
master
HCalib
HCalib.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:52
using
1.8.2 with
sPHENIX GitHub integration