ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODBPhys
xAODBPhys
BPhysHypoHelper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
61
62
#ifndef XAOD_BPHYSHYPOHELPER_H
63
#define XAOD_BPHYSHYPOHELPER_H
64
65
#include "
BPhysHelper.h
"
66
67
#include <assert.h>
68
69
71
namespace
xAOD
{
72
73
class
BPhysHypoHelper
:
public
BPhysHelper
{
74
75
public
:
76
77
/************************************************************************/
87
BPhysHypoHelper
(
const
std::string &hypo,
const
xAOD::Vertex
* b,
88
SG::auxid_set_t
* decors =
nullptr
) :
89
BPhysHelper
(b),
90
m_hypo
(hypo),
91
m_decors
(decors)
92
{
93
/* nothing here */
94
}
95
96
/************************************************************************/
100
105
106
float
mass
()
const
;
107
float
massErr
()
const
;
108
114
115
bool
setMass
(
const
float
val);
116
bool
setMassErr
(
const
float
val);
117
124
125
bool
setMass
(std::span<const double> trkMasses);
126
128
/************************************************************************/
129
133
139
140
enum
tau_type
{
TAU_CONST_MASS
,
TAU_INV_MASS
};
141
153
154
float
tau
(
const
pv_type
vertexType
=
BPhysHelper::PV_MIN_A0
,
155
const
tau_type
tauType =
BPhysHypoHelper::TAU_CONST_MASS
);
156
157
float
tauErr
(
const
pv_type
vertexType
=
BPhysHelper::PV_MIN_A0
,
158
const
tau_type
tauType =
BPhysHypoHelper::TAU_CONST_MASS
);
159
166
167
bool
setTau
(
const
float
val,
168
const
pv_type
vertexType
=
BPhysHelper::PV_MIN_A0
,
169
const
tau_type
tauType =
BPhysHypoHelper::TAU_CONST_MASS
);
170
171
bool
setTauErr
(
const
float
val,
172
const
pv_type
vertexType
=
BPhysHelper::PV_MIN_A0
,
173
const
tau_type
tauType =
BPhysHypoHelper::TAU_CONST_MASS
);
174
//3D values
175
float
tau3d
(
const
pv_type
vertexType
=
BPhysHelper::PV_MIN_A0
,
176
const
tau_type
tauType =
BPhysHypoHelper::TAU_CONST_MASS
);
177
178
float
tau3dErr
(
const
pv_type
vertexType
=
BPhysHelper::PV_MIN_A0
,
179
const
tau_type
tauType =
BPhysHypoHelper::TAU_CONST_MASS
);
180
181
bool
setTau3d
(
const
float
val,
182
const
pv_type
vertexType
=
BPhysHelper::PV_MIN_A0
,
183
const
tau_type
tauType =
BPhysHypoHelper::TAU_CONST_MASS
);
184
185
bool
setTau3dErr
(
const
float
val,
186
const
pv_type
vertexType
=
BPhysHelper::PV_MIN_A0
,
187
const
tau_type
tauType =
BPhysHypoHelper::TAU_CONST_MASS
);
188
190
/************************************************************************/
191
195
199
bool
pass
()
const
;
200
205
bool
setPass
(
bool
passVal);
206
207
208
210
/************************************************************************/
211
212
protected
:
213
217
218
std::string
m_hypo
;
219
220
SG::auxid_set_t
*
m_decors
;
221
223
224
225
private
:
226
float
get_float
(
const
std::string&
name
)
const
;
227
bool
set_float
(
const
std::string&
name
,
float
val );
228
229
};
230
}
231
232
#endif
233
234
BPhysHelper.h
: B-physics xAOD helpers.
SG::auxid_set_t
A set of aux data identifiers.
Definition
AuxTypes.h:47
xAOD::BPhysHelper::pv_type
pv_type
: Enum type of the PV
Definition
BPhysHelper.h:475
xAOD::BPhysHelper::PV_MIN_A0
@ PV_MIN_A0
Definition
BPhysHelper.h:475
xAOD::BPhysHelper::BPhysHelper
BPhysHelper(const xAOD::Vertex *b)
: Main constructor
Definition
BPhysHelper.h:85
xAOD::BPhysHypoHelper::setTau3d
bool setTau3d(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time
Definition
BPhysHypoHelper.cxx:286
xAOD::BPhysHypoHelper::m_decors
SG::auxid_set_t * m_decors
set of decorations that we're written
Definition
BPhysHypoHelper.h:220
xAOD::BPhysHypoHelper::set_float
bool set_float(const std::string &name, float val)
Definition
BPhysHypoHelper.cxx:28
xAOD::BPhysHypoHelper::tauErr
float tauErr(const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time error
Definition
BPhysHypoHelper.cxx:108
xAOD::BPhysHypoHelper::setTau3dErr
bool setTau3dErr(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time error
Definition
BPhysHypoHelper.cxx:322
xAOD::BPhysHypoHelper::mass
float mass() const
Get invariant mass and its error.
Definition
BPhysHypoHelper.cxx:42
xAOD::BPhysHypoHelper::m_hypo
std::string m_hypo
name of the mass hypothesis
Definition
BPhysHypoHelper.h:218
xAOD::BPhysHypoHelper::setMass
bool setMass(const float val)
Set given invariant mass and its error.
Definition
BPhysHypoHelper.cxx:52
xAOD::BPhysHypoHelper::get_float
float get_float(const std::string &name) const
Definition
BPhysHypoHelper.cxx:21
xAOD::BPhysHypoHelper::tau3dErr
float tau3dErr(const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time error
Definition
BPhysHypoHelper.cxx:251
xAOD::BPhysHypoHelper::massErr
float massErr() const
invariant mass error
Definition
BPhysHypoHelper.cxx:47
xAOD::BPhysHypoHelper::setPass
bool setPass(bool passVal)
get the pass flag for this hypothesis
Definition
BPhysHypoHelper.cxx:367
xAOD::BPhysHypoHelper::tau_type
tau_type
: Enum type the proper decay time calculationTAU_CONST_MASS the proper decay time calculated with the...
Definition
BPhysHypoHelper.h:140
xAOD::BPhysHypoHelper::TAU_CONST_MASS
@ TAU_CONST_MASS
Definition
BPhysHypoHelper.h:140
xAOD::BPhysHypoHelper::TAU_INV_MASS
@ TAU_INV_MASS
Definition
BPhysHypoHelper.h:140
xAOD::BPhysHypoHelper::tau
float tau(const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
: Get the proper decay time and error.
Definition
BPhysHypoHelper.cxx:73
xAOD::BPhysHypoHelper::setTau
bool setTau(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
: Set the proper decay time and error.
Definition
BPhysHypoHelper.cxx:143
xAOD::BPhysHypoHelper::setMassErr
bool setMassErr(const float val)
invariant mass error
Definition
BPhysHypoHelper.cxx:57
xAOD::BPhysHypoHelper::pass
bool pass() const
get the pass flag for this hypothesis
Definition
BPhysHypoHelper.cxx:361
xAOD::BPhysHypoHelper::setTauErr
bool setTauErr(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time error
Definition
BPhysHypoHelper.cxx:179
xAOD::BPhysHypoHelper::tau3d
float tau3d(const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time
Definition
BPhysHypoHelper.cxx:216
xAOD::BPhysHypoHelper::BPhysHypoHelper
BPhysHypoHelper(const std::string &hypo, const xAOD::Vertex *b, SG::auxid_set_t *decors=nullptr)
: Main constructor
Definition
BPhysHypoHelper.h:87
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::vertexType
vertexType
Definition
Vertex_v1.cxx:188
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
Generated on
for ATLAS Offline Software by
1.17.0