|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "Math/Vector4D.h"
10 using ROOT::Math::PtEtaPhiEVector;
15 :
EL::AnaAlgorithm(
name, pSvcLocator)
31 return StatusCode::SUCCESS;
57 PtEtaPhiEVector lepton0, lepton1;
58 int total_leptons = 0;
59 bool isfilled0(
false), isfilled1(
false);
65 lepton0.SetCoordinates(
el->pt(),
el->eta(),
el->phi(),
el->e());
67 }
else if (!isfilled1){
68 lepton1.SetCoordinates(
el->pt(),
el->eta(),
el->phi(),
el->e());
81 lepton0.SetCoordinates(
mu->pt(),
mu->eta(),
mu->phi(),
mu->e());
83 }
else if (!isfilled1){
84 lepton1.SetCoordinates(
mu->pt(),
mu->eta(),
mu->phi(),
mu->e());
93 if (total_leptons != 2){
94 ATH_MSG_ERROR(
"Exactly two leptons are required to compute the MLL!");
95 return StatusCode::FAILURE;
99 float mll = (lepton0 + lepton1).M();
105 return StatusCode::SUCCESS;
virtual StatusCode execute() override
CP::SysWriteSelectionHandle m_decoration
the output selection decoration
CP::SysReadSelectionHandle m_preselection
the preselection
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
SignEnum::ComparisonOperator m_signEnum
the operator version of the comparison (>, <, etc)
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
CP::SysReadHandle< xAOD::IParticleContainer > m_electronsHandle
the electrons handle
::StatusCode initialize()
intialize this property
bool getBool(const SG::AuxElement &element, const CP::SystematicSet &sys) const
get the selection as a bool
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< float > m_mllref
the 2-lepton mass against which to compare
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
Class describing the basic event information.
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
CP::SysReadSelectionHandle m_electronSelection
the electrons selection
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
CP::SysReadHandle< xAOD::IParticleContainer > m_muonsHandle
the muons handle
Gaudi::Property< std::string > m_sign
the comparison (GT, LT, etc)
DileptonInvariantMassSelectorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
CP::SysListHandle m_systematicsList
the systematics
virtual StatusCode initialize() override
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
CP::SysReadSelectionHandle m_muonSelection
the muons selection