ATLAS Offline Software
LArCellBinning.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 // ***********************************************************
7 //
8 // CaloCellbinning - class to hold granularity info
9 // for cellbinnings of the Calorimeter. To be used with
10 // CaloCellVecMon class
11 //
12 // ***********************************************************
13 
14 #ifndef LAR_CELLBINNING_H
15 #define LAR_CELLBINNING_H
16 
17 #include <vector>
18 
19 namespace CaloMonitoring {
20 
22 
23  public:
25  ~LArCellBinning() = default;
26 
27  //Getters
28  int getNTotEtaBins() const { return m_etaBinArray.size()-1; };
29  int getNTotPhiBins() const { return m_phiBinArray.size()-1; };
30  const double* getEtaBinArray() const { return m_etaBinArray.data(); };
31  const double* getPhiBinArray() const { return m_phiBinArray.data(); };
32 
33  // Binning - creates variable sized bin arrays
34  void doEtaBinning(const int nEtaRegions, const double* etaBreakPts, const int* nEtaBins);
35  void doPhiBinning(const int nPhiRegions, const double* phiBreakPts, const int* nPhiBins);
36 
37  // Binning for phi for the common case with only one granularity region
39 
40 
42 
43  private:
44  std::vector<double> m_etaBinArray;
45  std::vector<double> m_phiBinArray;
46  };
47 }
48 
49 #endif // LAr_CELLBINNING_H
CaloMonitoring::LArCellBinning::~LArCellBinning
~LArCellBinning()=default
TCS::KFMET::nEtaBins
constexpr unsigned nEtaBins
Definition: KalmanMETCorrectionConstants.h:18
CaloMonitoring::LArCellBinning::doPhiBinning
void doPhiBinning(int nPhiBins)
CaloMonitoring::LArCellBinning::m_phiBinArray
std::vector< double > m_phiBinArray
Definition: LArCellBinning.h:45
CaloMonitoring::LArCellBinning::LArCellBinning
LArCellBinning()
Definition: LArCellBinning.h:24
LArCellBinning
Definition: LArCellBinning.py:1
CaloMonitoring::LArCellBinning::getPhiBinArray
const double * getPhiBinArray() const
Definition: LArCellBinning.h:31
CaloMonitoring::LArCellBinning::doPhiBinning
void doPhiBinning(const int nPhiRegions, const double *phiBreakPts, const int *nPhiBins)
CaloMonitoring::LArCellBinning::getEtaBinArray
const double * getEtaBinArray() const
Definition: LArCellBinning.h:30
CaloMonitoring
Definition: LArCellBinning.h:19
CaloMonitoring::LArCellBinning::getNTotEtaBins
int getNTotEtaBins() const
Definition: LArCellBinning.h:28
CaloMonitoring::LArCellBinning::doEtaBinning
void doEtaBinning(const int nEtaRegions, const double *etaBreakPts, const int *nEtaBins)
CaloMonitoring::LArCellBinning::m_etaBinArray
std::vector< double > m_etaBinArray
Definition: LArCellBinning.h:44
CaloMonitoring::LArCellBinning::etaMirror
LArCellBinning etaMirror() const
CaloMonitoring::LArCellBinning::getNTotPhiBins
int getNTotPhiBins() const
Definition: LArCellBinning.h:29
PUfitVar::nPhiBins
constexpr std::size_t nPhiBins
Definition: GepMETPufitAlg.cxx:20