CMS 3D CMS Logo

HGCalTilesConstants.h
Go to the documentation of this file.
1 
2 // Authors: Felice Pantaleo - felice.pantaleo@cern.ch
3 // Date: 03/2019
4 
5 #ifndef RecoLocalCalo_HGCalRecProducer_HGCalTilesConstants_h
6 #define RecoLocalCalo_HGCalRecProducer_HGCalTilesConstants_h
7 
9 #include <cmath>
10 #include <cstdint>
11 #include <array>
12 
14  static constexpr float tileSize = 5.f;
15  static constexpr float minDim1 = -285.f;
16  static constexpr float maxDim1 = 285.f;
17  static constexpr float minDim2 = -285.f;
18  static constexpr float maxDim2 = 285.f;
21  static constexpr int nTiles = nColumns * nRows;
24  static constexpr int maxTileDepth = 64; // For accelerators.
25 };
26 
28  static constexpr float tileSize = 0.15f;
29  static constexpr float minDim1 = -3.f;
30  static constexpr float maxDim1 = 3.f;
31  static constexpr float minDim2 = -3.f;
32  static constexpr float maxDim2 = 3.f;
34  static constexpr int nRows = reco::ceil(2. * M_PI / tileSize);
35  static constexpr int nTiles = nColumns * nRows;
38  static constexpr int maxTileDepth = 32; // For accelerators.
39 };
40 
41 #endif
constexpr int32_t ceil(float num)
static constexpr float invDim2BinSize
static constexpr float maxDim2
static constexpr float minDim2
static constexpr float minDim1
static constexpr float invDim1BinSize
static constexpr int nColumns
static constexpr float invDim1BinSize
static constexpr int nTiles
#define M_PI
static constexpr float invDim2BinSize
static constexpr float tileSize
static constexpr int maxTileDepth
static constexpr int nRows
static constexpr float maxDim1