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 
11 #ifndef DataFormats_JetReco_PattRecoPeak_h
12 #define DataFormats_JetReco_PattRecoPeak_h
13 
14 namespace reco {
15  template<class Real>
17  {
18  public:
19  inline PattRecoPeak()
20  : eta_(0),
21  phi_(0),
22  magnitude_(0),
23  speed_(-1),
24  magSpeed_(-5),
25  lifetime_(-1),
26  scale_(-1),
27  nearestD_(-1),
28  clusterRadius_(-1),
30  splitTime_(-1),
31  mergeTime_(-1)
32  {
33  hessian_[0] = 0;
34  hessian_[1] = 0;
35  hessian_[2] = 0;
36  }
37 
38  inline PattRecoPeak(double eta, double phi, double mag,
39  const double hessianIn[3], double driftSpeed,
40  double magSpeed, double lifetime,
41  double scale, double nearestDistance,
42  double clusterRadius, double clusterSeparation,
43  double splitT, double mergeT)
44  : eta_(eta),
45  phi_(phi),
46  magnitude_(mag),
47  speed_(driftSpeed),
48  magSpeed_(magSpeed),
49  lifetime_(lifetime),
50  scale_(scale),
51  nearestD_(nearestDistance),
52  clusterRadius_(clusterRadius),
53  clusterSeparation_(clusterSeparation),
54  splitTime_(splitT),
55  mergeTime_(mergeT)
56  {
57  hessian_[0] = hessianIn[0];
58  hessian_[1] = hessianIn[1];
59  hessian_[2] = hessianIn[2];
60  }
61 
62  inline Real eta() const {return eta_;}
63  inline Real phi() const {return phi_;}
64  inline Real magnitude() const {return magnitude_;}
65  inline Real driftSpeed() const {return speed_;}
66  inline Real magSpeed() const {return magSpeed_;}
67  inline Real lifetime() const {return lifetime_;}
68  inline Real splitTime() const {return splitTime_;}
69  inline Real mergeTime() const {return mergeTime_;}
70  inline Real scale() const {return scale_;}
71  inline Real nearestNeighborDistance() const {return nearestD_;}
72  inline Real clusterRadius() const {return clusterRadius_;}
73  inline Real clusterSeparation() const {return clusterSeparation_;}
74  inline void hessian(double hessianArray[3]) const
75  {
76  hessianArray[0] = hessian_[0];
77  hessianArray[1] = hessian_[1];
78  hessianArray[2] = hessian_[2];
79  }
80 
81  private:
95  };
96 }
97 
98 #endif // DataFormats_JetReco_PattRecoPeak_h
Real scale() const
Definition: PattRecoPeak.h:70
Real eta() const
Definition: PattRecoPeak.h:62
Real phi() const
Definition: PattRecoPeak.h:63
Preclusters from FFTJet pattern recognition stage.
Definition: PattRecoPeak.h:16
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Real mergeTime() const
Definition: PattRecoPeak.h:69
Real driftSpeed() const
Definition: PattRecoPeak.h:65
Real nearestNeighborDistance() const
Definition: PattRecoPeak.h:71
Real lifetime() const
Definition: PattRecoPeak.h:67
Real splitTime() const
Definition: PattRecoPeak.h:68
Real clusterSeparation() const
Definition: PattRecoPeak.h:73
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, double splitT, double mergeT)
Definition: PattRecoPeak.h:38
Real magSpeed() const
Definition: PattRecoPeak.h:66
double Real
Real clusterRadius() const
Definition: PattRecoPeak.h:72
Real magnitude() const
Definition: PattRecoPeak.h:64
void hessian(double hessianArray[3]) const
Definition: PattRecoPeak.h:74