4 #ifndef DataFormats_HGCalReco_TICLLayerTile_h
5 #define DataFormats_HGCalReco_TICLLayerTile_h
15 void fill(
double eta,
double phi,
unsigned int layerClusterId) {
21 static_assert(etaRange >= 0.
f);
37 int etaBinMin =
etaBin(etaMin);
38 int etaBinMax =
etaBin(etaMax);
39 int phiBinMin =
phiBin(phiMin);
40 int phiBinMax =
phiBin(phiMax);
41 return std::array<int, 4>({{etaBinMin, etaBinMax, phiBinMin, phiBinMax}});
50 for (
int j = 0;
j < nBins; ++
j)
54 const std::vector<unsigned int>&
operator[](
int globalBinId)
const {
return tile_[globalBinId]; }
57 std::array<std::vector<unsigned int>, T::nBins>
tile_;
62 using Tiles = std::array<TICLLayerTile, TileConstants::nLayers>;
66 using TilesHFNose = std::array<TICLLayerTileHFNose, TileConstantsHFNose::nLayers>;
void fill(double eta, double phi, unsigned int layerClusterId)
const auto & operator[](int index) const
std::array< TICLLayerTileHFNose, TileConstantsHFNose::iterations > TracksterTilesHFNose
constexpr T normalizedPhi(T phi)
int etaBin(float eta) const
int globalBin(int etaBin, int phiBin) const
std::array< TICLLayerTile, TileConstants::nLayers > Tiles
std::array< int, 4 > searchBoxEtaPhi(float etaMin, float etaMax, float phiMin, float phiMax) const
std::array< std::vector< unsigned int >, T::nBins > tile_
const std::vector< unsigned int > & operator[](int globalBinId) const
std::array< TICLLayerTile, TileConstants::iterations > TracksterTiles
Abs< T >::type abs(const T &t)
int phiBin(float phi) const
typename T::value_type::type constants_type_t
int globalBin(double eta, double phi) const
std::array< TICLLayerTileHFNose, TileConstantsHFNose::nLayers > TilesHFNose
void fill(int index, double eta, double phi, unsigned int objectId)