104 produces< DetIdCollection >() ;
138 if( !recHitsHandle.isValid() )
140 edm::LogError(
"ReduceHcalRecHitCollectionProducer") <<
"RecHit collection not found";
150 std::auto_ptr< DetIdCollection > interestingDetIdCollection(
new DetIdCollection() ) ;
151 for(TrackCollection::const_iterator itTrack = tkTracks->begin();
152 itTrack != tkTracks->end();
160 for(std::vector<const HBHERecHit*>::const_iterator
hit = info.
hcalRecHits.begin();
163 DetId hitid=(*hit)->id();
165 if ( (iRecHit != recHitsHandle->end()) && (miniRecHitCollection->find(hitid) == miniRecHitCollection->end()) )
166 miniRecHitCollection->push_back(*iRecHit);
T getParameter(std::string const &) const
std::string reducedHitsCollection_
#define DEFINE_FWK_MODULE(type)
void useDefaultPropagator()
use the default propagator
std::vector< Track > TrackCollection
collection of Tracks
std::vector< T >::const_iterator const_iterator
TrackAssociatorParameters parameters_
std::vector< DetId > crossedHcalIds
edm::InputTag inputCollection_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< const HBHERecHit * > hcalRecHits
~ReduceHcalRecHitCollectionProducer()
ReduceHcalRecHitCollectionProducer(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &) override
TrackDetectorAssociator trackAssociator_
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
edm::EDCollection< DetId > DetIdCollection
void loadParameters(const edm::ParameterSet &)
edm::InputTag recHitsLabel_