Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
25 return floatAcc(*
m_b);
33 m_decors->insert (floatDec.
auxid());
44 return get_float( m_hypo+
"_mass" );
49 return get_float( m_hypo+
"_massErr" );
54 return set_float( m_hypo+
"_mass",
val );
59 return set_float( m_hypo+
"_massErr",
val );
65 TLorentzVector
P = totalP(trkMasses);
66 if(
P == TLorentzVector(0,0,0,0) )
70 return setMass(
P.M());
76 case PV_MAX_SUM_PT2: {
78 case TAU_CONST_MASS :
return get_float(m_hypo+
"_TauConstMassPVMaxSumPt2");
79 case TAU_INV_MASS :
return get_float(m_hypo+
"_TauInvMassPVMaxSumPt2");
80 default:
return -9999999.;
85 case TAU_CONST_MASS :
return get_float(m_hypo+
"_TauConstMassPVMinA0");
86 case TAU_INV_MASS :
return get_float(m_hypo+
"_TauInvMassPVMinA0");
87 default:
return -9999999.;
92 case TAU_CONST_MASS :
return get_float(m_hypo+
"_TauConstMassPVMinZ0");
93 case TAU_INV_MASS :
return get_float(m_hypo+
"_TauInvMassPVMinZ0");
94 default:
return -9999999.;
99 case TAU_CONST_MASS :
return get_float(m_hypo+
"_TauConstMassPVMinZ0BA");
100 case TAU_INV_MASS :
return get_float(m_hypo+
"_TauInvMassPVMinZ0BA");
101 default:
return -9999999.;
104 default:
return -9999999.;
111 case PV_MAX_SUM_PT2: {
113 case TAU_CONST_MASS :
return get_float(m_hypo+
"_TauErrConstMassPVMaxSumPt2");
114 case TAU_INV_MASS :
return get_float(m_hypo+
"_TauErrInvMassPVMaxSumPt2");
115 default:
return -9999999.;
120 case TAU_CONST_MASS :
return get_float(m_hypo+
"_TauErrConstMassPVMinA0");
121 case TAU_INV_MASS :
return get_float(m_hypo+
"_TauErrInvMassPVMinA0");
122 default:
return -9999999.;
127 case TAU_CONST_MASS :
return get_float(m_hypo+
"_TauErrConstMassPVMinZ0");
128 case TAU_INV_MASS :
return get_float(m_hypo+
"_TauErrInvMassPVMinZ0");
129 default:
return -9999999.;
134 case TAU_CONST_MASS :
return get_float(m_hypo+
"_TauErrConstMassPVMinZ0BA");
135 case TAU_INV_MASS :
return get_float(m_hypo+
"_TauErrInvMassPVMinZ0BA");
136 default:
return -9999999.;
139 default:
return -9999999.;
146 case PV_MAX_SUM_PT2: {
148 case TAU_CONST_MASS :
return set_float(m_hypo+
"_TauConstMassPVMaxSumPt2",
val);
149 case TAU_INV_MASS :
return set_float(m_hypo+
"_TauInvMassPVMaxSumPt2",
val);
150 default:
return false;
155 case TAU_CONST_MASS :
return set_float(m_hypo+
"_TauConstMassPVMinA0",
val);
156 case TAU_INV_MASS :
return set_float(m_hypo+
"_TauInvMassPVMinA0",
val);
157 default:
return false;
162 case TAU_CONST_MASS :
return set_float(m_hypo+
"_TauConstMassPVMinZ0",
val);
163 case TAU_INV_MASS :
return set_float(m_hypo+
"_TauInvMassPVMinZ0",
val);
164 default:
return false;
169 case TAU_CONST_MASS :
return set_float(m_hypo+
"_TauConstMassPVMinZ0BA",
val);
170 case TAU_INV_MASS :
return set_float(m_hypo+
"_TauInvMassPVMinZ0BA",
val);
171 default:
return false;
174 default:
return false;
182 case PV_MAX_SUM_PT2: {
184 case TAU_CONST_MASS :
return set_float(m_hypo+
"_TauErrConstMassPVMaxSumPt2",
val);
185 case TAU_INV_MASS :
return set_float(m_hypo+
"_TauErrInvMassPVMaxSumPt2",
val);
186 default:
return false;
191 case TAU_CONST_MASS :
return set_float(m_hypo+
"_TauErrConstMassPVMinA0",
val);
192 case TAU_INV_MASS :
return set_float(m_hypo+
"_TauErrInvMassPVMinA0",
val);
193 default:
return false;
198 case TAU_CONST_MASS :
return set_float(m_hypo+
"_TauErrConstMassPVMinZ0",
val);
199 case TAU_INV_MASS :
return set_float(m_hypo+
"_TauErrInvMassPVMinZ0",
val);
200 default:
return false;
205 case TAU_CONST_MASS :
return set_float(m_hypo+
"_TauErrConstMassPVMinZ0BA",
val);
206 case TAU_INV_MASS :
return set_float(m_hypo+
"_TauErrInvMassPVMinZ0BA",
val);
207 default:
return false;
210 default:
return false;
219 case PV_MAX_SUM_PT2: {
221 case TAU_CONST_MASS :
return get_float(m_hypo+
"_Tau3dConstMassPVMaxSumPt2");
222 case TAU_INV_MASS :
return get_float(m_hypo+
"_Tau3dInvMassPVMaxSumPt2");
223 default:
return -9999999.;
228 case TAU_CONST_MASS :
return get_float(m_hypo+
"_Tau3dConstMassPVMinA0");
229 case TAU_INV_MASS :
return get_float(m_hypo+
"_Tau3dInvMassPVMinA0");
230 default:
return -9999999.;
235 case TAU_CONST_MASS :
return get_float(m_hypo+
"_Tau3dConstMassPVMinZ0");
236 case TAU_INV_MASS :
return get_float(m_hypo+
"_Tau3dInvMassPVMinZ0");
237 default:
return -9999999.;
242 case TAU_CONST_MASS :
return get_float(m_hypo+
"_Tau3dConstMassPVMinZ0BA");
243 case TAU_INV_MASS :
return get_float(m_hypo+
"_Tau3dInvMassPVMinZ0BA");
244 default:
return -9999999.;
247 default:
return -9999999.;
254 case PV_MAX_SUM_PT2: {
256 case TAU_CONST_MASS :
return get_float(m_hypo+
"_Tau3dErrConstMassPVMaxSumPt2");
257 case TAU_INV_MASS :
return get_float(m_hypo+
"_Tau3dErrInvMassPVMaxSumPt2");
258 default:
return -9999999.;
263 case TAU_CONST_MASS :
return get_float(m_hypo+
"_Tau3dErrConstMassPVMinA0");
264 case TAU_INV_MASS :
return get_float(m_hypo+
"_Tau3dErrInvMassPVMinA0");
265 default:
return -9999999.;
270 case TAU_CONST_MASS :
return get_float(m_hypo+
"_Tau3dErrConstMassPVMinZ0");
271 case TAU_INV_MASS :
return get_float(m_hypo+
"_Tau3dErrInvMassPVMinZ0");
272 default:
return -9999999.;
277 case TAU_CONST_MASS :
return get_float(m_hypo+
"_Tau3dErrConstMassPVMinZ0BA");
278 case TAU_INV_MASS :
return get_float(m_hypo+
"_Tau3dErrInvMassPVMinZ0BA");
279 default:
return -9999999.;
282 default:
return -9999999.;
289 case PV_MAX_SUM_PT2: {
291 case TAU_CONST_MASS :
return set_float(m_hypo+
"_Tau3dConstMassPVMaxSumPt2",
val);
292 case TAU_INV_MASS :
return set_float(m_hypo+
"_Tau3dInvMassPVMaxSumPt2",
val);
293 default:
return false;
298 case TAU_CONST_MASS :
return set_float(m_hypo+
"_Tau3dConstMassPVMinA0",
val);
299 case TAU_INV_MASS :
return set_float(m_hypo+
"_Tau3dInvMassPVMinA0",
val);
300 default:
return false;
305 case TAU_CONST_MASS :
return set_float(m_hypo+
"_Tau3dConstMassPVMinZ0",
val);
306 case TAU_INV_MASS :
return set_float(m_hypo+
"_Tau3dInvMassPVMinZ0",
val);
307 default:
return false;
312 case TAU_CONST_MASS :
return set_float(m_hypo+
"_Tau3dConstMassPVMinZ0BA",
val);
313 case TAU_INV_MASS :
return set_float(m_hypo+
"_Tau3dInvMassPVMinZ0BA",
val);
314 default:
return false;
317 default:
return false;
325 case PV_MAX_SUM_PT2: {
327 case TAU_CONST_MASS :
return set_float(m_hypo+
"_Tau3dErrConstMassPVMaxSumPt2",
val);
328 case TAU_INV_MASS :
return set_float(m_hypo+
"_Tau3dErrInvMassPVMaxSumPt2",
val);
329 default:
return false;
334 case TAU_CONST_MASS :
return set_float(m_hypo+
"_Tau3dErrConstMassPVMinA0",
val);
335 case TAU_INV_MASS :
return set_float(m_hypo+
"_Tau3dErrInvMassPVMinA0",
val);
336 default:
return false;
341 case TAU_CONST_MASS :
return set_float(m_hypo+
"_Tau3dErrConstMassPVMinZ0",
val);
342 case TAU_INV_MASS :
return set_float(m_hypo+
"_Tau3dErrInvMassPVMinZ0",
val);
343 default:
return false;
348 case TAU_CONST_MASS :
return set_float(m_hypo+
"_Tau3dErrConstMassPVMinZ0BA",
val);
349 case TAU_INV_MASS :
return set_float(m_hypo+
"_Tau3dErrInvMassPVMinZ0BA",
val);
350 default:
return false;
353 default:
return false;
364 return flagAcc.
isAvailable(*m_b) && flagAcc(*m_b) != 0;
370 flagDec(*m_b) = passVal;
372 m_decors->insert(flagDec.
auxid());
bool setMass(const float val)
Set given invariant mass and its 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 tauErr(const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time error
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 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 pass() const
get the pass flag for this hypothesis
SG::auxid_t auxid() const
Return the aux id for this variable.
float massErr() const
invariant mass error
float tau3dErr(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.
pv_type
: Enum type of the PV
bool setPass(bool passVal)
get the pass flag for this hypothesis
const xAOD::Vertex * m_b
Cached B decay xAOD vertex.
: B-physics xAOD helpers.
bool set_float(const std::string &name, float val)
bool setTau3d(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time
float get_float(const std::string &name) const
float tau3d(const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time
tau_type
: Enum type the proper decay time calculation
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
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