ATLAS Offline Software
Loading...
Searching...
No Matches
jet::InfoHelpereLOGmOeEta Class Reference
Inheritance diagram for jet::InfoHelpereLOGmOeEta:
Collaboration diagram for jet::InfoHelpereLOGmOeEta:

Public Member Functions

 InfoHelpereLOGmOeEta (const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
virtual InfoHelpereLOGmOeEtaclone () const
virtual bool isValid (const xAOD::Jet &jet) const

Protected Member Functions

double getAbsMass (const xAOD::Jet &jet) const
double getMassOverPt (const xAOD::Jet &jet) const
double getMassOverE (const xAOD::Jet &jet) const

Protected Attributes

const ValidityHistogramm_validHist
const float m_energyScale
const CompMassDef::TypeEnum m_massDef

Detailed Description

Definition at line 170 of file ValidityHistogram.cxx.

Constructor & Destructor Documentation

◆ InfoHelpereLOGmOeEta()

jet::InfoHelpereLOGmOeEta::InfoHelpereLOGmOeEta ( const ValidityHistogram & validHist,
const float energyScale,
const CompMassDef::TypeEnum massDef )
inline

Definition at line 173 of file ValidityHistogram.cxx.

174 : InfoHelper(validHist,energyScale,massDef) {}
InfoHelper(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)

Member Function Documentation

◆ clone()

virtual InfoHelpereLOGmOeEta * jet::InfoHelpereLOGmOeEta::clone ( ) const
inlinevirtual

Implements jet::InfoHelper.

Definition at line 175 of file ValidityHistogram.cxx.

175{ return new InfoHelpereLOGmOeEta(*this); }
InfoHelpereLOGmOeEta(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)

◆ getAbsMass()

double jet::InfoHelper::getAbsMass ( const xAOD::Jet & jet) const
protectedinherited

Definition at line 197 of file ValidityHistogram.cxx.

198{
199 // Check for the simple case (where we want the default four-vector itself)
201 return jet.m();
202
203 // Not the simple case, check for the specified four-vector instead and return it if it is available
204 JetFourMomAccessor scale(CompMassDef::getJetScaleString(m_massDef).Data());
205 if (scale.isAvailable(jet))
206 return scale(jet).M();
207
208 // Fall-back on the TA moment as a float if applicable (legacy support)
209 SG::AuxElement::ConstAccessor<float> scaleTAMoment("JetTrackAssistedMassCalibrated");
210 if (m_massDef == CompMassDef::TAMass && scaleTAMoment.isAvailable(jet))
211 return scaleTAMoment(jet);
212
213 // Fall-back on the calo mass as the 4-vec if applicable (legacy support)
215 return jet.m();
216
217 // Specified scale is not available, error
218 return JESUNC_ERROR_CODE;
219}
@ Data
Definition BaseObject.h:11
const CompMassDef::TypeEnum m_massDef
virtual double m() const
The invariant mass of the particle.
Definition Jet_v1.cxx:59
TString getJetScaleString(const TypeEnum type)

◆ getMassOverE()

double jet::InfoHelper::getMassOverE ( const xAOD::Jet & jet) const
protectedinherited

Definition at line 246 of file ValidityHistogram.cxx.

247{
248 // Check for the simple case (where we want the default four-vector itself)
250 return jet.m()/jet.e();
251
252 // Not the simple case, check for the specified four-vector instead and return it if it is available
253 JetFourMomAccessor scale(CompMassDef::getJetScaleString(m_massDef).Data());
254 if (scale.isAvailable(jet))
255 return scale(jet).M()/scale(jet).E();
256
257 // Fall-back on the TA moment as a float if applicable (legacy support)
258 SG::AuxElement::ConstAccessor<float> scaleTAMoment("JetTrackAssistedMassCalibrated");
259 if (m_massDef == CompMassDef::TAMass && scaleTAMoment.isAvailable(jet))
260 return scaleTAMoment(jet)/jet.e();
261
262 // Fall-back on the calo mass as the 4-vec if applicable (legacy support)
264 return jet.m()/jet.e();
265
266 // Specified scale is not available, error
267 return JESUNC_ERROR_CODE;
268
269}
virtual double e() const
The total energy of the particle.
Definition Jet_v1.cxx:63

◆ getMassOverPt()

double jet::InfoHelper::getMassOverPt ( const xAOD::Jet & jet) const
protectedinherited

Definition at line 221 of file ValidityHistogram.cxx.

222{
223 // Check for the simple case (where we want the default four-vector itself)
225 return jet.m()/jet.pt();
226
227 // Not the simple case, check for the specified four-vector instead and return it if it is available
228 JetFourMomAccessor scale(CompMassDef::getJetScaleString(m_massDef).Data());
229 if (scale.isAvailable(jet))
230 return scale(jet).M()/scale(jet).Pt();
231
232 // Fall-back on the TA moment as a float if applicable (legacy support)
233 SG::AuxElement::ConstAccessor<float> scaleTAMoment("JetTrackAssistedMassCalibrated");
234 if (m_massDef == CompMassDef::TAMass && scaleTAMoment.isAvailable(jet))
235 return scaleTAMoment(jet)/jet.pt();
236
237 // Fall-back on the calo mass as the 4-vec if applicable (legacy support)
239 return jet.m()/jet.pt();
240
241 // Specified scale is not available, error
242 return JESUNC_ERROR_CODE;
243
244}
virtual double pt() const
The transverse momentum ( ) of the particle.
Definition Jet_v1.cxx:44

◆ isValid()

virtual bool jet::InfoHelpereLOGmOeEta::isValid ( const xAOD::Jet & jet) const
inlinevirtual

Implements jet::InfoHelper.

Definition at line 177 of file ValidityHistogram.cxx.

178 {
179 return m_validHist.getValue(jet.e()*m_energyScale,log(getMassOverE(jet)),jet.eta());
180 }
const float m_energyScale
const ValidityHistogram & m_validHist
double getMassOverE(const xAOD::Jet &jet) const
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition Jet_v1.cxx:49

Member Data Documentation

◆ m_energyScale

const float jet::InfoHelper::m_energyScale
protectedinherited

Definition at line 32 of file ValidityHistogram.cxx.

◆ m_massDef

const CompMassDef::TypeEnum jet::InfoHelper::m_massDef
protectedinherited

Definition at line 33 of file ValidityHistogram.cxx.

◆ m_validHist

const ValidityHistogram& jet::InfoHelper::m_validHist
protectedinherited

Definition at line 31 of file ValidityHistogram.cxx.


The documentation for this class was generated from the following file: