CMS 3D CMS Logo

HIPixelMedianVtxProducer.h
Go to the documentation of this file.
1 #ifndef HIPixelMedianVtxProducer_H
2 #define HIPixelMedianVtxProducer_H
3 
6 
9 
10 namespace edm {
11  class Event;
12  class EventSetup;
13 } // namespace edm
14 
16 public:
17  explicit HIPixelMedianVtxProducer(const edm::ParameterSet& ps);
19  void produce(edm::Event& ev, const edm::EventSetup& es) override;
20 
21 private:
22  void beginJob() override{};
23 
25  double thePtMin;
26  unsigned int thePeakFindThresh;
30  double theFitMaxZ;
32 };
33 
34 struct ComparePairs {
35  bool operator()(const reco::Track* t1, const reco::Track* t2) { return (t1->vz() < t2->vz()); };
36 };
37 
38 #endif
bool ev
void beginJob()
Definition: Breakpoints.cc:14
double vz() const
z coordinate of the reference point on track
Definition: TrackBase.h:626
HLT enums.
bool operator()(const reco::Track *t1, const reco::Track *t2)
edm::EDGetTokenT< reco::TrackCollection > theTrackCollection