25 theOutputRecHitCollections[
input] ==
"none" ?
34 produces<ESRecHitCollection>();
36 produces<ESRecHitCollection>(theOutputRecHitCollections[
input]);
44 produces<EBRecHitCollection>();
46 produces<EBRecHitCollection>(theOutputRecHitCollections[
input]);
54 produces<EERecHitCollection>();
56 produces<EERecHitCollection>(theOutputRecHitCollections[
input]);
64 produces<HBHERecHitCollection>();
66 produces<HBHERecHitCollection>(theOutputRecHitCollections[
input]);
74 produces<HORecHitCollection>();
76 produces<HORecHitCollection>(theOutputRecHitCollections[
input]);
84 produces<HFRecHitCollection>();
86 produces<HFRecHitCollection>(theOutputRecHitCollections[
input]);
118 std::auto_ptr< ESRecHitCollection > copiedESRecHitCollection(
new ESRecHitCollection );
124 copiedESRecHitCollection->reserve(ESRecHits->size());
125 for ( ; itES!=lastES; ++itES++ ) {
127 copiedESRecHitCollection->push_back(aHit);
130 iEvent.
put(copiedESRecHitCollection);
139 std::auto_ptr< EBRecHitCollection > copiedEBRecHitCollection(
new EBRecHitCollection );
145 copiedEBRecHitCollection->reserve(EBRecHits->size());
147 for ( ; itEB!=lastEB; ++itEB++ ) {
149 copiedEBRecHitCollection->push_back(aHit);
152 iEvent.
put(copiedEBRecHitCollection);
161 std::auto_ptr< EERecHitCollection > copiedEERecHitCollection(
new EERecHitCollection );
167 copiedEERecHitCollection->reserve(EERecHits->size());
169 for ( ; itEE!=lastEE; ++itEE++ ) {
171 copiedEERecHitCollection->push_back(aHit);
174 iEvent.
put(copiedEERecHitCollection);
189 copiedHBHERecHitCollection->reserve(HBHERecHits->size());
191 for ( ; itHBHE!=lastHBHE; ++itHBHE++ ) {
193 copiedHBHERecHitCollection->push_back(aHit);
196 iEvent.
put(copiedHBHERecHitCollection);
205 std::auto_ptr< HORecHitCollection > copiedHORecHitCollection(
new HORecHitCollection );
211 copiedHORecHitCollection->reserve(HORecHits->size());
213 for ( ; itHO!=lastHO; ++itHO++ ) {
215 copiedHORecHitCollection->push_back(aHit);
218 iEvent.
put(copiedHORecHitCollection);
227 std::auto_ptr< HFRecHitCollection > copiedHFRecHitCollection(
new HFRecHitCollection );
233 copiedHFRecHitCollection->reserve(HFRecHits->size());
235 for ( ; itHF!=lastHF; ++itHF++ ) {
237 copiedHFRecHitCollection->push_back(aHit);
240 iEvent.
put(copiedHFRecHitCollection);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
virtual void produce(edm::Event &e, const edm::EventSetup &c)
std::vector< bool > theOutputRecHitInstances
std::vector< EcalRecHit >::const_iterator const_iterator
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< unsigned int > theInputRecHitCollectionTypes
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< std::string > theOutputRecHitCollections
std::vector< edm::InputTag > theInputRecHitCollections
virtual ~CaloRecHitCopy()
CaloRecHitCopy(edm::ParameterSet const &p)