Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
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  /************************************************************************/
106  float mass() const;
107  float massErr() const;
108 
115  bool setMass (const float val);
116  bool setMassErr(const float val);
117 
125  bool setMass(std::span<const double> trkMasses);
126 
128  /************************************************************************/
129 
141 
155  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
156 
158  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
159 
167  bool setTau(const float val,
169  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
170 
171  bool setTauErr(const float val,
173  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
174 //3D values
176  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
177 
179  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
180 
181  bool setTau3d(const float val,
183  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
184 
185  bool setTau3dErr(const float val,
187  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
188 
190  /************************************************************************/
191 
199  bool pass() const;
200 
205  bool setPass(bool passVal);
206 
207 
208 
210  /************************************************************************/
211 
212  protected:
213 
218  std::string m_hypo;
219 
221 
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 
xAOD::BPhysHypoHelper::setMass
bool setMass(const float val)
Set given invariant mass and its error.
Definition: BPhysHypoHelper.cxx:52
xAOD::name
name
Definition: TriggerMenuJson_v1.cxx:29
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::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::BPhysHelper
Definition: BPhysHelper.h:71
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::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::m_decors
SG::auxid_set_t * m_decors
set of decorations that we're written
Definition: BPhysHypoHelper.h:220
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::pass
bool pass() const
get the pass flag for this hypothesis
Definition: BPhysHypoHelper.cxx:361
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::BPhysHypoHelper::massErr
float massErr() const
invariant mass error
Definition: BPhysHypoHelper.cxx:47
xAOD::BPhysHypoHelper::TAU_INV_MASS
@ TAU_INV_MASS
Definition: BPhysHypoHelper.h:140
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::m_hypo
std::string m_hypo
name of the mass hypothesis
Definition: BPhysHypoHelper.h:218
xAOD::BPhysHypoHelper
Definition: BPhysHypoHelper.h:73
xAOD::BPhysHypoHelper::mass
float mass() const
Get invariant mass and its error.
Definition: BPhysHypoHelper.cxx:42
xAOD::BPhysHelper::pv_type
pv_type
: Enum type of the PV
Definition: BPhysHelper.h:475
xAOD::BPhysHypoHelper::setPass
bool setPass(bool passVal)
get the pass flag for this hypothesis
Definition: BPhysHypoHelper.cxx:367
xAOD::BPhysHelper::PV_MIN_A0
@ PV_MIN_A0
Definition: BPhysHelper.h:475
xAOD::BPhysHypoHelper::TAU_CONST_MASS
@ TAU_CONST_MASS
Definition: BPhysHypoHelper.h:140
xAOD::BPhysHypoHelper::set_float
bool set_float(const std::string &name, float val)
Definition: BPhysHypoHelper.cxx:28
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
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
xAOD::vertexType
vertexType
Definition: Vertex_v1.cxx:166
BPhysHelper.h
: B-physics xAOD helpers.
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
xAOD::BPhysHypoHelper::get_float
float get_float(const std::string &name) const
Definition: BPhysHypoHelper.cxx:21
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
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
xAOD::BPhysHypoHelper::tau_type
tau_type
: Enum type the proper decay time calculation
Definition: BPhysHypoHelper.h:140
SG::auxid_set_t
A set of aux data identifiers.
Definition: AuxTypes.h:47
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