|
ATLAS Offline Software
|
Go to the documentation of this file.
24 ISvcLocator* pSvcLocator)
33 return StatusCode::SUCCESS;
43 for (
size_t i = 0;
i <
sz; ++
i, ++
it) {
46 for (; cit != cit_end; ++cit)
47 tows[
i].push_back (std::make_pair (cit.
hash(), cit.
weight()));
60 for (
size_t i = 0;
i <
sz; ++
i, ++
it) {
61 size_t itower =
it.itower();
64 for (; cit != cit_end; ++cit)
65 tows[itower].push_back (std::make_pair (cit.
hash(), cit.
weight()));
73 for (
size_t i = 0;
i <
t.size();
i++) {
75 std::cout <<
" " <<
i <<
": ";
76 for (
size_t j = 0; j <
tt.size(); j++)
85 const std::vector<CaloCell_ID::SUBCALO>& calos,
94 assert (subseg.
size() == store2.
size());
102 assert (tows_full == tows_subseg);
108 std::cout <<
"test1\n";
112 if(!caloMgrHandle.isValid()) std::abort();
117 std::vector<CaloCell_ID::SUBCALO> calos;
122 if (!
store.buildLookUp (*caloDDM, seg, calos)) {
140 return StatusCode::SUCCESS;
Iterator over a rectangular window of towers.
std::vector< test_tow_t > test_tows_t
virtual StatusCode execute() override
Standard Gaudi execute method.
static void iterate_subseg(const CaloTowerStore &store, const CaloTowerSeg::SubSeg &subseg, test_tows_t &tows)
A rectangular window within the segmentation.
::StatusCode StatusCode
StatusCode definition for legacy code.
static void iterate_full(const CaloTowerStore &store, test_tows_t &tows)
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
virtual StatusCode initialize() override
Standard Gaudi initialize method.
static void dump_tows(const test_tows_t &t)
StatusCode initialize(bool used=true)
static void test_subseg_iter(const CaloDetDescrManager *, const CaloTowerStore &, const std::vector< CaloCell_ID::SUBCALO > &, const CaloTowerSeg::SubSeg &)
CaloTowerSeg segmentation() const
Return a new segmentation object corresponding to this window.
CaloTowerStoreTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
This class provides the client interface for accessing the detector description information common to...
Regression test for CaloTowerStore.
Data object stores CaloTower segmentation.
size_t size() const
The number of towers in this window.
std::vector< std::pair< unsigned, double > > test_tow_t
bool buildLookUp(const CaloDetDescrManager &theManager, const CaloTowerSeg &theTowerSeg, const std::vector< CaloCell_ID::SUBCALO > &theCalos)
setup trigger
SubSeg subseg(double eta, double deta, double phi, double dphi) const
Return a window within the current segmentation.