|
ATLAS Offline Software
|
Go to the documentation of this file.
12 :
EL::AnaAlgorithm(
name, pSvcLocator)
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;
Gaudi::Property< float > m_sumref
the MET+MWT threshold against which to compare
virtual StatusCode execute() override
Helper class to provide constant type-safe access to aux data.
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
CP::SysReadHandle< xAOD::IParticleContainer > m_electronsHandle
the electron input handle
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
void setBool(const SG::AuxElement &element, bool selection, const CP::SystematicSet &sys) const
set the selection decoration
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
CP::SysReadSelectionHandle m_preselection
the preselection
::StatusCode initialize()
intialize this property
bool getBool(const SG::AuxElement &element, const CP::SystematicSet &sys) const
get the selection as a bool
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
CP::SysListHandle m_systematicsList
the systematics
::StatusCode StatusCode
StatusCode definition for legacy code.
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Gaudi::Property< std::string > m_metTerm
the MET term
bool checkValue(T reference, ComparisonOperator sign, T test)
the comparison test given the specified sign and two test values
Container for xAOD::MissingET_v1 objects.
CP::SysReadSelectionHandle m_muonSelection
the muon selection
Gaudi::Property< bool > m_useDressedProperties
use dressed kinematics
MissingETPlusTransverseMassSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Class describing the basic event information.
Gaudi::Property< std::string > m_sign
the comparison (GT, LT, etc)
CP::SysReadHandle< xAOD::IParticleContainer > m_muonsHandle
the muon input handle
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
CP::SysReadHandle< xAOD::MissingETContainer > m_metHandle
the MET handle
CP::SysReadSelectionHandle m_electronSelection
the electrons selection
virtual StatusCode initialize() override
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor