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 <cstdint>
9 #include <array>
10 
12  static constexpr float tileSize = 5.f;
13  static constexpr float minX = -285.f;
14  static constexpr float maxX = 285.f;
15  static constexpr float minY = -285.f;
16  static constexpr float maxY = 285.f;
17  static constexpr int nColumns = reco::ceil((maxX - minX) / tileSize);
18  static constexpr int nRows = reco::ceil((maxY - minY) / tileSize);
19  static constexpr float tileSizeEtaPhi = 0.15f;
20  static constexpr float minEta = -3.f;
21  static constexpr float maxEta = 3.f;
22  //To properly construct search box for cells in phi=[-3.15,-3.] and [3.,3.15], cells in phi=[3.,3.15]
23  //are copied to the first bin and cells in phi=[-3.15,-3.] are copied to the last bin
24  static constexpr float minPhi = -3.3f;
25  static constexpr float maxPhi = 3.3f;
26  static constexpr int nColumnsEta = reco::ceil((maxEta - minEta) / tileSizeEtaPhi);
27  static constexpr int nRowsPhi = reco::ceil((maxPhi - minPhi) / tileSizeEtaPhi);
28  static constexpr int nTiles = nColumns * nRows + nColumnsEta * nRowsPhi;
29 };
30 
31 #endif
HGCalTilesConstants::minPhi
static constexpr float minPhi
Definition: HGCalTilesConstants.h:24
HGCalTilesConstants::maxX
static constexpr float maxX
Definition: HGCalTilesConstants.h:14
HGCalTilesConstants::nRows
static constexpr int nRows
Definition: HGCalTilesConstants.h:18
HGCalTilesConstants::nRowsPhi
static constexpr int nRowsPhi
Definition: HGCalTilesConstants.h:27
HGCalTilesConstants::minEta
static constexpr float minEta
Definition: HGCalTilesConstants.h:20
HGCalTilesConstants::minX
static constexpr float minX
Definition: HGCalTilesConstants.h:13
HGCalTilesConstants
Definition: HGCalTilesConstants.h:11
HGCalTilesConstants::maxEta
static constexpr float maxEta
Definition: HGCalTilesConstants.h:21
reco::ceil
constexpr int32_t ceil(float num)
Definition: constexpr_cmath.h:7
HGCalTilesConstants::maxPhi
static constexpr float maxPhi
Definition: HGCalTilesConstants.h:25
HGCalTilesConstants::minY
static constexpr float minY
Definition: HGCalTilesConstants.h:15
HGCalTilesConstants::tileSize
static constexpr float tileSize
Definition: HGCalTilesConstants.h:12
HGCalTilesConstants::nColumns
static constexpr int nColumns
Definition: HGCalTilesConstants.h:17
HGCalTilesConstants::nColumnsEta
static constexpr int nColumnsEta
Definition: HGCalTilesConstants.h:26
HGCalTilesConstants::nTiles
static constexpr int nTiles
Definition: HGCalTilesConstants.h:28
HGCalTilesConstants::tileSizeEtaPhi
static constexpr float tileSizeEtaPhi
Definition: HGCalTilesConstants.h:19
constexpr_cmath.h
HGCalTilesConstants::maxY
static constexpr float maxY
Definition: HGCalTilesConstants.h:16