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
19 
22 
30 
33 
38 
40 
42 public:
45 
48 
49  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
50 
52  virtual void produce(edm::Event&, const edm::EventSetup&){};
53 
55  void beginOfJob() override;
56 
58  void endOfJob() override;
59 
61  void startingNewLoop(unsigned int iLoop) override;
62 
64  Status endOfLoop(const edm::EventSetup&, unsigned int iLoop) override;
65 
67  Status duringLoop(const edm::Event&, const edm::EventSetup&) override;
68 
69 private:
70  // static const double PDGPi0Mass;
71 
72  int nevent;
73 
74  const unsigned int theMaxLoops;
77 
79 
85 
86  PositionCalc posCalculator_; // position calculation algorithm
87  ClusterShapeAlgo shapeAlgo_; // cluster shape algorithm
89 
90  // Selection algorithm parameters
93 
96 
98 
103 
105 
108 
109  std::vector<DetId> barrelCells;
110 
111  // input calibration constants
112  double oldCalibs_barl[85][360][2];
113  double newCalibs_barl[85][360][2];
114  double wxtals[85][360][2];
115  double mwxtals[85][360][2];
116 
117  // steering parameters
118 
120 
121  // map for all RecHits from ECal:
122  std::map<DetId, EcalRecHit>* recHitsEB_map;
123 
126 
130 
132 };
133 
134 #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.