CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
20 
24 
35 
38 
43 
45 
46 #include "TFile.h"
47 #include "TTree.h"
48 #include "TH1F.h"
49 #include "TF1.h"
50 #include "TGraph.h"
51 #include "TCanvas.h"
52 
54 public:
57 
60 
61  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
62 
64  virtual void produce(edm::Event&, const edm::EventSetup&){};
65 
67  void beginOfJob() override;
68 
70  void endOfJob() override;
71 
73  void startingNewLoop(unsigned int iLoop) override;
74 
76  Status endOfLoop(const edm::EventSetup&, unsigned int iLoop) override;
77 
79  Status duringLoop(const edm::Event&, const edm::EventSetup&) override;
80 
81 private:
82  // static const double PDGPi0Mass;
83 
84  int nevent;
85 
86  const unsigned int theMaxLoops;
89 
91 
97 
98  PositionCalc posCalculator_; // position calculation algorithm
99  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
101 
102  // Selection algorithm parameters
105 
108 
110 
115 
117 
120 
121  std::vector<DetId> barrelCells;
122 
123  // input calibration constants
124  double oldCalibs_barl[85][360][2];
125  double newCalibs_barl[85][360][2];
126  double wxtals[85][360][2];
127  double mwxtals[85][360][2];
128 
129  // steering parameters
130 
132 
133  // map for all RecHits from ECal:
134  std::map<DetId, EcalRecHit>* recHitsEB_map;
135 
138 
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.
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometryToken_
const edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcd > intercalibConstantsToken_
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
const edm::EDGetTokenT< EcalRecHitCollection > recHitToken_
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.