14 LogDebug(
"EcalRawToRecHit|Producer")<<
"ready to create rechits from lazy getter: "<<
lsourceTag_
15 <<
"\n using region ref from: "<<sourceTag_
16 <<
"\n splitting in two collections"
23 LogDebug(
"EcalRawToRecHit|Producer")<<
"ready to create rechits from lazy getter: "<<
lsourceTag_
24 <<
"\n using region ref from: "<<sourceTag_
25 <<
"\n not splitting the output collection.";
46 LogDebug(
"EcalRawToRecHit|Producer")<<watcher.
lap();
51 LogDebug(
"EcalRawToRecHit|Producer")<<
"lazy getter retreived from: "<<
lsourceTag_<<(lgetter.failedToGet()?
" not valid ":
"valid")
57 LogDebug(
"EcalRawToRecHit|Producer")<<
"ref getter retreived from: "<<
sourceTag_<<(rgetter.failedToGet()?
" not valid ":
"valid")
69 for (;iRegion!=iRegionEnd;++iRegion){
70 LogDebug(
"EcalRawToRecHit|Producer")<<
"looping over refgetter region: "<<iR<<watcher.
lap();
71 std::vector<EcalRecHit>::const_iterator iRecHit=lgetter->begin_record()+iRegion->start();
72 std::vector<EcalRecHit>::const_iterator iRecHitEnd =lgetter->begin_record()+iRegion->finish();
73 for (;iRecHit!=iRecHitEnd;iRecHit++){
77 LogDebug(
"EcalRawToRecHit|Producer")<<
"subdetId is: "<<EcalNum;
78 if (EcalNum==1) EBrechits->push_back(*iRecHit);
79 else if (EcalNum==2) EErechits->push_back(*iRecHit);
81 edm::LogError(
"IncorrectRecHit")<<
" a subdetid is not recognized. recHit on :"<< iRecHit->id().rawId()
85 LogDebug(
"EcalRawToRecHit|Producer")<<
"looping over refgetter region: "<<iR++<<
" done"
94 LogDebug(
"EcalRawToRecHit|Producer")<<
"collections uploaded."
104 for (;iRegion!=iRegionEnd;++iRegion){
105 LogDebug(
"EcalRawToRecHit|Producer")<<
"looping over refgetter region: "<<iR<<watcher.
lap();
106 std::vector<EcalRecHit>::const_iterator iRecHit=lgetter->begin_record()+iRegion->start();
107 std::vector<EcalRecHit>::const_iterator iRecHitEnd=lgetter->begin_record()+iRegion->finish();
108 for (;iRecHit!=iRecHitEnd;iRecHit++){
109 LogDebug(
"EcalRawToRecHit|Producer")<<
"dereferencing rechit ref.";
112 LogDebug(
"EcalRawToRecHit|Producer")<<
"subdetId is: "<<EcalNum;
113 rechits->push_back(*iRecHit);
115 LogDebug(
"EcalRawToRecHit|Producer")<<
"looping over refgetter region: "<<iR++<<
" done"<<watcher.
lap();
117 LogDebug(
"EcalRawToRecHit|Producer")<<rechits->size()<<
" rechits to be put."<< watcher.
lap();
119 LogDebug(
"EcalRawToRecHit|Producer")<<
"collections uploaded."
T getParameter(std::string const &) const
~EcalRawToRecHitProducer()
virtual void produce(edm::Event &, const edm::EventSetup &)
std::string rechitCollection_
EcalRawToRecHitProducer(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
boost::indirect_iterator< typename collection_type::const_iterator > const_iterator
std::string EBrechitCollection_
edm::InputTag lsourceTag_
std::string EErechitCollection_