ATLAS Offline Software
CaloBCIDAvgAlg.h
Go to the documentation of this file.
1 //Dear emacs, this is -*-c++-*-
2 /*
3  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 #ifndef CALOREC_CALOBCIDAVGALG_H
7 #define CALOREC_CALOBCIDAVGALG_H
8 
10 #include "GaudiKernel/ToolHandle.h"
11 #include "StoreGate/ReadHandle.h"
12 #include "StoreGate/WriteHandle.h"
18 
20 public:
21 
22  // constructor
24 
25  // Algorithm virtual methods
26  virtual StatusCode initialize() override;
27  virtual StatusCode execute(const EventContext& ctx) const override;
28  virtual StatusCode finalize() override;
29 
30 private:
31  //Event input: Only the BCID from Event Info
32  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this,"EventInfoKey","EventInfo","SG Key of EventInfo object"};
33 
34  //Event output: CaloBCIDAverage object
35  SG::WriteHandleKey<CaloBCIDAverage> m_bcidAvgKey{this,"WriteKey","CaloBCIDAverage","SG Key of resulting CaloBCIDAverage object"};
36 
37  //ConditionsInput
38  SG::ReadCondHandleKey<LArMCSym> m_mcSym{this,"MCSym","LArMCSym","SG Key of LArMCSym object"};
40  {this, "BCIDLumiKey", "CaloBCIDLumi", "SG Key of input CaloBCIDLumi conditions object"};
41 
43  Gaudi::Property<bool> m_isSC { this, "IsSuperCell",false,"Is SuperCell" };
44 
45  //Tool Handles:
46  // For online monitoring purposes
47  ToolHandle< GenericMonitoringTool > m_monTool { this, "MonTool", "", "Monitoring tool" };
48 };
49 
50 #endif
CaloBCIDAvgAlg::m_isSC
Gaudi::Property< bool > m_isSC
Property: m_isSC.
Definition: CaloBCIDAvgAlg.h:43
CaloBCIDAvgAlg::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: CaloBCIDAvgAlg.h:47
CaloBCIDAvgAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: CaloBCIDAvgAlg.cxx:30
CaloBCIDAvgAlg::m_bcidAvgKey
SG::WriteHandleKey< CaloBCIDAverage > m_bcidAvgKey
Definition: CaloBCIDAvgAlg.h:35
SG::ReadHandleKey< xAOD::EventInfo >
CaloBCIDAvgAlg::initialize
virtual StatusCode initialize() override
Definition: CaloBCIDAvgAlg.cxx:12
ReadCondHandle.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CaloBCIDAvgAlg
Definition: CaloBCIDAvgAlg.h:19
WriteHandle.h
Handle class for recording to StoreGate.
GenericMonitoringTool.h
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
SG::WriteHandleKey< CaloBCIDAverage >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloBCIDAvgAlg::finalize
virtual StatusCode finalize() override
Definition: CaloBCIDAvgAlg.cxx:24
CaloBCIDAvgAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: CaloBCIDAvgAlg.h:32
AthReentrantAlgorithm.h
CaloBCIDAvgAlg::m_bcidLumiKey
SG::ReadCondHandleKey< CaloBCIDLumi > m_bcidLumiKey
Definition: CaloBCIDAvgAlg.h:40
EventInfo.h
CaloBCIDAverage.h
SG::ReadCondHandleKey< LArMCSym >
ReadHandle.h
Handle class for reading from StoreGate.
CaloBCIDLumi.h
Luminosity-dependent pileup offset correction conditions object.
CaloBCIDAvgAlg::m_mcSym
SG::ReadCondHandleKey< LArMCSym > m_mcSym
Definition: CaloBCIDAvgAlg.h:38