CMS 3D CMS Logo

HGCalTilesConstants.h
Go to the documentation of this file.
1 // Authors: Felice Pantaleo - felice.pantaleo@cern.ch
2 // Date: 03/2019
3 
4 #ifndef RecoLocalCalo_HGCalRecProducer_HGCalTilesConstants_h
5 #define RecoLocalCalo_HGCalRecProducer_HGCalTilesConstants_h
6 
8 #include <cmath>
9 #include <cstdint>
10 #include <array>
11 
13  static constexpr float tileSize = 5.f;
14  static constexpr float minX = -285.f;
15  static constexpr float maxX = 285.f;
16  static constexpr float minY = -285.f;
17  static constexpr float maxY = 285.f;
18  static constexpr int nColumns = reco::ceil((maxX - minX) / tileSize);
19  static constexpr int nRows = reco::ceil((maxY - minY) / tileSize);
20  static constexpr float tileSizeEtaPhi = 0.15f;
21  static constexpr float minEta = -3.f;
22  static constexpr float maxEta = 3.f;
23  static constexpr int nColumnsEta = reco::ceil((maxEta - minEta) / tileSizeEtaPhi);
24  static constexpr int nRowsPhi = reco::ceil(2. * M_PI / tileSizeEtaPhi);
25  static constexpr int nTiles = nColumns * nRows + nColumnsEta * nRowsPhi;
26 };
27 
28 #endif
constexpr int32_t ceil(float num)
static constexpr float minEta
static constexpr float maxEta
static constexpr float minX
static constexpr float minY
static constexpr float maxY
static constexpr int nColumns
#define M_PI
static constexpr int nRowsPhi
static constexpr int nTiles
static constexpr float maxX
static constexpr float tileSize
static constexpr int nColumnsEta
static constexpr int nRows
static constexpr float tileSizeEtaPhi