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"))
47 desc.
add<
int>(
"MinN",0);
48 desc.
add<
int>(
"MaxN",99999);
49 desc.
add<
int>(
"MinBPX",0);
50 desc.
add<
int>(
"MinFPX",0);
51 desc.
add<
int>(
"MinPXL",0);
52 descriptions.
add(
"hltTrackWithHits",desc);
60 int s=oHandle->size();
62 for (
int i=0;
i!=
s;++
i){
71 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
int module(edm::Event const &) const
HLTTrackWithHits(const edm::ParameterSet &iConfig)
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
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)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int numberOfValidPixelEndcapHits() const
edm::EDGetTokenT< reco::TrackCollection > srcToken_
int numberOfValidPixelHits() const