ATLAS Offline Software
Loading...
Searching...
No Matches
MetSignificanceAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8
9//
10// includes
11//
12
14
17
18//
19// method implementations
20//
21namespace CP
22{
23
42
43
44
45 StatusCode MetSignificanceAlg ::
46 execute ()
47 {
48 for (const auto& sys : m_systematicsList.systematicsVector())
49 {
50 // I'm not sure why this can't be const, but the interface
51 // requires a non-const object
53 ANA_CHECK (m_metHandle.getCopy (met, sys));
54
55 const xAOD::EventInfo* evtInfo = 0;
56 ANA_CHECK( evtStore()->retrieve( evtInfo, "EventInfo" ) );
57
59
60 m_significanceDecorHandle.set(*(*met)[m_totalMETName], m_significanceTool->GetSignificance(), sys);
61
62 if (!m_sigDirectionalDecorHandle.empty())
63 m_sigDirectionalDecorHandle.set(*(*met)[m_totalMETName], m_significanceTool->GetSigDirectional(), sys);
64
66 m_metOverSqrtSumETDecorHandle.set(*(*met)[m_totalMETName], m_significanceTool->GetMETOverSqrtSumET(), sys);
67
68 if (!m_metOverSqrtHTDecorHandle.empty())
69 m_metOverSqrtHTDecorHandle.set(*(*met)[m_totalMETName], m_significanceTool->GetMETOverSqrtHT(), sys);
70 }
71
72 return StatusCode::SUCCESS;
73 }
74}
#define ANA_CHECK(EXP)
check whether the given expression was successful
ToolHandle< IMETSignificance > m_significanceTool
the smearing tool
Gaudi::Property< std::string > m_totalMETName
the key for the final met term
SysListHandle m_systematicsList
the systematics list we run
CP::SysWriteDecorHandle< float > m_sigDirectionalDecorHandle
the decoration for the directional significance
CP::SysWriteDecorHandle< float > m_significanceDecorHandle
the decoration for the significance
Gaudi::Property< std::string > m_softTermName
the key for the soft term
SysCopyHandle< xAOD::MissingETContainer > m_metHandle
the met collection we run on
Gaudi::Property< std::string > m_jetTermName
the key for the jets term
CP::SysWriteDecorHandle< float > m_metOverSqrtHTDecorHandle
the decoration for the METOverSqrtHT
CP::SysWriteDecorHandle< float > m_metOverSqrtSumETDecorHandle
the decoration for METOverSqrtSumET
StatusCode initialize() override
float averageInteractionsPerCrossing() const
Average interactions per crossing for all BCIDs - for out-of-time pile-up.
Select isolated Photons, Electrons and Muons.
EventInfo_v1 EventInfo
Definition of the latest event info version.