74 , ecalMin_ (iConfig.getParameter<double>(
"ecalMinEt"))
75 , baddetEcal_ (iConfig.getParameter<
std::vector<unsigned
int> >(
"baddetEcal"))
76 , taggingMode_ (iConfig.getParameter<
bool>(
"taggingMode"))
77 , debug_ (iConfig.getParameter<
bool>(
"debug"))
102 DetId ecaldet(ecalit);
104 if (ecaldet.
rawId()==0)
continue;
109 if (ecalhit==ecalRHs->
end())
continue;
112 if (ecalhit->id().rawId()==0 || ecalhit->id().rawId()!= ecaldet.
rawId()) {
continue; }
120 ene=ecalhit->energy();
137 int iz=ebdet.
zside();
140 edm::LogInfo(
"EcalBadCalibFilter") <<
"ieta=" << ix <<
" iphi=" << iy <<
" iz=" << iz;
149 int iz=eedet.
zside();
152 edm::LogInfo(
"EcalBadCalibFilter") <<
"ix=" << ix <<
" iy=" << iy <<
" iz=" << iz;
163 edm::LogInfo(
"EcalBadCalibFilter") <<
"DUMP EVENT" << std::endl;
173 iEvent.
put(std::make_unique<bool>(pass));
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const std::vector< unsigned int > baddetEcal_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
constexpr uint32_t rawId() const
get the raw id
std::vector< EcalRecHit >::const_iterator const_iterator
EcalBadCalibFilter(const edm::ParameterSet &iConfig)
int iphi() const
get the crystal iphi
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< EcalRecHitCollection > ecalRHSrcToken_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
GlobalPoint getPosition(const DetId &id) const
Get the position of a given detector id.
int ieta() const
get the crystal ieta
const_iterator end() const
et
define resolution functions of each parameter
iterator find(key_type k)
~EcalBadCalibFilter() override
T const * product() const
bool filter(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
int zside() const
get the z-side of the crystal (1/-1)