104 produces< DetIdCollection >() ;
139 if( !recHitsHandle.isValid() )
141 edm::LogError(
"ReduceHcalRecHitCollectionProducer") <<
"RecHit collection not found";
151 std::auto_ptr< DetIdCollection > interestingDetIdCollection(
new DetIdCollection() ) ;
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
std::string reducedHitsCollection_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< HBHERecHitCollection > recHitsToken_
#define DEFINE_FWK_MODULE(type)
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
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< const HBHERecHit * > hcalRecHits
~ReduceHcalRecHitCollectionProducer()
ReduceHcalRecHitCollectionProducer(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::TrackCollection > inputCollectionToken_
TrackDetectorAssociator trackAssociator_
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
edm::EDCollection< DetId > DetIdCollection