CMS 3D CMS Logo

Pi0FixedMassWindowCalibration.h
Go to the documentation of this file.
1 #ifndef Calibration_EcalCalibAlgos_Pi0FixedMassWindowCalibration_h
2 #define Calibration_EcalCalibAlgos_Pi0FixedMassWindowCalibration_h
3 
4 #include <memory>
5 #include <string>
6 #include <iostream>
7 
8 #include <vector>
10 
11 // Framework
21 
24 
35 
40 
41 
47 
49 
50 
51 #include "TFile.h"
52 #include "TTree.h"
53 #include "TH1F.h"
54 #include "TF1.h"
55 #include "TGraph.h"
56 #include "TCanvas.h"
57 
59 {
60 
61  public:
62 
65 
68 
70  virtual void produce(edm::Event&, const edm::EventSetup&) {};
71 
73  virtual void beginOfJob();
74 
76  virtual void endOfJob();
77 
79  virtual void startingNewLoop( unsigned int iLoop );
80 
82  virtual Status endOfLoop( const edm::EventSetup&, unsigned int iLoop );
83 
85  virtual Status duringLoop( const edm::Event&, const edm::EventSetup& );
86 
87  private:
88 
89  // static const double PDGPi0Mass;
90 
91  int nevent;
92 
93  unsigned int theMaxLoops;
96 
97 
99 
105 
106  PositionCalc posCalculator_; // position calculation algorithm
107  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
109 
110  // Selection algorithm parameters
113 
116 
118 
123 
125 
128 
129 
130 
131  std::vector<DetId> barrelCells;
132 
133  // input calibration constants
134  double oldCalibs_barl[85][360][2];
135  double newCalibs_barl[85][360][2];
136  double wxtals[85][360][2];
137  double mwxtals[85][360][2];
138 
139  // steering parameters
140 
142 
143 
144 
145 
146  // map for all RecHits from ECal:
147  std::map<DetId, EcalRecHit> *recHitsEB_map;
148 
151 
152 
153  // root tree
154  TFile* theFile;
155 
157 
158 };
159 
160 #endif
virtual void beginOfJob()
Called at beginning of job.
virtual void produce(edm::Event &, const edm::EventSetup &)
Dummy implementation (job done in duringLoop)
virtual void startingNewLoop(unsigned int iLoop)
Called at beginning of loop.
IslandClusterAlgo::VerbosityLevel verbosity
virtual Status duringLoop(const edm::Event &, const edm::EventSetup &)
Called at each event.
virtual Status endOfLoop(const edm::EventSetup &, unsigned int iLoop)
Called at end of loop.
const EcalRecHitCollection * ecalRecHitBarrelCollection
virtual void endOfJob()
Called at end of job.
std::map< DetId, EcalRecHit > * recHitsEB_map
Pi0FixedMassWindowCalibration(const edm::ParameterSet &iConfig)
Constructor.
const EcalRecHitCollection * recalibEcalRecHitCollection