Calibration
EcalCalibAlgos
src
ZeeRescaleFactorPlots.cc
Go to the documentation of this file.
1
2
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
3
4
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
5
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
6
#include "
DataFormats/DetId/interface/DetId.h
"
7
#include "
CondFormats/EcalObjects/interface/EcalIntercalibConstants.h
"
8
#include "
CondFormats/DataRecord/interface/EcalIntercalibConstantsRcd.h
"
9
#include "
Calibration/Tools/interface/calibXMLwriter.h
"
10
#include "
Calibration/Tools/interface/CalibrationCluster.h
"
11
#include "
Calibration/Tools/interface/HouseholderDecomposition.h
"
12
#include "
Calibration/Tools/interface/MinL3Algorithm.h
"
13
#include "
Calibration/EcalCalibAlgos/interface/ZeeRescaleFactorPlots.h
"
14
#include "
DataFormats/EgammaCandidates/interface/Electron.h
"
15
#include "
DataFormats/EgammaReco/interface/SuperCluster.h
"
16
#include "
DataFormats/TrackReco/interface/Track.h
"
17
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
18
#include "
DataFormats/TrackReco/interface/TrackExtraFwd.h
"
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
30
#include "
DataFormats/EgammaCandidates/interface/GsfElectron.h
"
31
32
ZeeRescaleFactorPlots::ZeeRescaleFactorPlots
(
char
*
fileName
) {
33
fileName_
=
fileName
;
34
file_
=
new
TFile(
fileName_
,
"RECREATE"
);
35
}
36
37
ZeeRescaleFactorPlots::~ZeeRescaleFactorPlots
() {
38
file_
->Close();
39
40
delete
file_
;
41
}
42
43
//========================================================================
44
45
void
ZeeRescaleFactorPlots::writeHistograms
(
ZIterativeAlgorithmWithFit
* theAlgorithm_) {
46
file_
->cd();
47
48
const
ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots
* algoHistos = theAlgorithm_->
getHistos
();
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
Generated for CMSSW Reference Manual by
1.8.16