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
15
16//
17// method implementations
18//
19namespace CP
20{
21
40
41
42
43 StatusCode MetSignificanceAlg ::
44 execute ()
45 {
46 for (const auto& sys : m_systematicsList.systematicsVector())
47 {
48 // I'm not sure why this can't be const, but the interface
49 // requires a non-const object
51 ANA_CHECK (m_metHandle.getCopy (met, sys));
52
53 const xAOD::EventInfo* evtInfo = 0;
54 ANA_CHECK( evtStore()->retrieve( evtInfo, "EventInfo" ) );
55
57
58 m_significanceDecorHandle.set(*(*met)[m_totalMETName], m_significanceTool->GetSignificance(), sys);
59
60 if (!m_sigDirectionalDecorHandle.empty())
61 m_sigDirectionalDecorHandle.set(*(*met)[m_totalMETName], m_significanceTool->GetSigDirectional(), sys);
62
64 m_metOverSqrtSumETDecorHandle.set(*(*met)[m_totalMETName], m_significanceTool->GetMETOverSqrtSumET(), sys);
65
66 if (!m_metOverSqrtHTDecorHandle.empty())
67 m_metOverSqrtHTDecorHandle.set(*(*met)[m_totalMETName], m_significanceTool->GetMETOverSqrtHT(), sys);
68 }
69
70 return StatusCode::SUCCESS;
71 }
72}
#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.