ATLAS Offline Software
Loading...
Searching...
No Matches
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
71namespace xAOD {
72
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
141
153
156
159
166
167 bool setTau(const float val,
170
171 bool setTauErr(const float val,
174//3D values
177
180
181 bool setTau3d(const float val,
184
185 bool setTau3dErr(const float val,
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
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
: B-physics xAOD helpers.
A set of aux data identifiers.
Definition AuxTypes.h:47
pv_type
: Enum type of the PV
BPhysHelper(const xAOD::Vertex *b)
: Main constructor
Definition BPhysHelper.h:85
bool setTau3d(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time
SG::auxid_set_t * m_decors
set of decorations that we're written
bool set_float(const std::string &name, float val)
float tauErr(const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time error
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
float mass() const
Get invariant mass and its error.
std::string m_hypo
name of the mass hypothesis
bool setMass(const float val)
Set given invariant mass and its error.
float get_float(const std::string &name) const
float tau3dErr(const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time error
float massErr() const
invariant mass error
bool setPass(bool passVal)
get the pass flag for this hypothesis
tau_type
: Enum type the proper decay time calculationTAU_CONST_MASS the proper decay time calculated with the...
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.
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.
bool setMassErr(const float val)
invariant mass error
bool pass() const
get the pass flag for this hypothesis
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
float tau3d(const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time
BPhysHypoHelper(const std::string &hypo, const xAOD::Vertex *b, SG::auxid_set_t *decors=nullptr)
: Main constructor
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Vertex_v1 Vertex
Define the latest version of the vertex class.