CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
ZeeRescaleFactorPlots Class Reference

#include <ZeeRescaleFactorPlots.h>

Public Member Functions

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

Private Attributes

TFile * file_
 
char * fileName_
 

Detailed Description

Definition at line 50 of file ZeeRescaleFactorPlots.h.

Constructor & Destructor Documentation

ZeeRescaleFactorPlots::ZeeRescaleFactorPlots ( char *  fileName)
ZeeRescaleFactorPlots::~ZeeRescaleFactorPlots ( )

Definition at line 37 of file ZeeRescaleFactorPlots.cc.

References file_.

37  {
38  file_->Close();
39 
40  delete file_;
41 }

Member Function Documentation

void ZeeRescaleFactorPlots::writeHistograms ( ZIterativeAlgorithmWithFit theAlgorithm_)

Definition at line 45 of file ZeeRescaleFactorPlots.cc.

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

45  {
46  file_->cd();
47 
49 
50  for (int iIteration = 0; iIteration < theAlgorithm_->getNumberOfIterations(); iIteration++)
51  for (int iChannel = 0; iChannel < theAlgorithm_->getNumberOfChannels(); iChannel++) {
52  if (iChannel % 20 == 0) {
53  file_->cd();
54 
55  algoHistos->weightedRescaleFactor[iIteration][iChannel]->Write();
56  algoHistos->unweightedRescaleFactor[iIteration][iChannel]->Write();
57  algoHistos->weight[iIteration][iChannel]->Write();
58  }
59  }
60 }
const ZIterativeAlgorithmWithFitPlots * getHistos() const

Member Data Documentation

TFile* ZeeRescaleFactorPlots::file_
private
char* ZeeRescaleFactorPlots::fileName_
private

Definition at line 59 of file ZeeRescaleFactorPlots.h.

Referenced by ZeeRescaleFactorPlots().