21 low_probability_fraction_cut = iConfig.
getUntrackedParameter<
double>(
"low_probability_fraction_cut", 0.4 );
33 double low_probability_fraction = -999999.9;
35 float n_hits_low_prob = 0.0;
36 float n_hits_barrel = 0.0;
42 reco::TrackCollection::const_iterator tciter;
46 if ( (
int)tracks->size() > 0 )
49 for ( tciter=tracks->begin(); tciter!=tracks->end(); ++tciter)
61 DetId detId = (*it)->geographicalId();
66 n_hits_barrel = n_hits_barrel + 1.0;
70 if ( pixel_hit_probability <= 0.0 )
71 n_hits_low_prob = n_hits_low_prob + 1.0;
83 bool is_collision =
false;
85 bool is_other =
false;
87 if ( n_hits_barrel > 0.0 )
89 low_probability_fraction = n_hits_low_prob / n_hits_barrel;
91 if ( low_probability_fraction < 0.4 )
99 if ( ( select_collision && is_collision ) ||
100 ( select_pkam && is_pkam ) ||
101 ( select_other && is_other ) )
T getUntrackedParameter(std::string const &, T const &) const
float clusterProbability(unsigned int flags=0) const
std::vector< Track > TrackCollection
collection of Tracks
~FilterScrapingPixelProbability() override
#define DEFINE_FWK_MODULE(type)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
bool accepted(std::vector< std::string_view > const &, std::string_view)
const std::vector< reco::CandidatePtr > & tracks_
bool filter(edm::Event &, const edm::EventSetup &) override
FilterScrapingPixelProbability(const edm::ParameterSet &)
def apply_filter(orm_query, orm_class, attribute, value)