CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
L1GctJetFinderParams.h File Reference
#include "CondFormats/Serialization/interface/Serializable.h"
#include <vector>
#include <stdint.h>
#include <iosfwd>

Go to the source code of this file.

Classes

class  L1GctJetFinderParams
 

Functions

std::ostream & operator<< (std::ostream &os, const L1GctJetFinderParams &fn)
 Overload << operator. More...
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const L1GctJetFinderParams fn 
)

Overload << operator.

Definition at line 341 of file L1GctJetFinderParams.cc.

References L1GctJetFinderParams::getCenForJetEtaBoundary(), L1GctJetFinderParams::getCenJetEtSeedGeV(), L1GctJetFinderParams::getCorrType(), L1GctJetFinderParams::getForJetEtSeedGeV(), L1GctJetFinderParams::getHtJetEtThresholdGeV(), L1GctJetFinderParams::getHtLsbGeV(), L1GctJetFinderParams::getJetCorrCoeffs(), L1GctJetFinderParams::getMHtJetEtThresholdGeV(), L1GctJetFinderParams::getRgnEtLsbGeV(), L1GctJetFinderParams::getTauCorrCoeffs(), L1GctJetFinderParams::getTauIsoEtThresholdGeV(), L1GctJetFinderParams::getTauJetEtSeedGeV(), i, and j.

342 {
343  // os << std::setprecision(2);
344 
345  os << "=== Level-1 GCT : Jet Finder Parameters ===" << std::endl;
346  os << "RCT region LSB : " << std::fixed << fn.getRgnEtLsbGeV() << " GeV" << std::endl;
347  os << "Central jet seed threshold : " << std::fixed << fn.getCenJetEtSeedGeV() << " GeV" << std::endl;
348  os << "Tau jet seed threshold : " << std::fixed << fn.getTauJetEtSeedGeV() << " GeV" << std::endl;
349  os << "Forward jet seed threshold : " << std::fixed << fn.getForJetEtSeedGeV() << " GeV" << std::endl;
350  os << "Tau isolation threshold : " << std::fixed << fn.getTauIsoEtThresholdGeV() << " GeV" << std::endl;
351  os << "Ht jet Et threshold : " << std::fixed << fn.getHtJetEtThresholdGeV() << " GeV" << std::endl;
352  os << "MHt jet Et threshold : " << std::fixed << fn.getMHtJetEtThresholdGeV() << " GeV" << std::endl;
353  os << "Ht LSB : " << std::fixed << fn.getHtLsbGeV() << " GeV" << std::endl;
354  os << "Central/Forward boundary : " << std::fixed << fn.getCenForJetEtaBoundary() << std::endl;
355 
356  os << std::endl;
357 
358  os << std::setprecision(6);
359  os << ios::scientific;
360 
361  os << "=== Level-1 GCT : Jet Et Calibration Function ===" << std::endl;
362  if (fn.getCorrType() == 0) {
363  os << "No jet energy corrections applied" << std::endl;
364  } else {
365  switch (fn.getCorrType())
366  {
367  case 1:
368  os << "Function = Power series" << std::endl;
369  break;
370  case 2:
371  os << "Function = ORCA" << std::endl;
372  break;
373  case 3:
374  os << "Function = Simple" << std::endl;
375  break;
376  case 4:
377  os << "Function = PiecewiseCubic" << std::endl;
378  break;
379  case 5:
380  os << "Function = PF" << std::endl;
381  break;
382  default:
383  os << "Unrecognised" << std::endl;
384  break;
385  }
386  std::vector< std::vector<double> > jetCoeffs = fn.getJetCorrCoeffs();
387  std::vector< std::vector<double> > tauCoeffs = fn.getTauCorrCoeffs();
388 
389  os << "Non-tau jet correction coefficients" << std::endl;
390  for (unsigned i=0; i<jetCoeffs.size(); i++){
391  os << "Eta =" << std::setw(2) << i;
392  if (jetCoeffs.at(i).empty()) {
393  os << ", no coefficients";
394  } else {
395  os << " Coefficients = ";
396  for (unsigned j=0; j<jetCoeffs.at(i).size();j++){
397  os << jetCoeffs.at(i).at(j) << ", ";
398  }
399  }
400  os << std::endl;
401  }
402  os << "Tau jet correction coefficients" << std::endl;
403  for (unsigned i=0; i<tauCoeffs.size(); i++){
404  os << "Eta =" << std::setw(2) << i;
405  if (tauCoeffs.at(i).empty()) {
406  os << ", no coefficients";
407  } else {
408  os << " Coefficients = ";
409  for (unsigned j=0; j<tauCoeffs.at(i).size();j++){
410  os << tauCoeffs.at(i).at(j) << ", ";
411  }
412  }
413  os << std::endl;
414  }
415  }
416 
417  os.unsetf(ios::fixed | ios::scientific);
418 
419  return os;
420 }
int i
Definition: DBlmapReader.cc:9
const std::vector< std::vector< double > > & getJetCorrCoeffs() const
double getHtLsbGeV() const
double getCenJetEtSeedGeV() const
double getTauJetEtSeedGeV() const
unsigned getCorrType() const
Access to jet Et calibration parameters.
double getMHtJetEtThresholdGeV() const
int j
Definition: DBlmapReader.cc:9
double getTauIsoEtThresholdGeV() const
unsigned getCenForJetEtaBoundary() const
double getHtJetEtThresholdGeV() const
double getRgnEtLsbGeV() const
double getForJetEtSeedGeV() const
const std::vector< std::vector< double > > & getTauCorrCoeffs() const