#include "CondFormats/L1TObjects/interface/L1GctJetEtCalibrationFunction.h"
#include "CondFormats/L1TObjects/interface/L1CaloEtScale.h"
#include <iostream>
#include <iomanip>
#include <assert.h>
#include <math.h>
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &os, const L1GctJetEtCalibrationFunction &fn) |
std::ostream& operator<< | ( | std::ostream & | os, | |
const L1GctJetEtCalibrationFunction & | fn | |||
) |
Definition at line 50 of file L1GctJetEtCalibrationFunction.cc.
References lat::endl(), i, j, L1GctJetEtCalibrationFunction::m_corrFunType, L1GctJetEtCalibrationFunction::m_htScaleLSB, L1GctJetEtCalibrationFunction::m_jetCalibFunc, L1GctJetEtCalibrationFunction::m_tauCalibFunc, L1GctJetEtCalibrationFunction::m_threshold, L1GctJetEtCalibrationFunction::NO_CORRECTION, L1GctJetEtCalibrationFunction::ORCA_STYLE_CORRECTION, L1GctJetEtCalibrationFunction::PIECEWISE_CUBIC_CORRECTION, and L1GctJetEtCalibrationFunction::POWER_SERIES_CORRECTION.
00051 { 00052 os << "=== Level-1 GCT : Jet Et Calibration Function ===" << std::endl; 00053 os << std::setprecision(2); 00054 os << "LSB for Ht scale is " << std::fixed << fn.m_htScaleLSB << ", jet veto threshold is " << fn.m_threshold << std::endl; 00055 if (fn.m_corrFunType == L1GctJetEtCalibrationFunction::NO_CORRECTION) { 00056 os << "No jet energy corrections applied" << std::endl; 00057 } else { 00058 switch (fn.m_corrFunType) 00059 { 00060 case L1GctJetEtCalibrationFunction::POWER_SERIES_CORRECTION: 00061 os << "Power series energy correction for jets is enabled" << std::endl; 00062 break; 00063 case L1GctJetEtCalibrationFunction::ORCA_STYLE_CORRECTION: 00064 os << "ORCA-style energy correction for jets is enabled" << std::endl; 00065 break; 00066 case L1GctJetEtCalibrationFunction::PIECEWISE_CUBIC_CORRECTION: 00067 os << "Piecewise 3rd-order polynomial energy correction for jets is enabled" << std::endl; 00068 break; 00069 default: 00070 os << "Unrecognised calibration function type" << std::endl; 00071 break; 00072 } 00073 os << "Non-tau jet correction coefficients" << std::endl; 00074 for (unsigned i=0; i<fn.m_jetCalibFunc.size(); i++){ 00075 os << "Eta =" << std::setw(2) << i; 00076 if (fn.m_jetCalibFunc.at(i).empty()) { 00077 os << ", no non-linear correction."; 00078 } else { 00079 os << " Coefficients = "; 00080 for (unsigned j=0; j<fn.m_jetCalibFunc.at(i).size();j++){ 00081 os << fn.m_jetCalibFunc.at(i).at(j) << " "; 00082 } 00083 } 00084 os << std::endl; 00085 } 00086 os << "Tau jet correction coefficients" << std::endl; 00087 for (unsigned i=0; i<fn.m_tauCalibFunc.size(); i++){ 00088 os << "Eta =" << std::setw(2) << i; 00089 if (fn.m_tauCalibFunc.at(i).empty()) { 00090 os << ", no non-linear correction."; 00091 } else { 00092 os << " Coefficients = "; 00093 for (unsigned j=0; j<fn.m_tauCalibFunc.at(i).size();j++){ 00094 os << fn.m_tauCalibFunc.at(i).at(j) << " "; 00095 } 00096 } 00097 os << std::endl; 00098 } 00099 } 00100 return os; 00101 }