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]);
115 std::auto_ptr< ESRecHitCollection > copiedESRecHitCollection(
new ESRecHitCollection );
121 copiedESRecHitCollection->reserve(ESRecHits->size());
122 for ( ; itES!=lastES; ++itES++ ) {
124 copiedESRecHitCollection->push_back(aHit);
127 iEvent.
put(copiedESRecHitCollection);
136 std::auto_ptr< EBRecHitCollection > copiedEBRecHitCollection(
new EBRecHitCollection );
142 copiedEBRecHitCollection->reserve(EBRecHits->size());
144 for ( ; itEB!=lastEB; ++itEB++ ) {
146 copiedEBRecHitCollection->push_back(aHit);
149 iEvent.
put(copiedEBRecHitCollection);
158 std::auto_ptr< EERecHitCollection > copiedEERecHitCollection(
new EERecHitCollection );
164 copiedEERecHitCollection->reserve(EERecHits->size());
166 for ( ; itEE!=lastEE; ++itEE++ ) {
168 copiedEERecHitCollection->push_back(aHit);
171 iEvent.
put(copiedEERecHitCollection);
186 copiedHBHERecHitCollection->reserve(HBHERecHits->size());
188 for ( ; itHBHE!=lastHBHE; ++itHBHE++ ) {
190 copiedHBHERecHitCollection->push_back(aHit);
193 iEvent.
put(copiedHBHERecHitCollection);
202 std::auto_ptr< HORecHitCollection > copiedHORecHitCollection(
new HORecHitCollection );
208 copiedHORecHitCollection->reserve(HORecHits->size());
210 for ( ; itHO!=lastHO; ++itHO++ ) {
212 copiedHORecHitCollection->push_back(aHit);
215 iEvent.
put(copiedHORecHitCollection);
224 std::auto_ptr< HFRecHitCollection > copiedHFRecHitCollection(
new HFRecHitCollection );
230 copiedHFRecHitCollection->reserve(HFRecHits->size());
232 for ( ; itHF!=lastHF; ++itHF++ ) {
234 copiedHFRecHitCollection->push_back(aHit);
237 iEvent.
put(copiedHFRecHitCollection);
T getParameter(std::string const &) const
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
#define DEFINE_FWK_MODULE(type)
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)