57 m_numberGctEmJetPhiBins(0),
58 m_numberGctEtSumPhiBins(0),
59 m_numberGctHtSumPhiBins(0),
60 m_numberGctCentralEtaBinsPerHalf(0),
61 m_numberGctForwardEtaBinsPerHalf(0),
62 m_etaSignBitOffset(0),
63 m_gctEtaBinBoundaries(),
65 m_gctEmJetPhiBinWidth(0.),
66 m_gctEtSumPhiBinWidth(0.),
67 m_gctHtSumPhiBinWidth(0.),
68 m_gctEmJetPhiOffset(0.),
69 m_gctEtSumPhiOffset(0.),
70 m_gctHtSumPhiOffset(0.) {}
73 double gctEmJetPhiBinOffset,
74 unsigned int numberGctEtSumPhiBins,
75 double gctEtSumPhiBinOffset,
76 unsigned int numberGctHtSumPhiBins,
77 double gctHtSumPhiBinOffset,
78 unsigned int numberGctCentralEtaBinsPerHalf,
79 unsigned int numberGctForwardEtaBinsPerHalf,
80 unsigned int etaSignBitOffset,
81 const std::vector<double>& gctEtaBinBoundaries)
82 : m_version(kAddedMHTPhi),
83 m_numberGctEmJetPhiBins(numberGctEmJetPhiBins),
84 m_numberGctEtSumPhiBins(numberGctEtSumPhiBins),
85 m_numberGctHtSumPhiBins(numberGctHtSumPhiBins),
86 m_numberGctCentralEtaBinsPerHalf(numberGctCentralEtaBinsPerHalf),
87 m_numberGctForwardEtaBinsPerHalf(numberGctForwardEtaBinsPerHalf),
88 m_etaSignBitOffset(etaSignBitOffset),
89 m_gctEtaBinBoundaries(gctEtaBinBoundaries) {
318 if (phiAdjusted < 0.) {
320 phiAdjusted += 2. *
M_PI;
321 }
while (phiAdjusted < 0.);
322 }
else if (phiAdjusted > 2. *
M_PI) {
324 phiAdjusted -= 2. *
M_PI;
325 }
while (phiAdjusted > 2. *
M_PI);
335 if (phiAdjusted < 0.) {
337 phiAdjusted += 2. *
M_PI;
338 }
while (phiAdjusted < 0.);
339 }
else if (phiAdjusted > 2. *
M_PI) {
341 phiAdjusted -= 2. *
M_PI;
342 }
while (phiAdjusted > 2. *
M_PI);
352 if (phiAdjusted < 0.) {
354 phiAdjusted += 2. *
M_PI;
355 }
while (phiAdjusted < 0.);
356 }
else if (phiAdjusted > 2. *
M_PI) {
358 phiAdjusted -= 2. *
M_PI;
359 }
while (phiAdjusted > 2. *
M_PI);
378 os <<
"L1CaloGeometry:" << std::endl;
380 os <<
"Central/tau eta bins: low / center / high" << std::endl;
386 os <<
"Forward eta bins: low / center / high" << std::endl;
392 os <<
"Global eta bins: low / center / high" << std::endl;
398 os <<
"EM/jet phi bins: low / center / high" << std::endl;
404 os <<
"Et sum phi bins: low / center / high" << std::endl;
410 os <<
"Ht sum phi bins: low / center / high" << std::endl;
double globalEtaBinLowEdge(unsigned int globalEtaIndex) const
unsigned int numberGctForwardEtaBinsPerHalf() const
double etaBinHighEdge(unsigned int etaIndex, bool central=true) const
unsigned int numberGctHtSumPhiBins() const
double etaBinLowEdge(unsigned int etaIndex, bool central=true) const
double htSumPhiBinLowEdge(unsigned int phiIndex) const
unsigned int numberGctEtSumPhiBins() const
unsigned int m_numberGctEtSumPhiBins
virtual ~L1CaloGeometry()
double m_gctEmJetPhiBinWidth
unsigned int numberGctEmJetPhiBins() const
double m_gctEtSumPhiOffset
std::ostream & operator<<(std::ostream &out, const ALILine &li)
double etaBinCenter(unsigned int etaIndex, bool central=true) const
unsigned int numberGctCentralEtaBinsPerHalf() const
unsigned int htSumPhiIndex(const double &phiValue) const
double m_gctHtSumPhiOffset
unsigned int m_numberGctCentralEtaBinsPerHalf
std::vector< double > m_gctEtaBinBoundaries
unsigned int m_numberGctEmJetPhiBins
double m_gctEmJetPhiOffset
double htSumPhiBinCenter(unsigned int phiIndex) const
unsigned int etSumPhiIndex(const double &phiValue) const
double m_gctHtSumPhiBinWidth
double m_gctEtSumPhiBinWidth
unsigned int emJetPhiIndex(const double &phiValue) const
double globalEtaBinCenter(unsigned int globalEtaIndex) const
double globalEtaBinHighEdge(unsigned int globalEtaIndex) const
double etSumPhiBinLowEdge(unsigned int phiIndex) const
unsigned int m_etaSignBitOffset
unsigned int m_etaBinsPerHalf
unsigned int m_numberGctHtSumPhiBins
unsigned int m_numberGctForwardEtaBinsPerHalf
double emJetPhiBinCenter(unsigned int phiIndex) const
double emJetPhiBinLowEdge(unsigned int phiIndex) const
double htSumPhiBinHighEdge(unsigned int phiIndex) const
unsigned int globalEtaIndex(const double &etaValue) const
double etSumPhiBinCenter(unsigned int phiIndex) const
double emJetPhiBinHighEdge(unsigned int phiIndex) const
double etSumPhiBinHighEdge(unsigned int phiIndex) const
unsigned int etaIndex(const double &etaValue) const