|
|
Go to the documentation of this file.
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.) {}
82 : m_version(kAddedMHTPhi),
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;
381 for (
unsigned int i = 0;
i <
obj.numberGctCentralEtaBinsPerHalf(); ++
i) {
382 os <<
" bin " <<
i <<
": " <<
obj.etaBinLowEdge(
i) <<
" / " <<
obj.etaBinCenter(
i) <<
" / "
383 <<
obj.etaBinHighEdge(
i) << std::endl;
386 os <<
"Forward eta bins: low / center / high" << std::endl;
387 for (
unsigned int i = 0;
i <
obj.numberGctForwardEtaBinsPerHalf(); ++
i) {
388 os <<
" bin " <<
i <<
": " <<
obj.etaBinLowEdge(
i,
false) <<
" / " <<
obj.etaBinCenter(
i,
false) <<
" / "
389 <<
obj.etaBinHighEdge(
i,
false) << std::endl;
392 os <<
"Global eta bins: low / center / high" << std::endl;
393 for (
unsigned int i = 0;
i <
obj.numberGctCentralEtaBinsPerHalf() +
obj.numberGctForwardEtaBinsPerHalf(); ++
i) {
394 os <<
" bin " <<
i <<
": " <<
obj.globalEtaBinLowEdge(
i) <<
" / " <<
obj.globalEtaBinCenter(
i) <<
" / "
395 <<
obj.globalEtaBinHighEdge(
i) << std::endl;
398 os <<
"EM/jet phi bins: low / center / high" << std::endl;
399 for (
unsigned int i = 0;
i <
obj.numberGctEmJetPhiBins(); ++
i) {
400 os <<
" bin " <<
i <<
": " <<
obj.emJetPhiBinLowEdge(
i) <<
" / " <<
obj.emJetPhiBinCenter(
i) <<
" / "
401 <<
obj.emJetPhiBinHighEdge(
i) << std::endl;
404 os <<
"Et sum phi bins: low / center / high" << std::endl;
405 for (
unsigned int i = 0;
i <
obj.numberGctEtSumPhiBins(); ++
i) {
406 os <<
" bin " <<
i <<
": " <<
obj.etSumPhiBinLowEdge(
i) <<
" / " <<
obj.etSumPhiBinCenter(
i) <<
" / "
407 <<
obj.etSumPhiBinHighEdge(
i) << std::endl;
410 os <<
"Ht sum phi bins: low / center / high" << std::endl;
411 for (
unsigned int i = 0;
i <
obj.numberGctHtSumPhiBins(); ++
i) {
412 os <<
" bin " <<
i <<
": " <<
obj.htSumPhiBinLowEdge(
i) <<
" / " <<
obj.htSumPhiBinCenter(
i) <<
" / "
413 <<
obj.htSumPhiBinHighEdge(
i) << std::endl;
double htSumPhiBinCenter(unsigned int phiIndex) const
double emJetPhiBinHighEdge(unsigned int phiIndex) const
unsigned int m_numberGctEtSumPhiBins
double etSumPhiBinHighEdge(unsigned int phiIndex) const
double emJetPhiBinCenter(unsigned int phiIndex) const
double htSumPhiBinHighEdge(unsigned int phiIndex) const
double m_gctEmJetPhiBinWidth
double etaBinHighEdge(unsigned int etaIndex, bool central=true) const
double m_gctEtSumPhiOffset
unsigned int m_numberGctCentralEtaBinsPerHalf
double etSumPhiBinLowEdge(unsigned int phiIndex) const
virtual ~L1CaloGeometry()
numberGctCentralEtaBinsPerHalf
numberGctForwardEtaBinsPerHalf
double globalEtaBinLowEdge(unsigned int globalEtaIndex) const
unsigned int m_numberGctEmJetPhiBins
std::vector< double > m_gctEtaBinBoundaries
double m_gctHtSumPhiOffset
double m_gctHtSumPhiBinWidth
double etSumPhiBinCenter(unsigned int phiIndex) const
unsigned int m_etaBinsPerHalf
unsigned int emJetPhiIndex(const double &phiValue) const
double m_gctEtSumPhiBinWidth
unsigned int m_etaSignBitOffset
unsigned int m_numberGctHtSumPhiBins
double globalEtaBinHighEdge(unsigned int globalEtaIndex) const
unsigned int globalEtaIndex(const double &etaValue) const
std::ostream & operator<<(std::ostream &os, const L1CaloGeometry &obj)
double m_gctEmJetPhiOffset
double emJetPhiBinLowEdge(unsigned int phiIndex) const
double globalEtaBinCenter(unsigned int globalEtaIndex) const
double htSumPhiBinLowEdge(unsigned int phiIndex) const
unsigned int m_numberGctForwardEtaBinsPerHalf
unsigned int etaIndex(const double &etaValue) const
unsigned int numberGctHtSumPhiBins() const
unsigned int etSumPhiIndex(const double &phiValue) const
unsigned int htSumPhiIndex(const double &phiValue) const
double etaBinCenter(unsigned int etaIndex, bool central=true) const
double etaBinLowEdge(unsigned int etaIndex, bool central=true) const