111 recoPhotonsCollection_(consumes<std::vector<
reco::
Photon> > (iConfig.getParameter<edm::
InputTag>(
"recoPhotonSrc"))),
115 mRechitEnergyThreshold (iConfig.getParameter<double> (
"rechitEnergyThreshold")),
116 mRecoPhotonPtThreshold (iConfig.getParameter<double> (
"recoPhotonPtThreshold")),
117 mRecoJetPtThreshold (iConfig.getParameter<double> (
"recoJetPtThreshold")),
118 mDeltaRPhotonThreshold (iConfig.getParameter<double> (
"deltaRPhotonThreshold")),
119 mDeltaRJetThreshold (iConfig.getParameter<double> (
"deltaRJetThreshold"))
151 double eta =
geomH->getGeometry(
hit->detid())->getPosition().eta();
152 double phi =
geomH->getGeometry(
hit->detid())->getPosition().phi();
163 for (std::vector<reco::Photon>::const_iterator pho = recoPhotonsHandle->begin(); pho != recoPhotonsHandle->end(); ++pho) {
172 for (std::vector<reco::CaloJet>::const_iterator
jet = recoJetHandle->begin();
jet != recoJetHandle->end(); ++
jet) {
186 double eta =
geomH->getGeometry(
hit->detid())->getPosition().eta();
187 double phi =
geomH->getGeometry(
hit->detid())->getPosition().phi();
198 for (std::vector<reco::Photon>::const_iterator pho = recoPhotonsHandle->begin(); pho != recoPhotonsHandle->end(); ++pho) {
207 for (std::vector<reco::CaloJet>::const_iterator
jet = recoJetHandle->begin();
jet != recoJetHandle->end(); ++
jet) {
253 const int nBins = 500;
255 const float maxError = 0.5;
257 TH2F * hProfile_Chi2 =
new TH2F(
"hProfile_Chi2",
"",nBins, -5, 5, nBins, 0, maxChi2);
258 TH2F * hProfile_Err =
new TH2F(
"hProfile_Err",
"",nBins, -5, 5, nBins, 0, maxError);
260 eb_chi2 = iBooker.
book1D(
"rechit_eb_chi2",
"Rechit eb_chi2;chi2 fit value;",nBins,0,maxChi2);
264 eb_errors = iBooker.
book1D(
"rechit_eb_errors",
"Rechit eb_errors;error on the energy;",nBins,0,maxError);
273 ee_chi2 = iBooker.
book1D(
"rechit_ee_chi2",
"Rechit ee_chi2;chi2 fit value;",nBins,0,maxChi2);
277 ee_errors = iBooker.
book1D(
"rechit_ee_errors",
"Rechit ee_errors;error on the energy;",nBins,0,maxError);
286 delete hProfile_Chi2;
MonitorElement * ee_chi2_e5
MonitorElement * eb_errors_eta
edm::EDGetTokenT< EcalRecHitCollection > RecHitCollection_EB_
MonitorElement * eb_errors
MonitorElement * ee_errors_eta
MonitorElement * eb_errors_photon15
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
MonitorElement * ee_chi2_jet30
~ECALMultifitAnalyzer_HI()
std::vector< EcalRecHit >::const_iterator const_iterator
ECALMultifitAnalyzer_HI(const edm::ParameterSet &)
MonitorElement * eb_chi2_eta
MonitorElement * eb_errors_e5_eta
edm::EDGetTokenT< reco::CaloJetCollection > caloJetToken_
MonitorElement * ee_chi2_eta
MonitorElement * ee_errors
double mDeltaRJetThreshold
MonitorElement * ee_errors_jet30
MonitorElement * ee_chi2_e5_eta
MonitorElement * book1D(Args &&...args)
MonitorElement * ee_errors_photon15
double mRecoPhotonPtThreshold
MonitorElement * eb_errors_e5
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
MonitorElement * eb_chi2_e5_eta
double mDeltaRPhotonThreshold
MonitorElement * eb_errors_jet30
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
edm::ESHandle< CaloGeometry > geomH
MonitorElement * ee_errors_e5_eta
MonitorElement * eb_chi2_photon15
double mRecoJetPtThreshold
MonitorElement * eb_chi2_e5
edm::EDGetTokenT< EcalRecHitCollection > RecHitCollection_EE_
MonitorElement * ee_chi2_photon15
MonitorElement * eb_chi2_jet30
edm::EDGetTokenT< std::vector< reco::Photon > > recoPhotonsCollection_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
double mRechitEnergyThreshold
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
MonitorElement * ee_errors_e5