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
CaloTowerCalib.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CaloTowerCalib.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef CALOTOWERCALIB_H
4
#define CALOTOWERCALIB_H
5
6
#include "
CaloTowerDefs.h
"
7
8
#include <calobase/TowerInfoContainer.h>
// for TowerInfoContainer, TowerIn...
9
10
#include <
fun4all/SubsysReco.h
>
11
12
#include <cassert>
13
#include <iostream>
14
#include <string>
15
16
class
CDBTTree
;
17
class
PHCompositeNode
;
18
class
TowerInfoContainer
;
19
20
class
CaloTowerCalib
:
public
SubsysReco
21
{
22
public
:
23
CaloTowerCalib
(
const
std::string
&
name
=
"CaloTowerCalib"
);
24
25
~CaloTowerCalib
()
override
;
26
27
int
InitRun
(
PHCompositeNode
*topNode)
override
;
28
int
process_event
(
PHCompositeNode
*topNode)
override
;
29
void
CreateNodeTree
(
PHCompositeNode
*topNode);
30
31
void
set_detector_type
(
CaloTowerDefs::DetectorSystem
dettype)
32
{
33
m_dettype
= dettype;
34
return
;
35
}
36
void
setCalibName
(
const
std::string
&
name
)
37
{
38
m_calibName
=
name
;
39
m_overrideCalibName
= 1;
40
return
;
41
}
42
void
setFieldName
(
const
std::string
&
name
)
43
{
44
m_fieldname
=
name
;
45
m_overrideFieldName
= 1;
46
return
;
47
}
48
void
set_inputNodePrefix
(
const
std::string
&
name
)
49
{
50
m_inputNodePrefix
=
name
;
51
return
;
52
}
53
void
set_outputNodePrefix
(
const
std::string
&
name
)
54
{
55
m_outputNodePrefix
=
name
;
56
return
;
57
}
58
59
void
set_directURL
(
const
std::string
&
url
){
60
m_giveDirectURL
=
true
;
61
m_directURL
=
url
;
62
}
63
64
void
set_use_TowerInfov2
(
bool
use) {
m_use_TowerInfov2
=use;}
65
66
private
:
67
CaloTowerDefs::DetectorSystem
m_dettype
;
68
69
std::string
m_detector
;
70
TowerInfoContainer::DETECTOR
m_DETECTOR
;
71
std::string
m_fieldname
;
72
std::string
m_calibName
;
73
bool
m_overrideCalibName
{
false
};
74
bool
m_overrideFieldName
{
false
};
75
std::string
m_inputNodePrefix
{
"TOWERS_"
};
76
std::string
m_outputNodePrefix
{
"TOWERINFO_CALIB_"
};
77
std::string
RawTowerNodeName
;
78
std::string
CalibTowerNodeName
;
79
80
bool
m_use_TowerInfov2
= 0;
81
82
bool
m_giveDirectURL
=
false
;
83
std::string
m_directURL
=
""
;
84
85
CDBTTree
*
cdbttree
=
nullptr
;
86
int
m_runNumber
;
87
};
88
89
#endif // CALOTOWERBUILDER_H
coresoftware
blob
master
offline
packages
CaloReco
CaloTowerCalib.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:05
using
1.8.2 with
sPHENIX GitHub integration