112 if (region ==
"barrel")
return barrel;
113 else if (region ==
"endcap")
return endcap;
127 std::unique_ptr<EBDigiCollection> outputEBDigiCollection(
new EBDigiCollection );
128 std::unique_ptr<EEDigiCollection> outputEEDigiCollection(
new EEDigiCollection );
142 for (ituneEB = recHitsHandle->begin(); ituneEB != recHitsHandle->end(); ituneEB++) {
146 if( digiLookUp == digisEB->
end())
continue;
147 outputEBDigiCollection->push_back( digiLookUp->id(), digiLookUp->begin() );
160 for (ituneEE = recHitsHandle->begin(); ituneEE != recHitsHandle->end(); ituneEE++) {
164 if(digiLookUp == digisEE->
end())
continue;
165 outputEEDigiCollection->push_back( digiLookUp->id(), digiLookUp->begin() );
218 ->setComment(
"Region of rechits to save Digis for. Allowed values: barrel or endcap.");
220 ->setComment(
"The collection of either barrel or endcap digis which correspond to the rechit collection");
222 ->setComment(
"Name for the collection of Digis saved by the module");
224 ->setComment(
"Collection of rechits to match Digis to");
225 descriptions.
add(
"hltFindMatchingECALDigisToRechits", desc);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< EcalRecHit >::const_iterator const_iterator
edm::EDGetTokenT< EEDigiCollection > digisEEInToken_
virtual void produce(edm::Event &, edm::EventSetup const &) override
const_iterator find(id_type i) const
HLTRechitsToDigis(const edm::ParameterSet &)
static const HLTRechitsToDigis::ecalRegion stringToRegion(const std::string ®ion)
edm::EDGetTokenT< EcalRecHitCollection > recHitsToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
DetId id() const
get the id
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const_iterator end() const
edm::EDGetTokenT< EBDigiCollection > digisEBInToken_