ATLAS Offline Software
METMonitorAlgorithm.h
Go to the documentation of this file.
1 /*
2  # Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef METMONITORALGORITHM_H
5 #define METMONITORALGORITHM_H
6 
7 
9 
10 #include "xAODJet/JetContainer.h"
11 
12 #include "StoreGate/ReadHandleKey.h"
13 
15 
16 // Jet cleaning
18 
20 public:
21  METMonitoringAlg( const std::string& name, ISvcLocator* pSvcLocator );
22  virtual ~METMonitoringAlg();
23  StatusCode initialize() override;
24  virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
25 
26 private:
27  SG::ReadHandleKey<xAOD::MissingETContainer> m_metContainerKey { this, "METContainer", "MET_Reference_AntiKt4EMTopo", "Name of MET container" };
28  SG::ReadHandleKey<xAOD::MissingETContainer> m_metCaloContainerKey { this, "METCaloContainer", "MET_Calo", "Name of METCalo container" };
29  SG::ReadHandleKey<xAOD::MissingETContainer> m_metAKt4EMTopoContainerKey { this, "METAntiKt4EMTopoContainer", "MET_Reference_AntiKt4EMTopo", "Name of MET container" };
30 
31 
32  Gaudi::Property<std::string> m_metTotalKey { this, "metTotalKey", "FinalTrk", "Subkey for total MET" };
33 
34  SG::ReadHandleKey<xAOD::JetContainer> m_jetContainerKey {this,"JetContainerName","AntiKt4EMTopoJets","jet container name"};
35 
36 
37  Gaudi::Property<std::vector<std::string>> m_calStrings {this, "METCaloKeys", {}, "MET calo components to plot" };
38 
39 
40  Gaudi::Property<std::vector<std::string>> m_metKeys {this,"metKeys",{ }, "MET components to plot"};
41 
42  Gaudi::Property<bool> m_alltrigger {this,"alltrigger",false};
43  Gaudi::Property<bool> m_dometcut {this,"dometcut",false};
44  Gaudi::Property<bool> m_doBadJets {this,"DoBadJets",false};
45  Gaudi::Property<double> m_metcut {this,"metcut", 80.};
46  Gaudi::Property<bool> m_dotrig {this,"dotrigger",false};
47  Gaudi::Property<bool> m_doJetCleaning{this, "DoJetCleaning", false, ""};
48  ToolHandle<IJetSelector> m_jetCleaningTool{this, "JetCleaningTool", "", ""};
49  bool isGoodEvent( const EventContext& ctx ) const;
50 
51 };
52 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
METMonitoringAlg::METMonitoringAlg
METMonitoringAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: METMonitorAlgorithm.cxx:38
METMonitoringAlg::~METMonitoringAlg
virtual ~METMonitoringAlg()
Definition: METMonitorAlgorithm.cxx:43
METMonitoringAlg::isGoodEvent
bool isGoodEvent(const EventContext &ctx) const
Definition: METMonitorAlgorithm.cxx:193
METMonitoringAlg::m_metTotalKey
Gaudi::Property< std::string > m_metTotalKey
Definition: METMonitorAlgorithm.h:32
METMonitoringAlg::m_dotrig
Gaudi::Property< bool > m_dotrig
Definition: METMonitorAlgorithm.h:46
METMonitoringAlg::m_metcut
Gaudi::Property< double > m_metcut
Definition: METMonitorAlgorithm.h:45
METMonitoringAlg::m_metKeys
Gaudi::Property< std::vector< std::string > > m_metKeys
Definition: METMonitorAlgorithm.h:40
IJetSelector.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
METMonitoringAlg::m_metContainerKey
SG::ReadHandleKey< xAOD::MissingETContainer > m_metContainerKey
Definition: METMonitorAlgorithm.h:27
METMonitoringAlg::initialize
StatusCode initialize() override
initialize
Definition: METMonitorAlgorithm.cxx:45
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
METMonitoringAlg::m_doJetCleaning
Gaudi::Property< bool > m_doJetCleaning
Definition: METMonitorAlgorithm.h:47
METMonitoringAlg::m_metAKt4EMTopoContainerKey
SG::ReadHandleKey< xAOD::MissingETContainer > m_metAKt4EMTopoContainerKey
Definition: METMonitorAlgorithm.h:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
METMonitoringAlg::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: METMonitorAlgorithm.cxx:77
METMonitoringAlg::m_doBadJets
Gaudi::Property< bool > m_doBadJets
Definition: METMonitorAlgorithm.h:44
METMonitoringAlg::m_jetCleaningTool
ToolHandle< IJetSelector > m_jetCleaningTool
Definition: METMonitorAlgorithm.h:48
METMonitoringAlg::m_metCaloContainerKey
SG::ReadHandleKey< xAOD::MissingETContainer > m_metCaloContainerKey
Definition: METMonitorAlgorithm.h:28
METMonitoringAlg::m_calStrings
Gaudi::Property< std::vector< std::string > > m_calStrings
Definition: METMonitorAlgorithm.h:37
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
METMonitoringAlg
Definition: METMonitorAlgorithm.h:19
JetContainer.h
METMonitoringAlg::m_dometcut
Gaudi::Property< bool > m_dometcut
Definition: METMonitorAlgorithm.h:43
METMonitoringAlg::m_jetContainerKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerKey
Definition: METMonitorAlgorithm.h:34
METMonitoringAlg::m_alltrigger
Gaudi::Property< bool > m_alltrigger
Definition: METMonitorAlgorithm.h:42
MissingETContainer.h