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
CaloCalibration.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CaloCalibration.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef PROTOTYPE4_CALOCALIBRATION_H
4
#define PROTOTYPE4_CALOCALIBRATION_H
5
6
//* Unpacks raw HCAL PRDF files *//
7
// Abhisek Sen
8
9
#include <
fun4all/SubsysReco.h
>
10
11
#include <phparameter/PHParameters.h>
12
13
#include <string>
14
15
class
PHCompositeNode
;
16
class
RawTowerContainer
;
17
18
class
CaloCalibration
:
public
SubsysReco
19
{
20
public
:
21
CaloCalibration
(
const
std::string
&
name
);
22
23
int
InitRun
(
PHCompositeNode
*topNode);
24
25
int
process_event
(
PHCompositeNode
*topNode);
26
27
void
CreateNodeTree
(
PHCompositeNode
*topNode);
28
29
std::string
get_calib_tower_node_prefix
()
const
30
{
31
return
_calib_tower_node_prefix
;
32
}
33
34
void
set_calib_tower_node_prefix
(
const
std::string
&calibTowerNodePrefix)
35
{
36
_calib_tower_node_prefix
= calibTowerNodePrefix;
37
}
38
39
std::string
get_raw_tower_node_prefix
()
const
40
{
41
return
_raw_tower_node_prefix
;
42
}
43
44
void
set_raw_tower_node_prefix
(
const
std::string
&rawTowerNodePrefix)
45
{
46
_raw_tower_node_prefix
= rawTowerNodePrefix;
47
}
48
50
const
PHParameters
&
GetCalibrationParameters
()
const
{
return
_calib_params
; }
51
54
PHParameters
&
GetCalibrationParameters
() {
return
_calib_params
; }
55
58
void
SetCalibrationParameters
(
const
PHParameters
&calib_params)
59
{
60
_calib_params
= calib_params;
61
}
62
63
enum
FitMethodType
64
{
66
kPowerLawExp
,
67
69
kPowerLawDoubleExp
,
70
73
kPowerLawDoubleExpWithGlobalFitConstraint
,
74
76
kPeakSample
77
78
};
79
80
void
SetFitType
(
FitMethodType
t
) {
_fit_type
=
t
; }
81
82
private
:
83
RawTowerContainer
*
_calib_towers
;
84
RawTowerContainer
*
_raw_towers
;
85
86
std::string
detector
;
87
std::string
RawTowerNodeName
;
88
std::string
CaliTowerNodeName
;
89
90
std::string
_calib_tower_node_prefix
;
91
std::string
_raw_tower_node_prefix
;
92
93
PHParameters
_calib_params
;
94
95
FitMethodType
_fit_type
;
96
98
void
SetDefaultParameters
(
PHParameters
¶m);
99
};
100
101
#endif
analysis
blob
master
EMCTemplateFitting
src
CaloCalibration.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:51
using
1.8.2 with
sPHENIX GitHub integration