55 produces< EcalRecHitCollection >(reducedHitCollection_);
82 iEvent.
getByLabel(hitProducer_, hitCollection_, rhcHandle);
83 if (!(rhcHandle.isValid()))
98 double NewEnergy =it->energy();
101 std::vector<EBDetId>::const_iterator DeadCell;
102 for(DeadCell=ChannelsDeadID.begin();DeadCell<ChannelsDeadID.end();DeadCell++){
103 if(it->detid()==*DeadCell){
117 EcalRecHit NewHit(it->id(),NewEnergy,it->time());
118 redCollection->push_back( NewHit );
123 iEvent.
put(redCollection, reducedHitCollection_);
137 printf(
"Dead Channels FILE: %s\n",DeadChannelFileName_.c_str());
138 DeadCha = fopen(DeadChannelFileName_.c_str(),
"r");
143 while(fileStatus != EOF) {
144 fileStatus = fscanf(DeadCha,
"%d %d\n",&ieta,&iphi);
146 if(ieta==-10000||iphi==-10000){
break;}
148 ChannelsDeadID.push_back(cell);
T getParameter(std::string const &) const
std::vector< EcalRecHit >::const_iterator const_iterator
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
DEFINE_FWK_MODULE(CaloMETProducer)
virtual void produce(edm::Event &, const edm::EventSetup &)
EcalChannelKiller(const edm::ParameterSet &)