CMS 3D CMS Logo

ZeeRescaleFactorPlots Class Reference

#include <Calibration/EcalCalibAlgos/interface/ZeeRescaleFactorPlots.h>

List of all members.

Public Member Functions

void writeHistograms (ZIterativeAlgorithmWithFit *)
 ZeeRescaleFactorPlots (char *)
 ~ZeeRescaleFactorPlots ()

Private Attributes

TFile * file_
char * fileName_


Detailed Description

Definition at line 54 of file ZeeRescaleFactorPlots.h.


Constructor & Destructor Documentation

ZeeRescaleFactorPlots::ZeeRescaleFactorPlots ( char *  fileName  ) 

Definition at line 34 of file ZeeRescaleFactorPlots.cc.

References file_, and fileName_.

00035 {
00036 
00037   fileName_ = fileName;
00038   file_ = new TFile(fileName_, "RECREATE");
00039 }

ZeeRescaleFactorPlots::~ZeeRescaleFactorPlots (  ) 

Definition at line 42 of file ZeeRescaleFactorPlots.cc.

References file_.

00043 {
00044 
00045   file_->Close();
00046 
00047   delete file_;
00048 
00049 }


Member Function Documentation

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 }


Member Data Documentation

TFile* ZeeRescaleFactorPlots::file_ [private]

Definition at line 64 of file ZeeRescaleFactorPlots.h.

Referenced by writeHistograms(), ZeeRescaleFactorPlots(), and ~ZeeRescaleFactorPlots().

char* ZeeRescaleFactorPlots::fileName_ [private]

Definition at line 65 of file ZeeRescaleFactorPlots.h.

Referenced by ZeeRescaleFactorPlots().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:36:06 2009 for CMSSW by  doxygen 1.5.4