ATLAS Offline Software
Loading...
Searching...
No Matches
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$
14
15#ifndef CALOUTILS_CALOTOWERSTORETESTALG_H
16#define CALOUTILS_CALOTOWERSTORETESTALG_H
17
18
23
25 : public AthAlgorithm
26{
27public:
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
49private:
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>&,
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
Definition of CaloDetDescrManager.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
This class provides the client interface for accessing the detector description information common to...
A rectangular window within the segmentation.
CaloTowerStoreTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
std::vector< std::pair< unsigned, double > > test_tow_t
virtual StatusCode execute() override
Standard Gaudi execute method.
static void dump_tows(const test_tows_t &t)
static void iterate_subseg(const CaloTowerStore &store, const CaloTowerSeg::SubSeg &subseg, test_tows_t &tows)
static void test_subseg_iter(const CaloDetDescrManager *, const CaloTowerStore &, const std::vector< CaloCell_ID::SUBCALO > &, const CaloTowerSeg::SubSeg &)
static void iterate_full(const CaloTowerStore &store, test_tows_t &tows)
std::vector< test_tow_t > test_tows_t
virtual StatusCode initialize() override
Standard Gaudi initialize method.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey