1 #ifndef HLTrigger_HLTTrackWithHits_H
30 src_(iConfig.getParameter<edm::InputTag>(
"src")),
31 minN_(iConfig.getParameter<int>(
"MinN")),
32 maxN_(iConfig.getParameter<int>(
"MaxN")),
33 MinBPX_(iConfig.getParameter<int>(
"MinBPX")),
34 MinFPX_(iConfig.getParameter<int>(
"MinFPX")),
35 MinPXL_(iConfig.getParameter<int>(
"MinPXL")),
36 MinPT_(iConfig.getParameter<double>(
"MinPT"))
48 desc.
add<
int>(
"MinN",0);
49 desc.
add<
int>(
"MaxN",99999);
50 desc.
add<
int>(
"MinBPX",0);
51 desc.
add<
int>(
"MinFPX",0);
52 desc.
add<
int>(
"MinPXL",0);
53 desc.
add<
double>(
"MinPT",0.);
54 descriptions.
add(
"hltTrackWithHits",desc);
62 int s=oHandle->size();
64 for (
int i=0;
i!=
s;++
i){
74 LogDebug(
"HLTTrackWithHits")<<
module(iEvent)<<
" sees: "<<s<<
" objects. Only: "<<count<<
" satisfy the hit requirement. Filter answer is: "<<(answer?
"true":
"false")<<std::endl;
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)
virtual bool hltFilter(edm::Event &iEvent, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
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