13 #ifndef TauAnalysis_MCEmbeddingTools_TrackerCleaner_H 14 #define TauAnalysis_MCEmbeddingTools_TrackerCleaner_H 52 std::map<std::string, edm::EDGetTokenT<TrackClusterCollection > >
inputs_;
64 std::vector<edm::InputTag> inCollections = iConfig.
getParameter<std::vector<edm::InputTag> >(
"oldCollection");
65 for (
auto inCollection : inCollections){
66 inputs_[inCollection.instance()] = consumes<TrackClusterCollection >(inCollection);
67 produces<TrackClusterCollection>(inCollection.instance());
94 iEvent.
getByToken(input_.second, inputClusters);
96 std::vector<bool> vetodClusters;
98 vetodClusters.resize(inputClusters->dataSize(),
false);
101 if(!iMuon->isGlobalMuon() )
continue;
102 const reco::Track* mutrack = iMuon->globalTrack().get();
106 if(!(murechit).isValid())
continue;
111 vetodClusters[cluster.key()]=
true;
121 DetId detIdObject( clustSet->detId() );
125 if (vetodClusters[idx-1])
continue;
127 spc.push_back(*clustIt);
T getParameter(std::string const &) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetTokenT< edm::View< pat::Muon > > mu_input_
data_type const * const_iterator
TrackerCleaner(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
~TrackerCleaner() override
const_iterator begin() const
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
std::map< std::string, edm::EDGetTokenT< TrackClusterCollection > > inputs_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
virtual OmniClusterRef const & firstClusterRef() const =0
const_iterator end() const
bool match_rechit_type(const TrackingRecHit &murechit)
edmNew::DetSetVector< T > TrackClusterCollection
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.