19 std::vector<edm::InputTag> inCollections = iConfig.
getParameter<std::vector<edm::InputTag>>(
"oldCollection");
20 for (
const auto &inCollection : inCollections) {
21 inputs_[inCollection.instance()] = consumes<TrackClusterCollection>(inCollection);
22 produces<TrackClusterCollection>(inCollection.instance());
36 iEvent.getByToken(mu_input_, muonHandle);
39 for (
auto input_ : inputs_) {
43 std::vector<bool> vetodClusters;
48 if (!iMuon->isGlobalMuon())
50 const reco::Track *mutrack = iMuon->globalTrack().get();
53 if (!(murechit).isValid())
56 if (match_rechit_type(murechit)) {
59 vetodClusters[cluster.key()] =
true;
73 DetId detIdObject(clustSet->detId());
78 if (vetodClusters[
idx - 1])
80 spc.push_back(*clustIt);
100 const std::type_info &hit_type =
typeid(murechit);
115 const std::type_info &hit_type =
typeid(murechit);
T getParameter(std::string const &) const
TrackerCleaner< SiPixelCluster > PixelColCleaner
data_type const * const_iterator
TrackerCleaner(const edm::ParameterSet &)
muons
the two sets of parameters below are mutually exclusive, depending if RECO or ALCARECO is used the us...
void produce(edm::Event &, const edm::EventSetup &) override
~TrackerCleaner() override
TrackerCleaner< SiStripCluster > StripColCleaner
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
bool isMatched(TrackingRecHit const &hit)
#define DEFINE_FWK_MODULE(type)
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
std::map< std::string, edm::EDGetTokenT< TrackClusterCollection > > inputs_
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
virtual OmniClusterRef const & firstClusterRef() const =0
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
bool match_rechit_type(const TrackingRecHit &murechit)