ATLAS Offline Software
CalibrationHitMerger.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARG4SD_CALIBRATIONHITMERGER_H
6 #define LARG4SD_CALIBRATIONHITMERGER_H 1
7 
8 // STL includes
9 #include <set>
10 #include <string>
11 #include <vector>
12 
13 // Framework includes
18 
19 namespace LArG4 {
20 
26  class CalibrationHitMerger final : public AthAlgorithm {
27 
28  public:
30  CalibrationHitMerger( const std::string& name, ISvcLocator* pSvcLocator );
31 
33  virtual ~CalibrationHitMerger() = default;
34 
36  virtual StatusCode initialize() override final;
37  virtual StatusCode execute() override final;
38 
39  private:
40  class LessHit {
41  public:
42  // Allow a lookup in a calibrationHits_t using a const pointer.
43  using is_transparent = std::true_type;
44  bool operator() ( const CaloCalibrationHit* p, const CaloCalibrationHit* q ) const
45  {
46  return p->Less(q);
47  }
48  };
49  typedef std::set< CaloCalibrationHit*, LessHit > calibrationHits_t;
50 
53 
54  SG::ReadHandleKeyArray<CaloCalibrationHitContainer> m_inputHits{this, "InputHits", {}, "Input collection ReadHandleKeys"};
55 
56  SG::WriteHandleKey<CaloCalibrationHitContainer> m_outputHits{this, "OutputHits", "", "Output collection WriteHandleKeys"};
57  };
58 
59 }
60 
61 #endif //> !LARG4SD_CALIBRATIONHITMERGER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
LArG4::CalibrationHitMerger::~CalibrationHitMerger
virtual ~CalibrationHitMerger()=default
Destructor.
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
LArG4::CalibrationHitMerger::m_outputHits
SG::WriteHandleKey< CaloCalibrationHitContainer > m_outputHits
Definition: CalibrationHitMerger.h:56
LArG4
Definition: LArWheelCalculatorEnums.h:8
CaloCalibrationHitContainer.h
LArG4::CalibrationHitMerger::LessHit
Definition: CalibrationHitMerger.h:40
AthAlgorithm.h
LArG4::CalibrationHitMerger::CalibrationHitMerger
CalibrationHitMerger(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: CalibrationHitMerger.cxx:8
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LArG4::CalibrationHitMerger::execute
virtual StatusCode execute() override final
Athena Algorithm execute.
Definition: CalibrationHitMerger.cxx:22
SG::WriteHandleKey< CaloCalibrationHitContainer >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArG4::CalibrationHitMerger::initializeVarHandleKey
StatusCode initializeVarHandleKey(SG::VarHandleKey &varHandleKey) const
Initialize the given VarHandleKey.
LArG4::CalibrationHitMerger::m_inputHits
SG::ReadHandleKeyArray< CaloCalibrationHitContainer > m_inputHits
Definition: CalibrationHitMerger.h:54
LArG4::CalibrationHitMerger::calibrationHits_t
std::set< CaloCalibrationHit *, LessHit > calibrationHits_t
Definition: CalibrationHitMerger.h:49
AthAlgorithm
Definition: AthAlgorithm.h:47
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
CaloCalibrationHit
Class to store calorimeter calibration hit.
Definition: CaloCalibrationHit.h:23
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::VarHandleKey
A property holding a SG store/key/clid from which a VarHandle is made.
Definition: StoreGate/StoreGate/VarHandleKey.h:62
LArG4::CalibrationHitMerger
Athena Algorithm that merges a given set of CaloCalibrationHitContainers into a single CaloCalibratio...
Definition: CalibrationHitMerger.h:26
LArG4::CalibrationHitMerger::LessHit::is_transparent
std::true_type is_transparent
Definition: CalibrationHitMerger.h:43
LArG4::CalibrationHitMerger::initialize
virtual StatusCode initialize() override final
Athena algorithm's interface methods.
Definition: CalibrationHitMerger.cxx:13
extractSporadic.q
list q
Definition: extractSporadic.py:98