58 m_numberGctEmJetPhiBins( 0 ),
59 m_numberGctEtSumPhiBins( 0 ),
60 m_numberGctHtSumPhiBins( 0 ),
61 m_numberGctCentralEtaBinsPerHalf( 0 ),
62 m_numberGctForwardEtaBinsPerHalf( 0 ),
63 m_etaSignBitOffset( 0 ),
64 m_gctEtaBinBoundaries(),
65 m_etaBinsPerHalf( 0 ),
66 m_gctEmJetPhiBinWidth( 0. ),
67 m_gctEtSumPhiBinWidth( 0. ),
68 m_gctHtSumPhiBinWidth( 0. ),
69 m_gctEmJetPhiOffset( 0. ),
70 m_gctEtSumPhiOffset( 0. ),
71 m_gctHtSumPhiOffset( 0. )
76 double gctEmJetPhiBinOffset,
77 unsigned int numberGctEtSumPhiBins,
78 double gctEtSumPhiBinOffset,
79 unsigned int numberGctHtSumPhiBins,
80 double gctHtSumPhiBinOffset,
81 unsigned int numberGctCentralEtaBinsPerHalf,
82 unsigned int numberGctForwardEtaBinsPerHalf,
83 unsigned int etaSignBitOffset,
84 const std::vector<double>& gctEtaBinBoundaries)
85 : m_version( kAddedMHTPhi ),
86 m_numberGctEmJetPhiBins( numberGctEmJetPhiBins ),
87 m_numberGctEtSumPhiBins( numberGctEtSumPhiBins ),
88 m_numberGctHtSumPhiBins( numberGctHtSumPhiBins ),
89 m_numberGctCentralEtaBinsPerHalf( numberGctCentralEtaBinsPerHalf ),
90 m_numberGctForwardEtaBinsPerHalf( numberGctForwardEtaBinsPerHalf ),
91 m_etaSignBitOffset( etaSignBitOffset ),
92 m_gctEtaBinBoundaries( gctEtaBinBoundaries )
139 double etaSign = 1. ;
150 return 0.5 * etaSign *
159 double etaSign = 1. ;
170 return ( etaSign > 0. ?
179 double etaSign = 1. ;
190 return ( etaSign > 0. ?
201 double etaSign = 1. ;
216 return 0.5 * etaSign *
227 double etaSign = 1. ;
242 return ( etaSign > 0. ?
253 double etaSign = 1. ;
268 return ( etaSign > 0. ?
375 if( fabs( etaValue ) >=
425 if( phiAdjusted < 0. )
429 phiAdjusted += 2. *
M_PI ;
431 while( phiAdjusted < 0. ) ;
433 else if( phiAdjusted > 2. *
M_PI )
437 phiAdjusted -= 2. *
M_PI ;
439 while( phiAdjusted > 2. *
M_PI ) ;
451 if( phiAdjusted < 0. )
455 phiAdjusted += 2. *
M_PI ;
457 while( phiAdjusted < 0. ) ;
459 else if( phiAdjusted > 2. *
M_PI )
463 phiAdjusted -= 2. *
M_PI ;
465 while( phiAdjusted > 2. *
M_PI ) ;
477 if( phiAdjusted < 0. )
481 phiAdjusted += 2. *
M_PI ;
483 while( phiAdjusted < 0. ) ;
485 else if( phiAdjusted > 2. *
M_PI )
489 phiAdjusted -= 2. *
M_PI ;
491 while( phiAdjusted > 2. *
M_PI ) ;
519 os <<
"L1CaloGeometry:" << std::endl ;
521 os <<
"Central/tau eta bins: low / center / high" << std::endl ;
524 os <<
" bin " <<
i <<
": "
531 os <<
"Forward eta bins: low / center / high" << std::endl ;
534 os <<
" bin " <<
i <<
": "
541 os <<
"Global eta bins: low / center / high" << std::endl ;
545 os <<
" bin " <<
i <<
": "
552 os <<
"EM/jet phi bins: low / center / high" << std::endl ;
555 os <<
" bin " <<
i <<
": "
562 os <<
"Et sum phi bins: low / center / high" << std::endl ;
565 os <<
" bin " <<
i <<
": "
572 os <<
"Ht sum phi bins: low / center / high" << std::endl ;
575 os <<
" bin " <<
i <<
": "
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