35 ,
threshold_{iConfig.getParameter<
double>(
"SumPtFraction")}
38 produces<std::vector<reco::Track>>();
48 auto isoTracks = std::make_unique<std::vector<reco::Track>>();
53 if (dirtyTracks->empty()) {
58 double sumPtInCone {};
59 for (
auto it1 = dirtyTracks->begin(); it1 != dirtyTracks->end(); ++it1) {
60 for (
auto it2 = dirtyTracks->begin(); it2 != dirtyTracks->end(); ++it2) {
61 if (it1 == it2)
continue;
63 sumPtInCone += it2->pt();
66 if (sumPtInCone <= threshold_*it1->
pt()) {
67 isoTracks->push_back(*it1);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< std::vector< reco::Track > > v_recoTrackToken_
IsoTracks(edm::ParameterSet const &)