119 if (!recHits.isValid()){
141 bool thereIsSignal =
false;
148 std::vector<int>::iterator
result;
154 float ampli_ = hit.
energy();
160 if( icalit!=icalMap.end() ){
161 icalconst = (*icalit);
166 float lasercalib = pLaser->getLaserCorrection(
EBDetId(ebDet), iEvent.
time() );
168 ampli_ /= (icalconst * lasercalib * adcconst);
173 thereIsSignal =
true;
185 std::vector<DetId> neighbors = caloTopo->getWindow(ebDet,
side_,
side_);
186 float secondMin = 0.;
187 for(std::vector<DetId>::const_iterator detitr = neighbors.begin(); detitr != neighbors.end(); ++detitr)
190 if (thishit == recHits->end())
195 if ((*thishit).id() != ebDet)
197 float thisamp = (*thishit).energy();
201 if( icalit2!=icalMap.end() ){
202 icalconst2 = (*icalit2);
207 float lasercalib2 = pLaser->getLaserCorrection(
EBDetId((*thishit).id()), iEvent.
time() );
208 thisamp /= (icalconst2 * lasercalib2 * adcconst);
209 if (thisamp > secondMin) secondMin = thisamp;
215 thereIsSignal =
true;
221 return thereIsSignal;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
EcalMIPRecHitFilter(const edm::ParameterSet &)
const self & getMap() const
#define DEFINE_FWK_MODULE(type)
std::vector< EcalRecHit >::const_iterator const_iterator
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
int hashedIndex(int ieta, int iphi)
virtual bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct)
edm::InputTag EcalRecHitCollection_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
DetId id() const
get the id
std::vector< Item >::const_iterator const_iterator
std::vector< int > maskedList_
edm::Timestamp time() const
float EcalIntercalibConstant