CMS 3D CMS Logo

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 51 of file ZeeRescaleFactorPlots.h.

Constructor & Destructor Documentation

◆ ZeeRescaleFactorPlots()

ZeeRescaleFactorPlots::ZeeRescaleFactorPlots ( char *  fileName)

Definition at line 32 of file ZeeRescaleFactorPlots.cc.

32  {
34  file_ = new TFile(fileName_, "RECREATE");
35 }

References file_, MillePedeFileConverter_cfg::fileName, and fileName_.

◆ ~ZeeRescaleFactorPlots()

ZeeRescaleFactorPlots::~ZeeRescaleFactorPlots ( )

Definition at line 37 of file ZeeRescaleFactorPlots.cc.

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

References file_.

Member Function Documentation

◆ writeHistograms()

void ZeeRescaleFactorPlots::writeHistograms ( ZIterativeAlgorithmWithFit theAlgorithm_)

Definition at line 45 of file ZeeRescaleFactorPlots.cc.

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 }

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

Member Data Documentation

◆ file_

TFile* ZeeRescaleFactorPlots::file_
private

◆ fileName_

char* ZeeRescaleFactorPlots::fileName_
private

Definition at line 60 of file ZeeRescaleFactorPlots.h.

Referenced by ZeeRescaleFactorPlots().

ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots
Definition: ZIterativeAlgorithmWithFit.h:30
ZIterativeAlgorithmWithFit::getNumberOfIterations
int getNumberOfIterations() const
Definition: ZIterativeAlgorithmWithFit.h:57
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
ZeeRescaleFactorPlots::fileName_
char * fileName_
Definition: ZeeRescaleFactorPlots.h:60
ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weightedRescaleFactor
TH1 * weightedRescaleFactor[50][250]
Definition: ZIterativeAlgorithmWithFit.h:31
ZIterativeAlgorithmWithFit::getHistos
const ZIterativeAlgorithmWithFitPlots * getHistos() const
Definition: ZIterativeAlgorithmWithFit.h:55
ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weight
TH1 * weight[50][250]
Definition: ZIterativeAlgorithmWithFit.h:33
ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::unweightedRescaleFactor
TH1 * unweightedRescaleFactor[50][250]
Definition: ZIterativeAlgorithmWithFit.h:32
ZeeRescaleFactorPlots::file_
TFile * file_
Definition: ZeeRescaleFactorPlots.h:59
ZIterativeAlgorithmWithFit::getNumberOfChannels
int getNumberOfChannels() const
Definition: ZIterativeAlgorithmWithFit.h:59