|
ATLAS Offline Software
|
Go to the documentation of this file.
12 :
EL::AnaAlgorithm(
name, pSvcLocator)
29 return StatusCode::SUCCESS;
58 float etmiss_pt = (*met)[
m_metTerm.value()]->met();
59 float etmiss_phi = (*met)[
m_metTerm.value()]->phi();
60 float lep_pt, lep_phi;
85 ATH_MSG_ERROR(
"No charged lepton in the event, cannot compute MWT!");
86 return StatusCode::FAILURE;
90 ATH_MSG_ERROR(
"More than one lepton is associated with this event - cannot determine which is the W decay lepton.");
91 return StatusCode::FAILURE;
94 float mwt = sqrt(2. * lep_pt * etmiss_pt * (1. -
std::cos(lep_phi - etmiss_phi)));
97 float sum = etmiss_pt + mwt;
103 return StatusCode::SUCCESS;
Gaudi::Property< float > m_sumref
the MET+MWT threshold against which to compare
virtual StatusCode execute() override
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
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