29 return StatusCode::SUCCESS;
64 return StatusCode::FAILURE;
66 float etmiss_pt = (*met)[
m_metTerm.value()]->met();
67 float etmiss_phi = (*met)[
m_metTerm.value()]->phi();
68 float lep_pt, lep_phi;
75 lep_pt = acc_pt_dressed(*el);
76 lep_phi = acc_phi_dressed(*el);
90 lep_pt = acc_pt_dressed(*mu);
91 lep_phi = acc_phi_dressed(*mu);
103 ATH_MSG_ERROR(
"No charged lepton in the event, cannot compute MWT!");
104 return StatusCode::FAILURE;
108 ATH_MSG_ERROR(
"More than one lepton is associated with this event - cannot determine which is the W decay lepton.");
109 return StatusCode::FAILURE;
112 float mwt = sqrt(2. * lep_pt * etmiss_pt * (1. - std::cos(lep_phi - etmiss_phi)));
115 float sum = etmiss_pt + mwt;
121 return StatusCode::SUCCESS;
CP::SysListHandle m_systematicsList
the systematics
MissingETPlusTransverseMassSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
virtual StatusCode initialize() override
CP::SysReadSelectionHandle m_muonSelection
the muon selection
CP::SysReadHandle< xAOD::IParticleContainer > m_muonsHandle
the muon input handle
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
virtual StatusCode execute() override
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
Gaudi::Property< std::string > m_metTerm
the MET term
CP::SysReadHandle< xAOD::MissingETContainer > m_metHandle
the MET handle
Gaudi::Property< std::string > m_sign
the comparison (GT, LT, etc)
Gaudi::Property< bool > m_useDressedProperties
use dressed kinematics
CP::SysReadSelectionHandle m_electronSelection
the electrons selection
CP::SysReadSelectionHandle m_preselection
the preselection
Gaudi::Property< float > m_sumref
the MET+MWT threshold against which to compare
CP::SysReadHandle< xAOD::IParticleContainer > m_electronsHandle
the electron input handle
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Helper class to provide constant type-safe access to aux data.
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
bool checkValue(T reference, ComparisonOperator sign, T test)
the comparison test given the specified sign and two test values
static const std::map< std::string, ComparisonOperator > stringToOperator
the map between user inputs and comparison operators
EventInfo_v1 EventInfo
Definition of the latest event info version.
MissingETContainer_v1 MissingETContainer
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.