53 , EBLaserMIN_ (iConfig.getParameter<double>(
"EBLaserMIN"))
54 , EELaserMIN_ (iConfig.getParameter<double>(
"EELaserMIN"))
55 , EBLaserMAX_ (iConfig.getParameter<double>(
"EBLaserMAX"))
56 , EELaserMAX_ (iConfig.getParameter<double>(
"EELaserMAX"))
57 , EBEnegyMIN_ (iConfig.getParameter<double>(
"EBEnegyMIN"))
58 , EEEnegyMIN_ (iConfig.getParameter<double>(
"EEEnegyMIN"))
59 , taggingMode_ (iConfig.getParameter<bool>(
"taggingMode"))
60 , debug_ (iConfig.getParameter<bool>(
"Debug"))
83 bool goodCalib =
true;
90 double energy = eerh->energy();
91 double time = eerh->time();
92 int jx =
EEDetId((*eerh).id()).ix();
93 int jy =
EEDetId((*eerh).id()).iy();
97 float lasercalib =
laser->getLaserCorrection(
EEDetId(eeDet), iEvent.
time());
104 <<
" lasercalib " << lasercalib <<
" rechit ene " << energy <<
" time " << time
105 <<
" ix, iy, z = " << jx <<
" " << jy <<
" " << jz
118 double energy = ebrh->energy();
119 double time = ebrh->time();
120 int etarec =
EBDetId((*ebrh).id()).ieta();
121 int phirec =
EBDetId((*ebrh).id()).iphi();
126 float lasercalib =
laser->getLaserCorrection(
EBDetId(ebDet), iEvent.
time());
133 <<
" lasercalib " << lasercalib <<
" rechit ene " << energy <<
" time " << time
134 <<
" eta, phi, z = " << etarec <<
" " << phirec <<
" " << zrec
145 iEvent.
put( std::auto_ptr<bool>(
new bool(
result)) );
EventNumber_t event() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< EcalRecHit >::const_iterator const_iterator
edm::LuminosityBlockNumber_t luminosityBlock() const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< EcalRecHitCollection > ebRHSrcToken_
DetId id() const
get the id
edm::EDGetTokenT< EcalRecHitCollection > eeRHSrcToken_
EcalLaserCorrFilter(const edm::ParameterSet &iConfig)
edm::Timestamp time() const
virtual bool filter(edm::Event &iEvent, const edm::EventSetup &iSetup) override