ATLAS Offline Software
BPhysHypoHelper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 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  /************************************************************************/
86  BPhysHypoHelper(const std::string &hypo, const xAOD::Vertex* b) :
87  BPhysHelper(b),
88  m_hypo(hypo)
89  {
90  /* nothing here */
91  }
92 
93  /************************************************************************/
103  float mass() const;
104  float massErr() const;
105 
112  bool setMass (const float val);
113  bool setMassErr(const float val);
114 
122  bool setMass(std::span<const double> trkMasses);
123 
125  /************************************************************************/
126 
138 
152  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
153 
155  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
156 
164  bool setTau(const float val,
166  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
167 
168  bool setTauErr(const float val,
170  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
171 //3D values
173  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
174 
176  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
177 
178  bool setTau3d(const float val,
180  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
181 
182  bool setTau3dErr(const float val,
184  const tau_type tauType = BPhysHypoHelper::TAU_CONST_MASS);
185 
187  /************************************************************************/
188 
196  bool pass() const;
197 
202  bool setPass(bool passVal);
203 
204 
205 
207  /************************************************************************/
208 
209  protected:
210 
215  std::string m_hypo;
216 
220  };
221 }
222 
223 #endif
224 
225 
xAOD::BPhysHypoHelper::setMass
bool setMass(const float val)
Set given invariant mass and its error.
Definition: BPhysHypoHelper.cxx:49
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:319
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:105
xAOD::BPhysHelper
Definition: BPhysHelper.h:71
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:176
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:70
xAOD::BPhysHypoHelper::pass
bool pass() const
get the pass flag for this hypothesis
Definition: BPhysHypoHelper.cxx:358
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:44
xAOD::BPhysHypoHelper::TAU_INV_MASS
@ TAU_INV_MASS
Definition: BPhysHypoHelper.h:137
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:248
xAOD::BPhysHypoHelper::BPhysHypoHelper
BPhysHypoHelper(const std::string &hypo, const xAOD::Vertex *b)
: Main constructor
Definition: BPhysHypoHelper.h:86
xAOD::BPhysHypoHelper::m_hypo
std::string m_hypo
name of the mass hypothesis
Definition: BPhysHypoHelper.h:215
xAOD::BPhysHypoHelper
Definition: BPhysHypoHelper.h:73
xAOD::BPhysHypoHelper::mass
float mass() const
Get invariant mass and its error.
Definition: BPhysHypoHelper.cxx:39
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:364
xAOD::BPhysHelper::PV_MIN_A0
@ PV_MIN_A0
Definition: BPhysHelper.h:475
xAOD::BPhysHypoHelper::TAU_CONST_MASS
@ TAU_CONST_MASS
Definition: BPhysHypoHelper.h:137
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:283
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::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:213
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:137
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:140
xAOD::BPhysHypoHelper::setMassErr
bool setMassErr(const float val)
invariant mass error
Definition: BPhysHypoHelper.cxx:54