Go to the documentation of this file.
101 produces<DetIdCollection>();
128 if (!recHitsHandle.
isValid()) {
129 edm::LogError(
"ReduceHcalRecHitCollectionProducer") <<
"RecHit collection not found";
140 for (TrackCollection::const_iterator itTrack = tkTracks->begin(); itTrack != tkTracks->end(); ++itTrack) {
141 if (itTrack->pt() >
ptcut_) {
145 if (!
info.crossedHcalIds.empty()) {
147 for (std::vector<const HBHERecHit*>::const_iterator
hit =
info.hcalRecHits.begin();
150 DetId hitid = (*hit)->id();
152 if ((iRecHit != recHitsHandle->
end()) && (miniRecHitCollection->find(hitid) == miniRecHitCollection->end()))
153 miniRecHitCollection->push_back(*iRecHit);
std::vector< T >::const_iterator const_iterator
~ReduceHcalRecHitCollectionProducer() override
void useDefaultPropagator()
use the default propagator
edm::EDGetTokenT< HBHERecHitCollection > recHitsToken_
TrackDetectorAssociator trackAssociator_
void produce(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
ReduceHcalRecHitCollectionProducer(const edm::ParameterSet &)
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)
const_iterator end() const
edm::EDGetTokenT< reco::TrackCollection > inputCollectionToken_
Log< level::Error, false > LogError
iterator find(key_type k)
edm::EDCollection< DetId > DetIdCollection
std::string reducedHitsCollection_
T getParameter(std::string const &) const
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
interestingDetIdCollection
std::vector< Track > TrackCollection
collection of Tracks
TrackAssociatorParameters parameters_