CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 53 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_.

34 {
35 
37  file_ = new TFile(fileName_, "RECREATE");
38 }
ZeeRescaleFactorPlots::~ZeeRescaleFactorPlots ( )

Definition at line 41 of file ZeeRescaleFactorPlots.cc.

References file_.

42 {
43 
44  file_->Close();
45 
46  delete file_;
47 
48 }

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.

52  {
53 
54  file_ -> cd();
55 
56 
58 
59  for (int iIteration=0;iIteration<theAlgorithm_->getNumberOfIterations();iIteration++)
60  for (int iChannel=0;iChannel<theAlgorithm_->getNumberOfChannels();iChannel++)
61  {
62 
63  if(iChannel%20==0){
64 
65  file_ -> cd();
66 
67  algoHistos->weightedRescaleFactor[iIteration][iChannel]->Write();
68  algoHistos->unweightedRescaleFactor[iIteration][iChannel]->Write();
69  algoHistos->weight[iIteration][iChannel]->Write();
70  }
71 
72 
73  }
74 
75 
76 }
const ZIterativeAlgorithmWithFitPlots * getHistos() const

Member Data Documentation

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

Definition at line 64 of file ZeeRescaleFactorPlots.h.

Referenced by ZeeRescaleFactorPlots().