CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PattRecoPeak.h
Go to the documentation of this file.
1 
12 #ifndef DataFormats_JetReco_PattRecoPeak_h
13 #define DataFormats_JetReco_PattRecoPeak_h
14 
15 namespace reco {
16  template<class Real>
18  {
19  public:
20  inline PattRecoPeak()
21  : eta_(0),
22  phi_(0),
23  magnitude_(0),
24  speed_(-1),
25  magSpeed_(-5),
26  lifetime_(-1),
27  scale_(-1),
28  nearestD_(-1),
29  clusterRadius_(-1),
31  {
32  hessian_[0] = 0;
33  hessian_[1] = 0;
34  hessian_[2] = 0;
35  }
36 
37  inline PattRecoPeak(double eta, double phi, double mag,
38  const double hessianIn[3], double driftSpeed,
39  double magSpeed, double lifetime,
40  double scale, double nearestDistance,
41  double clusterRadius, double clusterSeparation)
42  : eta_(eta),
43  phi_(phi),
44  magnitude_(mag),
45  speed_(driftSpeed),
46  magSpeed_(magSpeed),
47  lifetime_(lifetime),
48  scale_(scale),
49  nearestD_(nearestDistance),
50  clusterRadius_(clusterRadius),
51  clusterSeparation_(clusterSeparation)
52  {
53  hessian_[0] = hessianIn[0];
54  hessian_[1] = hessianIn[1];
55  hessian_[2] = hessianIn[2];
56  }
57 
58  inline Real eta() const {return eta_;}
59  inline Real phi() const {return phi_;}
60  inline Real magnitude() const {return magnitude_;}
61  inline Real driftSpeed() const {return speed_;}
62  inline Real magSpeed() const {return magSpeed_;}
63  inline Real lifetime() const {return lifetime_;}
64  inline Real scale() const {return scale_;}
65  inline Real nearestNeighborDistance() const {return nearestD_;}
66  inline Real clusterRadius() const {return clusterRadius_;}
67  inline Real clusterSeparation() const {return clusterSeparation_;}
68  inline void hessian(double hessianArray[3]) const
69  {
70  hessianArray[0] = hessian_[0];
71  hessianArray[1] = hessian_[1];
72  hessianArray[2] = hessian_[2];
73  }
74 
75  private:
87  };
88 }
89 
90 #endif // DataFormats_JetReco_PattRecoPeak_h
Real scale() const
Definition: PattRecoPeak.h:64
PattRecoPeak(double eta, double phi, double mag, const double hessianIn[3], double driftSpeed, double magSpeed, double lifetime, double scale, double nearestDistance, double clusterRadius, double clusterSeparation)
Definition: PattRecoPeak.h:37
Real eta() const
Definition: PattRecoPeak.h:58
Real phi() const
Definition: PattRecoPeak.h:59
Preclusters from FFTJet pattern recognition stage.
Definition: PattRecoPeak.h:17
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Real driftSpeed() const
Definition: PattRecoPeak.h:61
Real nearestNeighborDistance() const
Definition: PattRecoPeak.h:65
Real lifetime() const
Definition: PattRecoPeak.h:63
Real clusterSeparation() const
Definition: PattRecoPeak.h:67
Real magSpeed() const
Definition: PattRecoPeak.h:62
double Real
Real clusterRadius() const
Definition: PattRecoPeak.h:66
Real magnitude() const
Definition: PattRecoPeak.h:60
void hessian(double hessianArray[3]) const
Definition: PattRecoPeak.h:68