ATLAS Offline Software
CaloTowerStoreTestAlg.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
15 #ifndef CALOUTILS_CALOTOWERSTORETESTALG_H
16 #define CALOUTILS_CALOTOWERSTORETESTALG_H
17 
18 
23 
25  : public AthAlgorithm
26 {
27 public:
31  CaloTowerStoreTestAlg (const std::string& name,
32  ISvcLocator* pSvcLocator);
33 
37  virtual StatusCode initialize() override;
38 
42  virtual StatusCode execute() override;
43 
44 
45  typedef std::vector<std::pair<unsigned, double> > test_tow_t;
46  typedef std::vector<test_tow_t> test_tows_t;
47  static void dump_tows (const test_tows_t& t);
48 
49 private:
50  static void iterate_full (const CaloTowerStore& store,
51  test_tows_t& tows);
52  static void iterate_subseg (const CaloTowerStore& store,
53  const CaloTowerSeg::SubSeg& subseg,
54  test_tows_t& tows);
55 
56  static void test_subseg_iter (const CaloDetDescrManager*,
57  const CaloTowerStore&,
58  const std::vector<CaloCell_ID::SUBCALO>&,
59  const CaloTowerSeg::SubSeg&);
60  void test1();
61 
63  , "CaloDetDescrManager"
64  , "CaloDetDescrManager"
65  , "SG Key for CaloDetDescrManager in the Condition Store" };
66 };
67 
68 
69 
70 
71 #endif // not CALOUTILS_CALOTOWERSTORETESTALG_H
SGTest::store
TestStore store
Definition: TestStore.cxx:23
CaloTowerStoreTestAlg::test_tows_t
std::vector< test_tow_t > test_tows_t
Definition: CaloTowerStoreTestAlg.h:46
CaloTowerStore.h
CaloTowerStoreTestAlg::execute
virtual StatusCode execute() override
Standard Gaudi execute method.
Definition: CaloTowerStoreTestAlg.cxx:137
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
CaloTowerStoreTestAlg
Definition: CaloTowerStoreTestAlg.h:26
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloTowerStoreTestAlg::iterate_subseg
static void iterate_subseg(const CaloTowerStore &store, const CaloTowerSeg::SubSeg &subseg, test_tows_t &tows)
Definition: CaloTowerStoreTestAlg.cxx:53
CaloTowerStoreTestAlg::test1
void test1()
Definition: CaloTowerStoreTestAlg.cxx:106
CaloTowerSeg::SubSeg
A rectangular window within the segmentation.
Definition: CaloTowerSeg.h:220
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloTowerStoreTestAlg::iterate_full
static void iterate_full(const CaloTowerStore &store, test_tows_t &tows)
Definition: CaloTowerStoreTestAlg.cxx:37
CaloTowerStoreTestAlg::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: CaloTowerStoreTestAlg.h:62
CaloTowerStoreTestAlg::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: CaloTowerStoreTestAlg.cxx:30
AthAlgorithm
Definition: AthAlgorithm.h:47
CaloTowerStore
Definition: CaloTowerStore.h:157
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloTowerStoreTestAlg::dump_tows
static void dump_tows(const test_tows_t &t)
Definition: CaloTowerStoreTestAlg.cxx:71
CaloTowerStoreTestAlg::test_subseg_iter
static void test_subseg_iter(const CaloDetDescrManager *, const CaloTowerStore &, const std::vector< CaloCell_ID::SUBCALO > &, const CaloTowerSeg::SubSeg &)
Definition: CaloTowerStoreTestAlg.cxx:83
SG::ReadCondHandleKey< CaloDetDescrManager >
CaloTowerStoreTestAlg::CaloTowerStoreTestAlg
CaloTowerStoreTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: CaloTowerStoreTestAlg.cxx:23
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
CaloTowerStoreTestAlg::test_tow_t
std::vector< std::pair< unsigned, double > > test_tow_t
Definition: CaloTowerStoreTestAlg.h:45