1 #ifndef HLTrigger_HLTTrackWithHits_H
30 minN_(iConfig.getParameter<int>(
"MinN")),
31 maxN_(iConfig.getParameter<int>(
"MaxN")),
32 MinBPX_(iConfig.getParameter<int>(
"MinBPX")),
33 MinFPX_(iConfig.getParameter<int>(
"MinFPX")),
34 MinPXL_(iConfig.getParameter<int>(
"MinPXL")),
35 MinPT_(iConfig.getParameter<double>(
"MinPT")) {
45 desc.
add<
int>(
"MinN", 0);
46 desc.
add<
int>(
"MaxN", 99999);
47 desc.
add<
int>(
"MinBPX", 0);
48 desc.
add<
int>(
"MinFPX", 0);
49 desc.
add<
int>(
"MinPXL", 0);
50 desc.
add<
double>(
"MinPT", 0.);
51 descriptions.
add(
"hltTrackWithHits", desc);
60 int s = oHandle->size();
62 for (
int i = 0;
i !=
s; ++
i) {
81 bool answer = (count >=
minN_ && count <=
maxN_);
82 LogDebug(
"HLTTrackWithHits") <<
module(iEvent) <<
" sees: " << s <<
" objects. Only: " << count
83 <<
" 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