CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
void produce(edm::Event &ev, const edm::EventSetup &es) override
double vz() const
z coordinate of the reference point on track
Definition: TrackBase.h:661
HIPixelMedianVtxProducer(const edm::ParameterSet &ps)
bool operator()(const reco::Track *t1, const reco::Track *t2)
edm::EDGetTokenT< reco::TrackCollection > theTrackCollection