CMS 3D CMS Logo

ZeeRescaleFactorPlots.cc
Go to the documentation of this file.
1 
3 
19 #include "TFile.h"
20 #include "TH1.h"
21 #include "TH2.h"
22 #include "TF1.h"
23 #include "TRandom.h"
24 
25 #include <iostream>
26 #include <string>
27 #include <stdexcept>
28 #include <vector>
29 
31 
34  file_ = new TFile(fileName_, "RECREATE");
35 }
36 
38  file_->Close();
39 
40  delete file_;
41 }
42 
43 //========================================================================
44 
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 }
CalibrationCluster.h
ZeeRescaleFactorPlots.h
TrackExtraFwd.h
EcalIntercalibConstants.h
EBDetId.h
ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots
Definition: ZIterativeAlgorithmWithFit.h:30
ZIterativeAlgorithmWithFit::getNumberOfIterations
int getNumberOfIterations() const
Definition: ZIterativeAlgorithmWithFit.h:57
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
HouseholderDecomposition.h
EcalRecHitCollections.h
MinL3Algorithm.h
ZeeRescaleFactorPlots::fileName_
char * fileName_
Definition: ZeeRescaleFactorPlots.h:60
Track.h
TrackFwd.h
calibXMLwriter.h
GsfElectron.h
ZeeRescaleFactorPlots::ZeeRescaleFactorPlots
ZeeRescaleFactorPlots(char *)
Definition: ZeeRescaleFactorPlots.cc:32
ZIterativeAlgorithmWithFit
Definition: ZIterativeAlgorithmWithFit.h:28
ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weightedRescaleFactor
TH1 * weightedRescaleFactor[50][250]
Definition: ZIterativeAlgorithmWithFit.h:31
ZeeRescaleFactorPlots::writeHistograms
void writeHistograms(ZIterativeAlgorithmWithFit *)
Definition: ZeeRescaleFactorPlots.cc:45
Electron.h
ZeeRescaleFactorPlots::~ZeeRescaleFactorPlots
~ZeeRescaleFactorPlots()
Definition: ZeeRescaleFactorPlots.cc:37
ZIterativeAlgorithmWithFit::getHistos
const ZIterativeAlgorithmWithFitPlots * getHistos() const
Definition: ZIterativeAlgorithmWithFit.h:55
DetId.h
ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weight
TH1 * weight[50][250]
Definition: ZIterativeAlgorithmWithFit.h:33
SuperCluster.h
ParameterSet.h
ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::unweightedRescaleFactor
TH1 * unweightedRescaleFactor[50][250]
Definition: ZIterativeAlgorithmWithFit.h:32
EcalIntercalibConstantsRcd.h
ZeeRescaleFactorPlots::file_
TFile * file_
Definition: ZeeRescaleFactorPlots.h:59
ZIterativeAlgorithmWithFit::getNumberOfChannels
int getNumberOfChannels() const
Definition: ZIterativeAlgorithmWithFit.h:59