CMS 3D CMS Logo

HFNoseTilesConstants.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_HGCalRecProducer_HFNoseTilesConstants_h
2 #define RecoLocalCalo_HGCalRecProducer_HFNoseTilesConstants_h
3 
5 
6 #include <cstdint>
7 #include <array>
8 
10  // inner radius ~ 3cm , other radius ~ 110
11  static constexpr float tileSize = 5.f;
12  static constexpr float minX = -110.f;
13  static constexpr float maxX = 110.f;
14  static constexpr float minY = -110.f;
15  static constexpr float maxY = 110.f;
16  static constexpr int nColumns = reco::ceil((maxX - minX) / tileSize);
17  static constexpr int nRows = reco::ceil((maxY - minY) / tileSize);
18  static constexpr float tileSizeEtaPhi = 0.15f;
19  static constexpr float minEta = -4.2f;
20  static constexpr float maxEta = 4.2f;
21  //To properly construct search box for cells in phi=[-3.15,-3.] and [3.,3.15], cells in phi=[3.,3.15]
22  //are copied to the first bin and cells in phi=[-3.15,-3.] are copied to the last bin
23  static constexpr float minPhi = -3.3f;
24  static constexpr float maxPhi = 3.3f;
25  static constexpr int nColumnsEta = reco::ceil((maxEta - minEta) / tileSizeEtaPhi);
26  static constexpr int nRowsPhi = reco::ceil((maxPhi - minPhi) / tileSizeEtaPhi);
27  static constexpr int nTiles = nColumns * nRows + nColumnsEta * nRowsPhi;
28 };
29 
30 #endif
HFNoseTilesConstants::minEta
static constexpr float minEta
Definition: HFNoseTilesConstants.h:19
HFNoseTilesConstants::nColumnsEta
static constexpr int nColumnsEta
Definition: HFNoseTilesConstants.h:25
HFNoseTilesConstants
Definition: HFNoseTilesConstants.h:9
HFNoseTilesConstants::minPhi
static constexpr float minPhi
Definition: HFNoseTilesConstants.h:23
HFNoseTilesConstants::nTiles
static constexpr int nTiles
Definition: HFNoseTilesConstants.h:27
HFNoseTilesConstants::minX
static constexpr float minX
Definition: HFNoseTilesConstants.h:12
reco::ceil
constexpr int32_t ceil(float num)
Definition: constexpr_cmath.h:7
HFNoseTilesConstants::maxPhi
static constexpr float maxPhi
Definition: HFNoseTilesConstants.h:24
HFNoseTilesConstants::nColumns
static constexpr int nColumns
Definition: HFNoseTilesConstants.h:16
HFNoseTilesConstants::tileSize
static constexpr float tileSize
Definition: HFNoseTilesConstants.h:11
HFNoseTilesConstants::maxX
static constexpr float maxX
Definition: HFNoseTilesConstants.h:13
HFNoseTilesConstants::nRowsPhi
static constexpr int nRowsPhi
Definition: HFNoseTilesConstants.h:26
HFNoseTilesConstants::nRows
static constexpr int nRows
Definition: HFNoseTilesConstants.h:17
HFNoseTilesConstants::maxEta
static constexpr float maxEta
Definition: HFNoseTilesConstants.h:20
HFNoseTilesConstants::tileSizeEtaPhi
static constexpr float tileSizeEtaPhi
Definition: HFNoseTilesConstants.h:18
constexpr_cmath.h
HFNoseTilesConstants::minY
static constexpr float minY
Definition: HFNoseTilesConstants.h:14
HFNoseTilesConstants::maxY
static constexpr float maxY
Definition: HFNoseTilesConstants.h:15