103 produces< DetIdCollection >() ;
137 if( !recHitsHandle.isValid() )
139 edm::LogError(
"ReduceHcalRecHitCollectionProducer") <<
"RecHit collection not found";
149 std::auto_ptr< DetIdCollection > interestingDetIdCollection(
new DetIdCollection() ) ;
150 for(TrackCollection::const_iterator itTrack = tkTracks->begin();
151 itTrack != tkTracks->end();
159 for(std::vector<const HBHERecHit*>::const_iterator
hit = info.
hcalRecHits.begin();
162 DetId hitid=(*hit)->id();
164 if ( (iRecHit != recHitsHandle->end()) && (miniRecHitCollection->find(hitid) == miniRecHitCollection->end()) )
165 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< HBHERecHit >::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_