CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
PFEnergyCalibrationHF.cc File Reference
#include "RecoParticleFlow/PFClusterTools/interface/PFEnergyCalibrationHF.h"
#include <TMath.h>
#include <cmath>
#include <vector>
#include <TF1.h>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const PFEnergyCalibrationHF &calib)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const PFEnergyCalibrationHF calib 
)

Definition at line 92 of file PFEnergyCalibrationHF.cc.

References SplitLinear::begin, dataset::end, PFEnergyCalibrationHF::getcalibHF_a_EMHAD(), PFEnergyCalibrationHF::getcalibHF_a_EMonly(), PFEnergyCalibrationHF::getcalibHF_b_EMHAD(), PFEnergyCalibrationHF::getcalibHF_b_HADonly(), PFEnergyCalibrationHF::getcalibHF_eta_step(), PFEnergyCalibrationHF::getcalibHF_use(), cuy::ii, and submitPVResolutionJobs::out.

92  {
93  if (!out)
94  return out;
95  out << "PFEnergyCalibrationHF -- " << endl;
96  int ii = 0;
97  for (std::vector<double>::const_iterator iteta = (calib.getcalibHF_eta_step()).begin();
98  iteta != (calib.getcalibHF_eta_step()).end();
99  ++iteta) {
100  //double currenteta = *iteta;
101  out << " i " << ii << ",";
102  out << "use " << calib.getcalibHF_use() << ",";
103  out << "currenteta " << calib.getcalibHF_eta_step()[ii] << ",";
104  out << "calibHF_a_EMonly_ " << calib.getcalibHF_a_EMonly()[ii] << ",";
105  out << "calibHF_b_HADonly_ " << calib.getcalibHF_b_HADonly()[ii] << ",";
106  out << "calibHF_a_EMHAD_ " << calib.getcalibHF_a_EMHAD()[ii] << ",";
107  out << "calibHF_b_EMHAD_ " << calib.getcalibHF_b_EMHAD()[ii] << ",";
108  out << endl;
109  ii++;
110  }
111 
112  return out;
113 }
const std::vector< double > & getcalibHF_a_EMonly() const
const std::vector< double > & getcalibHF_eta_step() const
const std::vector< double > & getcalibHF_b_EMHAD() const
int ii
Definition: cuy.py:589
const std::vector< double > & getcalibHF_a_EMHAD() const
const bool & getcalibHF_use() const
string end
Definition: dataset.py:937
const std::vector< double > & getcalibHF_b_HADonly() const