test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
26 #include <iostream>
27 #include <string>
28 #include <stdexcept>
29 #include <vector>
30 
32 
34 {
35 
37  file_ = new TFile(fileName_, "RECREATE");
38 }
39 
40 
42 {
43 
44  file_->Close();
45 
46  delete file_;
47 
48 }
49 
50 //========================================================================
51 
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 }
77 
78 
const ZIterativeAlgorithmWithFitPlots * getHistos() const
void writeHistograms(ZIterativeAlgorithmWithFit *)