ATLAS Offline Software
Loading...
Searching...
No Matches
IPhotonObservableTool Class Referenceabstract

#include <IPhotonObservableTool.h>

Inheritance diagram for IPhotonObservableTool:
Collaboration diagram for IPhotonObservableTool:

Public Member Functions

virtual ~IPhotonObservableTool ()=default
virtual double evaluate (const xAOD::Photon *photon) const =0
double evaluate (const xAOD::IParticle *particle) const override final
 returns: the value that was calculated from the xAOD::IParticle
virtual void print () const =0
 Print the state of the tool.

Detailed Description

Definition at line 14 of file IPhotonObservableTool.h.

Constructor & Destructor Documentation

◆ ~IPhotonObservableTool()

virtual IPhotonObservableTool::~IPhotonObservableTool ( )
virtualdefault

Member Function Documentation

◆ evaluate() [1/2]

double IPhotonObservableTool::evaluate ( const xAOD::IParticle * ) const
inlinefinaloverridevirtual

returns: the value that was calculated from the xAOD::IParticle

Implements IObservableTool.

Reimplemented in PhotonIDBDT::PhotonBDTCalculator.

Definition at line 22 of file IPhotonObservableTool.h.

22 {
23 if (const auto* photon = dynamic_cast<const xAOD::Photon*>(particle)) {
24 return evaluate(photon);
25 } else {
26 throw std::invalid_argument("Wrong particle type, input=" + std::to_string(particle->type()));
27 }
28 }
virtual double evaluate(const xAOD::Photon *photon) const =0
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Photon_v1 Photon
Definition of the current "egamma version".

◆ evaluate() [2/2]

virtual double IPhotonObservableTool::evaluate ( const xAOD::Photon * photon) const
pure virtual

◆ print()


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