CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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;
22 };
23 
25  static constexpr float tileSize = 0.15f;
26  static constexpr float minDim1 = -3.f;
27  static constexpr float maxDim1 = 3.f;
28  static constexpr float minDim2 = -3.f;
29  static constexpr float maxDim2 = 3.f;
31  static constexpr int nRows = reco::ceil(2. * M_PI / tileSize);
32  static constexpr int nTiles = nColumns * nRows;
33 };
34 
35 #endif
constexpr int32_t ceil(float num)
static constexpr float maxDim2
static constexpr float minDim2
static constexpr float minDim1
static constexpr int nColumns
static constexpr int nTiles
#define M_PI
static constexpr float tileSize
static constexpr int nRows
static constexpr float maxDim1