112 if (region ==
"barrel")
return barrel;
113 else if (region ==
"endcap")
return endcap;
127 std::auto_ptr<EBDigiCollection> outputEBDigiCollection(
new EBDigiCollection );
128 std::auto_ptr<EEDigiCollection> outputEEDigiCollection(
new EEDigiCollection );
142 for (ituneEB = recHitsHandle->begin(); ituneEB != recHitsHandle->end(); ituneEB++) {
144 outputEBDigiCollection->push_back( (*digisEB->
find(hit.
id())).id(), (*digisEB->
find(hit.
id())).begin() );
157 for (ituneEE = recHitsHandle->begin(); ituneEE != recHitsHandle->end(); ituneEE++) {
159 outputEEDigiCollection->push_back( (*digisEE->
find(hit.
id())).id(), (*digisEE->
find(hit.
id())).begin() );
211 ->setComment(
"Region of rechits to save Digis for. Allowed values: barrel or endcap.");
213 ->setComment(
"The collection of either barrel or endcap digis which correspond to the rechit collection");
215 ->setComment(
"Name for the collection of Digis saved by the module");
217 ->setComment(
"Collection of rechits to match Digis to");
218 descriptions.
add(
"hltFindMatchingECALDigisToRechits", desc);
T getParameter(std::string const &) const
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)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
edm::EDGetTokenT< EBDigiCollection > digisEBInToken_