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
ConfigurationDescriptions.h
edm::EDLooperBase::Status
Status
Definition: EDLooperBase.h:79
Pi0FixedMassWindowCalibration::barrelCells
std::vector< DetId > barrelCells
Definition: Pi0FixedMassWindowCalibration.h:125
ESProducerLooper.h
Pi0FixedMassWindowCalibration::wxtals
double wxtals[85][360][2]
Definition: Pi0FixedMassWindowCalibration.h:130
PositionCalc.h
MessageLogger.h
Pi0FixedMassWindowCalibration::recalibEcalRecHitCollection
const EcalRecHitCollection * recalibEcalRecHitCollection
Definition: Pi0FixedMassWindowCalibration.h:141
EDProducer.h
Pi0FixedMassWindowCalibration::theParameterSet
edm::ParameterSet theParameterSet
Definition: Pi0FixedMassWindowCalibration.h:135
IslandClusterAlgo::VerbosityLevel
VerbosityLevel
Definition: IslandClusterAlgo.h:29
ESHandle.h
Pi0FixedMassWindowCalibration::selePi0DRBelt_
double selePi0DRBelt_
Definition: Pi0FixedMassWindowCalibration.h:110
EcalIntercalibConstants.h
Pi0FixedMassWindowCalibration::clustershapecollectionEB_
std::string clustershapecollectionEB_
Definition: Pi0FixedMassWindowCalibration.h:99
EBDetId.h
EEDetId.h
IslandClusterAlgo.h
edm::SortedCollection< EcalRecHit >
Pi0FixedMassWindowCalibration::beginOfJob
void beginOfJob() override
Called at beginning of job.
Definition: Pi0FixedMassWindowCalibration.cc:173
Pi0FixedMassWindowCalibration::barrelHitCollection_
std::string barrelHitCollection_
Definition: Pi0FixedMassWindowCalibration.h:97
Pi0FixedMassWindowCalibration::theMaxLoops
unsigned int theMaxLoops
Definition: Pi0FixedMassWindowCalibration.h:90
Pi0FixedMassWindowCalibration::nevent
int nevent
Definition: Pi0FixedMassWindowCalibration.h:88
ESDetId.h
Pi0FixedMassWindowCalibration::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: Pi0FixedMassWindowCalibration.cc:119
Pi0FixedMassWindowCalibration::endOfLoop
Status endOfLoop(const edm::EventSetup &, unsigned int iLoop) override
Called at end of loop.
Definition: Pi0FixedMassWindowCalibration.cc:213
ClusterShapeAlgo.h
EcalRecHitCollections.h
Pi0FixedMassWindowCalibration::selePi0PtPi0Min_
double selePi0PtPi0Min_
Definition: Pi0FixedMassWindowCalibration.h:113
Pi0FixedMassWindowCalibration::verbosity
IslandClusterAlgo::VerbosityLevel verbosity
Definition: Pi0FixedMassWindowCalibration.h:94
Pi0FixedMassWindowCalibration::selePi0PtGammaOneMin_
double selePi0PtGammaOneMin_
Definition: Pi0FixedMassWindowCalibration.h:107
Pi0FixedMassWindowCalibration::selePi0S4S9GammaOneMin_
double selePi0S4S9GammaOneMin_
Definition: Pi0FixedMassWindowCalibration.h:115
Pi0FixedMassWindowCalibration::selePi0S9S25GammaTwoMin_
double selePi0S9S25GammaTwoMin_
Definition: Pi0FixedMassWindowCalibration.h:118
Pi0FixedMassWindowCalibration::posCalculator_
PositionCalc posCalculator_
Definition: Pi0FixedMassWindowCalibration.h:102
Pi0FixedMassWindowCalibration
Definition: Pi0FixedMassWindowCalibration.h:57
Pi0FixedMassWindowCalibration::ecalRecHitBarrelCollection
const EcalRecHitCollection * ecalRecHitBarrelCollection
Definition: Pi0FixedMassWindowCalibration.h:140
ClusterShapeAlgo
Definition: ClusterShapeAlgo.h:35
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalSubdetector.h
edm::ESProducerLooper
Definition: ESProducerLooper.h:33
LooperFactory.h
Pi0FixedMassWindowCalibration::barrelHits_
std::string barrelHits_
Definition: Pi0FixedMassWindowCalibration.h:92
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
Pi0FixedMassWindowCalibration::duringLoop
Status duringLoop(const edm::Event &, const edm::EventSetup &) override
Called at each event.
Definition: Pi0FixedMassWindowCalibration.cc:268
Pi0FixedMassWindowCalibration::selePi0MinvSigmaFixed_
double selePi0MinvSigmaFixed_
Definition: Pi0FixedMassWindowCalibration.h:123
Pi0FixedMassWindowCalibration::selePi0MinvMeanFixed_
double selePi0MinvMeanFixed_
Definition: Pi0FixedMassWindowCalibration.h:122
Pi0FixedMassWindowCalibration::barrelClusterShapeAssociation_
std::string barrelClusterShapeAssociation_
Definition: Pi0FixedMassWindowCalibration.h:100
IslandClusterAlgo
Definition: IslandClusterAlgo.h:26
Pi0FixedMassWindowCalibration::newCalibs_barl
double newCalibs_barl[85][360][2]
Definition: Pi0FixedMassWindowCalibration.h:129
PositionCalc
Definition: PositionCalc.h:29
Pi0FixedMassWindowCalibration::barrelClusterCollection_
std::string barrelClusterCollection_
Definition: Pi0FixedMassWindowCalibration.h:98
Pi0FixedMassWindowCalibration::mwxtals
double mwxtals[85][360][2]
Definition: Pi0FixedMassWindowCalibration.h:131
Pi0FixedMassWindowCalibration::ecalHitsProducer_
std::string ecalHitsProducer_
Definition: Pi0FixedMassWindowCalibration.h:91
edm::EventSetup
Definition: EventSetup.h:57
HcalSubdetector.h
Pi0FixedMassWindowCalibration::selePi0S4S9GammaTwoMin_
double selePi0S4S9GammaTwoMin_
Definition: Pi0FixedMassWindowCalibration.h:116
EcalRecHit.h
Pi0FixedMassWindowCalibration::selePi0EtBeltIsoRatioMax_
double selePi0EtBeltIsoRatioMax_
Definition: Pi0FixedMassWindowCalibration.h:120
HBHERecHit.h
CaloSubdetectorTopology.h
Pi0FixedMassWindowCalibration::~Pi0FixedMassWindowCalibration
~Pi0FixedMassWindowCalibration() override
Destructor.
Definition: Pi0FixedMassWindowCalibration.cc:117
DetId.h
Frameworkfwd.h
Pi0FixedMassWindowCalibration::endOfJob
void endOfJob() override
Called at end of job.
Definition: Pi0FixedMassWindowCalibration.cc:179
Pi0FixedMassWindowCalibration::theFile
TFile * theFile
Definition: Pi0FixedMassWindowCalibration.h:144
Pi0FixedMassWindowCalibration::selePi0DetaBelt_
double selePi0DetaBelt_
Definition: Pi0FixedMassWindowCalibration.h:111
Pi0FixedMassWindowCalibration::oldCalibs_barl
double oldCalibs_barl[85][360][2]
Definition: Pi0FixedMassWindowCalibration.h:128
Pi0FixedMassWindowCalibration::island_p
IslandClusterAlgo * island_p
Definition: Pi0FixedMassWindowCalibration.h:104
Pi0FixedMassWindowCalibration::isfirstcall_
bool isfirstcall_
Definition: Pi0FixedMassWindowCalibration.h:146
Pi0FixedMassWindowCalibration::shapeAlgo_
ClusterShapeAlgo shapeAlgo_
Definition: Pi0FixedMassWindowCalibration.h:103
EventSetup.h
HcalRecHitCollections.h
Pi0FixedMassWindowCalibration::Pi0FixedMassWindowCalibration
Pi0FixedMassWindowCalibration(const edm::ParameterSet &iConfig)
Constructor.
Definition: Pi0FixedMassWindowCalibration.cc:35
ParameterSet.h
Pi0FixedMassWindowCalibration::produce
virtual void produce(edm::Event &, const edm::EventSetup &)
Dummy implementation (job done in duringLoop)
Definition: Pi0FixedMassWindowCalibration.h:68
Pi0FixedMassWindowCalibration::barrelHitProducer_
std::string barrelHitProducer_
Definition: Pi0FixedMassWindowCalibration.h:96
edm::Event
Definition: Event.h:73
Pi0FixedMassWindowCalibration::recHitsEB_map
std::map< DetId, EcalRecHit > * recHitsEB_map
Definition: Pi0FixedMassWindowCalibration.h:138
Pi0FixedMassWindowCalibration::selePi0S9S25GammaOneMin_
double selePi0S9S25GammaOneMin_
Definition: Pi0FixedMassWindowCalibration.h:117
GlobalPoint.h
Pi0FixedMassWindowCalibration::selePi0PtGammaTwoMin_
double selePi0PtGammaTwoMin_
Definition: Pi0FixedMassWindowCalibration.h:108
Pi0FixedMassWindowCalibration::startingNewLoop
void startingNewLoop(unsigned int iLoop) override
Called at beginning of loop.
Definition: Pi0FixedMassWindowCalibration.cc:198