|
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;
86 ATH_MSG_ERROR(
"No charged lepton in the event, cannot compute MWT!");
87 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)));
100 return StatusCode::SUCCESS;
CP::SysReadHandle< xAOD::IParticleContainer > m_muonsHandle
the muons handle
CP::SysReadHandle< xAOD::MissingETContainer > m_metHandle
the MET handle
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
CP::SysReadSelectionHandle m_preselection
the preselection
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
virtual StatusCode initialize() override
void setBool(const SG::AuxElement &element, bool selection, const CP::SystematicSet &sys) const
set the selection decoration
Gaudi::Property< std::string > m_metTerm
the MET term
::StatusCode initialize()
intialize this property
bool getBool(const SG::AuxElement &element, const CP::SystematicSet &sys) const
get the selection as a bool
CP::SysListHandle m_systematicsList
the systematics
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
::StatusCode StatusCode
StatusCode definition for legacy code.
CP::SysReadSelectionHandle m_electronSelection
the electron selection
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
Gaudi::Property< std::string > m_sign
the comparison (GT, LT, etc)
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
TransverseMassSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Container for xAOD::MissingET_v1 objects.
CP::SysReadSelectionHandle m_muonSelection
the muon selection
Class describing the basic event information.
Gaudi::Property< float > m_mwtref
the MWT cut against which to compare
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
virtual StatusCode execute() override
CP::SysReadHandle< xAOD::IParticleContainer > m_electronsHandle
the electron handle
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor