CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
L1CaloGeometry.cc File Reference
#include <cmath>
#include "CondFormats/L1TObjects/interface/L1CaloGeometry.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const L1CaloGeometry &obj)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const L1CaloGeometry obj 
)

Definition at line 377 of file L1CaloGeometry.cc.

References L1CaloGeometry::emJetPhiBinCenter(), L1CaloGeometry::emJetPhiBinHighEdge(), L1CaloGeometry::emJetPhiBinLowEdge(), L1CaloGeometry::etaBinCenter(), L1CaloGeometry::etaBinHighEdge(), L1CaloGeometry::etaBinLowEdge(), L1CaloGeometry::etSumPhiBinCenter(), L1CaloGeometry::etSumPhiBinHighEdge(), L1CaloGeometry::etSumPhiBinLowEdge(), L1CaloGeometry::globalEtaBinCenter(), L1CaloGeometry::globalEtaBinHighEdge(), L1CaloGeometry::globalEtaBinLowEdge(), L1CaloGeometry::htSumPhiBinCenter(), L1CaloGeometry::htSumPhiBinHighEdge(), L1CaloGeometry::htSumPhiBinLowEdge(), mps_fire::i, L1CaloGeometry::numberGctCentralEtaBinsPerHalf(), L1CaloGeometry::numberGctEmJetPhiBins(), L1CaloGeometry::numberGctEtSumPhiBins(), L1CaloGeometry::numberGctForwardEtaBinsPerHalf(), and L1CaloGeometry::numberGctHtSumPhiBins().

377  {
378  os << "L1CaloGeometry:" << std::endl;
379 
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;
384  }
385 
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;
390  }
391 
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;
396  }
397 
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;
402  }
403 
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;
408  }
409 
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;
414  }
415 
416  return os;
417 }
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 numberGctEmJetPhiBins() const
double etaBinCenter(unsigned int etaIndex, bool central=true) const
unsigned int numberGctCentralEtaBinsPerHalf() const
double htSumPhiBinCenter(unsigned int phiIndex) const
double globalEtaBinCenter(unsigned int globalEtaIndex) const
double globalEtaBinHighEdge(unsigned int globalEtaIndex) const
double etSumPhiBinLowEdge(unsigned int phiIndex) const
double emJetPhiBinCenter(unsigned int phiIndex) const
double emJetPhiBinLowEdge(unsigned int phiIndex) const
double htSumPhiBinHighEdge(unsigned int phiIndex) const
double etSumPhiBinCenter(unsigned int phiIndex) const
double emJetPhiBinHighEdge(unsigned int phiIndex) const
double etSumPhiBinHighEdge(unsigned int phiIndex) const