1 #ifndef HLTrigger_HLTTrackWithHits_H
29 minN_(iConfig.getParameter<int>(
"MinN")),
30 maxN_(iConfig.getParameter<int>(
"MaxN")),
31 MinBPX_(iConfig.getParameter<int>(
"MinBPX")),
32 MinFPX_(iConfig.getParameter<int>(
"MinFPX")),
33 MinPXL_(iConfig.getParameter<int>(
"MinPXL")),
34 MinPT_(iConfig.getParameter<double>(
"MinPT")) {
44 desc.
add<
int>(
"MinN", 0);
45 desc.
add<
int>(
"MaxN", 99999);
46 desc.
add<
int>(
"MinBPX", 0);
47 desc.
add<
int>(
"MinFPX", 0);
48 desc.
add<
int>(
"MinPXL", 0);
49 desc.
add<
double>(
"MinPT", 0.);
50 descriptions.
add(
"hltTrackWithHits", desc);
59 int s = oHandle->size();
61 for (
int i = 0;
i !=
s; ++
i) {
80 bool answer = (count >=
minN_ && count <=
maxN_);
81 LogDebug(
"HLTTrackWithHits") <<
module(iEvent) <<
" sees: " << s <<
" objects. Only: " << count
82 <<
" satisfy the hit requirement. Filter answer is: " << (answer ?
"true" :
"false")
bool hltFilter(edm::Event &iEvent, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
int numberOfValidPixelBarrelHits() const
double pt() const
track transverse momentum
int module(edm::Event const &) const
HLTTrackWithHits(const edm::ParameterSet &iConfig)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int numberOfValidPixelEndcapHits() const
edm::EDGetTokenT< reco::TrackCollection > srcToken_
int numberOfValidPixelHits() const
~HLTTrackWithHits() override