104 produces< DetIdCollection >() ;
141 edm::LogError(
"ReduceHcalRecHitCollectionProducer") <<
"RecHit collection not found";
152 for(TrackCollection::const_iterator itTrack = tkTracks->begin();
153 itTrack != tkTracks->end();
161 for(std::vector<const HBHERecHit*>::const_iterator
hit = info.
hcalRecHits.begin();
164 DetId hitid=(*hit)->id();
166 if ( (iRecHit != recHitsHandle->
end()) && (miniRecHitCollection->find(hitid) == miniRecHitCollection->end()) )
167 miniRecHitCollection->push_back(*iRecHit);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::string reducedHitsCollection_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< HBHERecHitCollection > recHitsToken_
#define DEFINE_FWK_MODULE(type)
interestingDetIdCollection
void useDefaultPropagator()
use the default propagator
std::vector< Track > TrackCollection
collection of Tracks
std::vector< HBHERecHit >::const_iterator const_iterator
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)
TrackAssociatorParameters parameters_
std::vector< DetId > crossedHcalIds
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
~ReduceHcalRecHitCollectionProducer() override
std::vector< const HBHERecHit * > hcalRecHits
ReduceHcalRecHitCollectionProducer(const edm::ParameterSet &)
const_iterator end() const
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::TrackCollection > inputCollectionToken_
TrackDetectorAssociator trackAssociator_
iterator find(key_type k)
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
edm::EDCollection< DetId > DetIdCollection