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
22 
25 
36 
41 
47 
49 
50 #include "TFile.h"
51 #include "TTree.h"
52 #include "TH1F.h"
53 #include "TF1.h"
54 #include "TGraph.h"
55 #include "TCanvas.h"
56 
58 public:
61 
64 
65  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
66 
68  virtual void produce(edm::Event&, const edm::EventSetup&){};
69 
71  void beginOfJob() override;
72 
74  void endOfJob() override;
75 
77  void startingNewLoop(unsigned int iLoop) override;
78 
80  Status endOfLoop(const edm::EventSetup&, unsigned int iLoop) override;
81 
83  Status duringLoop(const edm::Event&, const edm::EventSetup&) override;
84 
85 private:
86  // static const double PDGPi0Mass;
87 
88  int nevent;
89 
90  unsigned int theMaxLoops;
93 
95 
101 
102  PositionCalc posCalculator_; // position calculation algorithm
103  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
105 
106  // Selection algorithm parameters
109 
112 
114 
119 
121 
124 
125  std::vector<DetId> barrelCells;
126 
127  // input calibration constants
128  double oldCalibs_barl[85][360][2];
129  double newCalibs_barl[85][360][2];
130  double wxtals[85][360][2];
131  double mwxtals[85][360][2];
132 
133  // steering parameters
134 
136 
137  // map for all RecHits from ECal:
138  std::map<DetId, EcalRecHit>* recHitsEB_map;
139 
142 
143  // root tree
144  TFile* theFile;
145 
147 };
148 
149 #endif
void startingNewLoop(unsigned int iLoop) override
Called at beginning of loop.
virtual void produce(edm::Event &, const edm::EventSetup &)
Dummy implementation (job done in duringLoop)
void beginOfJob() override
Called at beginning of job.
Status endOfLoop(const edm::EventSetup &, unsigned int iLoop) override
Called at end of loop.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
IslandClusterAlgo::VerbosityLevel verbosity
const EcalRecHitCollection * ecalRecHitBarrelCollection
Status duringLoop(const edm::Event &, const edm::EventSetup &) override
Called at each event.
std::map< DetId, EcalRecHit > * recHitsEB_map
Pi0FixedMassWindowCalibration(const edm::ParameterSet &iConfig)
Constructor.
~Pi0FixedMassWindowCalibration() override
Destructor.
const EcalRecHitCollection * recalibEcalRecHitCollection
void endOfJob() override
Called at end of job.