CMS 3D CMS Logo

Public Member Functions | Private Attributes

ZeeRescaleFactorPlots Class Reference

#include <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 33 of file ZeeRescaleFactorPlots.cc.

References file_, convertXMLtoSQLite_cfg::fileName, and fileName_.

{

  fileName_ = fileName;
  file_ = new TFile(fileName_, "RECREATE");
}
ZeeRescaleFactorPlots::~ZeeRescaleFactorPlots ( )

Definition at line 41 of file ZeeRescaleFactorPlots.cc.

References file_.

{

  file_->Close();

  delete file_;

}

Member Function Documentation

void ZeeRescaleFactorPlots::writeHistograms ( ZIterativeAlgorithmWithFit theAlgorithm_)

Definition at line 52 of file ZeeRescaleFactorPlots.cc.

References file_, ZIterativeAlgorithmWithFit::getHistos(), ZIterativeAlgorithmWithFit::getNumberOfChannels(), ZIterativeAlgorithmWithFit::getNumberOfIterations(), ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::unweightedRescaleFactor, ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weight, and ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weightedRescaleFactor.

                                                                                    {

  file_ -> cd();

  
  const ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots* algoHistos = theAlgorithm_->getHistos();

  for (int iIteration=0;iIteration<theAlgorithm_->getNumberOfIterations();iIteration++)
    for (int iChannel=0;iChannel<theAlgorithm_->getNumberOfChannels();iChannel++)
      {

        if(iChannel%20==0){
          
          file_ -> cd();
          
          algoHistos->weightedRescaleFactor[iIteration][iChannel]->Write();
          algoHistos->unweightedRescaleFactor[iIteration][iChannel]->Write();
          algoHistos->weight[iIteration][iChannel]->Write();
        }


      }


}

Member Data Documentation

TFile* ZeeRescaleFactorPlots::file_ [private]

Definition at line 65 of file ZeeRescaleFactorPlots.h.

Referenced by ZeeRescaleFactorPlots().