ATLAS Offline Software
Loading...
Searching...
No Matches
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
19namespace 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
38 void doPhiBinning(int nPhiBins);
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
const double * getEtaBinArray() const
void doEtaBinning(const int nEtaRegions, const double *etaBreakPts, const int *nEtaBins)
void doPhiBinning(int nPhiBins)
std::vector< double > m_etaBinArray
const double * getPhiBinArray() const
void doPhiBinning(const int nPhiRegions, const double *phiBreakPts, const int *nPhiBins)
std::vector< double > m_phiBinArray
LArCellBinning etaMirror() const