ATLAS Offline Software
Loading...
Searching...
No Matches
LArFCalTowerStore.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARRECUTILS_LARFCALTOWERSTORE_H
6#define LARRECUTILS_LARFCALTOWERSTORE_H
24
25
26// include header files
28
29#include "CaloEvent/CaloTower.h"
30#include "CaloEvent/CaloTowerContainer.h"
31
32#include <map>
33#include <vector>
34
36
38{
39 public:
40 typedef std::vector<std::pair<unsigned int,double> > tower_data_t;
41 typedef tower_data_t::const_iterator cell_iterator;
42 typedef std::vector<tower_data_t> tower_table_t;
43
46
49
50 typedef tower_table_t::const_iterator tower_iterator;
52
53 tower_iterator towers() const { return m_TTCmatrix.begin(); }
54
67
68
70 cell_iterator firstCellofTower(tower_iterator t) const { return t->begin(); }
71 cell_iterator lastCellofTower (tower_iterator t) const { return t->end(); }
72 unsigned int towerSize(tower_iterator t) const {return t->size();}
73
75 bool buildLookUp(const CaloCell_ID& cellIdHelper,
76 const CaloDetDescrManager& theManager,
77 CaloTowerContainer* theTowers);
78
80 size_t size() const { return m_TTCmatrix.size(); }
81
82 private:
83
84 std::vector<unsigned int> m_ndxFCal;
85 std::vector<unsigned int> m_ndyFCal;
86
89
90 tower_table_t m_TTCmatrix; // vector of cell indices for each tower.
91};
92#endif
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
This class provides the client interface for accessing the detector description information common to...
Storable container class for CaloTower.
Iterator over a rectangular window of towers.
A rectangular window within the segmentation.
LArFCalTowerStore()
constructor
tower_iterator towers() const
bool buildLookUp(const CaloCell_ID &cellIdHelper, const CaloDetDescrManager &theManager, CaloTowerContainer *theTowers)
setup trigger
std::vector< std::pair< unsigned int, double > > tower_data_t
std::vector< unsigned int > m_ndxFCal
cell_iterator firstCellofTower(tower_iterator t) const
iterators: cells
std::vector< tower_data_t > tower_table_t
CaloTowerSeg::SubSegIterator< tower_iterator > tower_subseg_iterator
cell_iterator lastCellofTower(tower_iterator t) const
tower_table_t::const_iterator tower_iterator
tower_table_t m_TTCmatrix
size_t size() const
size of internal data store
tower_data_t::const_iterator cell_iterator
std::vector< unsigned int > m_ndyFCal
~LArFCalTowerStore()
destructor
unsigned int towerSize(tower_iterator t) const