ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloRec
src
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
19
#include "
AthenaBaseComps/AthAlgorithm.h
"
20
#include "
CaloUtils/CaloTowerStore.h
"
21
#include "
CaloDetDescr/CaloDetDescrManager.h
"
22
#include "
StoreGate/ReadCondHandleKey.h
"
23
24
class
CaloTowerStoreTestAlg
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
(
const
EventContext& ctx)
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
62
SG::ReadCondHandleKey<CaloDetDescrManager>
m_caloMgrKey
{ this
63
,
"CaloDetDescrManager"
64
,
"CaloDetDescrManager"
65
,
"SG Key for CaloDetDescrManager in the Condition Store"
};
66
};
67
68
69
70
71
#endif
// not CALOUTILS_CALOTOWERSTORETESTALG_H
AthAlgorithm.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloTowerStore.h
ReadCondHandleKey.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition
CaloDetDescrManager.h:469
CaloTowerSeg::SubSeg
A rectangular window within the segmentation.
Definition
CaloTowerSeg.h:202
CaloTowerStoreTestAlg::CaloTowerStoreTestAlg
CaloTowerStoreTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
CaloTowerStoreTestAlg.cxx:23
CaloTowerStoreTestAlg::test_tow_t
std::vector< std::pair< unsigned, double > > test_tow_t
Definition
CaloTowerStoreTestAlg.h:45
CaloTowerStoreTestAlg::dump_tows
static void dump_tows(const test_tows_t &t)
Definition
CaloTowerStoreTestAlg.cxx:71
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
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
CaloTowerStoreTestAlg::iterate_full
static void iterate_full(const CaloTowerStore &store, test_tows_t &tows)
Definition
CaloTowerStoreTestAlg.cxx:37
CaloTowerStoreTestAlg::test_tows_t
std::vector< test_tow_t > test_tows_t
Definition
CaloTowerStoreTestAlg.h:46
CaloTowerStoreTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Standard Gaudi execute method.
Definition
CaloTowerStoreTestAlg.cxx:137
CaloTowerStoreTestAlg::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition
CaloTowerStoreTestAlg.cxx:30
CaloTowerStoreTestAlg::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition
CaloTowerStoreTestAlg.h:62
CaloTowerStore
Definition
CaloTowerStore.h:157
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
Generated on
for ATLAS Offline Software by
1.17.0