00001 #ifndef JETUNCERTAINTIES_PTMASSETAUNCERTAINTYCOMPONENT_H 00002 #define JETUNCERTAINTIES_PTMASSETAUNCERTAINTYCOMPONENT_H 00003 00004 #include "JetUncertainties/UncertaintyComponent.h" 00005 00006 namespace jet 00007 { 00008 00009 class PtMassEtaUncertaintyComponent : public UncertaintyComponent 00010 { 00011 public: 00012 // Constructor/destructor/initialization 00013 PtMassEtaUncertaintyComponent(const ComponentHelper& component); 00014 PtMassEtaUncertaintyComponent(const PtMassEtaUncertaintyComponent& toCopy); 00015 virtual PtMassEtaUncertaintyComponent* clone() const; 00016 virtual ~PtMassEtaUncertaintyComponent() {} 00017 00018 protected: 00019 00020 // Uncertainty/validity retrieval helper methods 00021 virtual bool getValidityImpl(const xAOD::Jet& jet, const xAOD::EventInfo& eInfo) const; 00022 virtual double getUncertaintyImpl(const xAOD::Jet& jet, const xAOD::EventInfo& eInfo) const; 00023 00024 private: 00025 PtMassEtaUncertaintyComponent(const std::string& name = ""); 00026 const bool m_absEta; 00027 const CompMassDef::TypeEnum m_massDef; 00028 }; 00029 00030 } // end jet namespace 00031 00032 #endif 00033