#include <Calibration/EcalCalibAlgos/interface/ZeeRescaleFactorPlots.h>
Public Member Functions | |
void | writeHistograms (ZIterativeAlgorithmWithFit *) |
ZeeRescaleFactorPlots (char *) | |
~ZeeRescaleFactorPlots () | |
Private Attributes | |
TFile * | file_ |
char * | fileName_ |
Definition at line 54 of file ZeeRescaleFactorPlots.h.
ZeeRescaleFactorPlots::ZeeRescaleFactorPlots | ( | char * | fileName | ) |
ZeeRescaleFactorPlots::~ZeeRescaleFactorPlots | ( | ) |
void ZeeRescaleFactorPlots::writeHistograms | ( | ZIterativeAlgorithmWithFit * | theAlgorithm_ | ) |
Definition at line 53 of file ZeeRescaleFactorPlots.cc.
References file_, ZIterativeAlgorithmWithFit::getHistos(), ZIterativeAlgorithmWithFit::getNumberOfChannels(), ZIterativeAlgorithmWithFit::getNumberOfIterations(), ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::unweightedRescaleFactor, ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weight, and ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weightedRescaleFactor.
00053 { 00054 00055 file_ -> cd(); 00056 00057 00058 const ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots* algoHistos = theAlgorithm_->getHistos(); 00059 00060 for (int iIteration=0;iIteration<theAlgorithm_->getNumberOfIterations();iIteration++) 00061 for (int iChannel=0;iChannel<theAlgorithm_->getNumberOfChannels();iChannel++) 00062 { 00063 00064 if(iChannel%20==0){ 00065 00066 file_ -> cd(); 00067 00068 algoHistos->weightedRescaleFactor[iIteration][iChannel]->Write(); 00069 algoHistos->unweightedRescaleFactor[iIteration][iChannel]->Write(); 00070 algoHistos->weight[iIteration][iChannel]->Write(); 00071 } 00072 00073 00074 } 00075 00076 00077 }
TFile* ZeeRescaleFactorPlots::file_ [private] |
Definition at line 64 of file ZeeRescaleFactorPlots.h.
Referenced by writeHistograms(), ZeeRescaleFactorPlots(), and ~ZeeRescaleFactorPlots().
char* ZeeRescaleFactorPlots::fileName_ [private] |