23 theOutputRecHitCollections[
input] ==
"none" ?
33 produces<ESRecHitCollection>();
35 produces<ESRecHitCollection>(theOutputRecHitCollections[
input]);
44 produces<EBRecHitCollection>();
46 produces<EBRecHitCollection>(theOutputRecHitCollections[
input]);
55 produces<EERecHitCollection>();
57 produces<EERecHitCollection>(theOutputRecHitCollections[
input]);
66 produces<HBHERecHitCollection>();
68 produces<HBHERecHitCollection>(theOutputRecHitCollections[
input]);
77 produces<HORecHitCollection>();
79 produces<HORecHitCollection>(theOutputRecHitCollections[
input]);
88 produces<HFRecHitCollection>();
90 produces<HFRecHitCollection>(theOutputRecHitCollections[
input]);
119 std::auto_ptr< ESRecHitCollection > copiedESRecHitCollection(
new ESRecHitCollection );
125 copiedESRecHitCollection->reserve(ESRecHits->size());
126 for ( ; itES!=lastES; ++itES++ ) {
128 copiedESRecHitCollection->push_back(aHit);
131 iEvent.
put(copiedESRecHitCollection);
140 std::auto_ptr< EBRecHitCollection > copiedEBRecHitCollection(
new EBRecHitCollection );
146 copiedEBRecHitCollection->reserve(EBRecHits->size());
148 for ( ; itEB!=lastEB; ++itEB++ ) {
150 copiedEBRecHitCollection->push_back(aHit);
153 iEvent.
put(copiedEBRecHitCollection);
162 std::auto_ptr< EERecHitCollection > copiedEERecHitCollection(
new EERecHitCollection );
168 copiedEERecHitCollection->reserve(EERecHits->size());
170 for ( ; itEE!=lastEE; ++itEE++ ) {
172 copiedEERecHitCollection->push_back(aHit);
175 iEvent.
put(copiedEERecHitCollection);
190 copiedHBHERecHitCollection->reserve(HBHERecHits->size());
192 for ( ; itHBHE!=lastHBHE; ++itHBHE++ ) {
194 copiedHBHERecHitCollection->push_back(aHit);
197 iEvent.
put(copiedHBHERecHitCollection);
206 std::auto_ptr< HORecHitCollection > copiedHORecHitCollection(
new HORecHitCollection );
212 copiedHORecHitCollection->reserve(HORecHits->size());
214 for ( ; itHO!=lastHO; ++itHO++ ) {
216 copiedHORecHitCollection->push_back(aHit);
219 iEvent.
put(copiedHORecHitCollection);
228 std::auto_ptr< HFRecHitCollection > copiedHFRecHitCollection(
new HFRecHitCollection );
234 copiedHFRecHitCollection->reserve(HFRecHits->size());
236 for ( ; itHF!=lastHF; ++itHF++ ) {
238 copiedHFRecHitCollection->push_back(aHit);
241 iEvent.
put(copiedHFRecHitCollection);
T getParameter(std::string const &) const
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
edm::EDGetTokenT< EERecHitCollection > theEERecHitCollectionToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< EBRecHitCollection > theEBRecHitCollectionToken
#define DEFINE_FWK_MODULE(type)
std::vector< bool > theOutputRecHitInstances
std::vector< EcalRecHit >::const_iterator const_iterator
edm::EDGetTokenT< ESRecHitCollection > theESRecHitCollectionToken
edm::EDGetTokenT< HBHERecHitCollection > theHBHERecHitCollectionToken
static std::string const input
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< HFRecHitCollection > theHFRecHitCollectionToken
std::vector< unsigned int > theInputRecHitCollectionTypes
std::vector< std::string > theOutputRecHitCollections
edm::EDGetTokenT< HORecHitCollection > theHORecHitCollectionToken
std::vector< edm::InputTag > theInputRecHitCollections
virtual ~CaloRecHitCopy()
CaloRecHitCopy(edm::ParameterSet const &p)