33 threshold_{iConfig.getParameter<
double>(
"SumPtFraction")},
34 v_recoTrackToken_{consumes<std::vector<reco::Track>>(iConfig.getParameter<
edm::InputTag>(
"src"))} {
35 produces<std::vector<reco::Track>>();
44 auto isoTracks = std::make_unique<std::vector<reco::Track>>();
49 if (dirtyTracks->empty()) {
55 for (
auto it1 = dirtyTracks->begin(); it1 != dirtyTracks->end(); ++it1) {
56 for (
auto it2 = dirtyTracks->begin(); it2 != dirtyTracks->end(); ++it2) {
60 sumPtInCone += it2->pt();
63 if (sumPtInCone <= threshold_ * it1->
pt()) {
64 isoTracks->push_back(*it1);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
edm::EDGetTokenT< std::vector< reco::Track > > v_recoTrackToken_
IsoTracks(edm::ParameterSet const &)