CMS 3D CMS Logo

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>
16  class PattRecoPeak {
17  public:
18  inline PattRecoPeak()
19  : eta_(0),
20  phi_(0),
21  magnitude_(0),
22  speed_(-1),
23  magSpeed_(-5),
24  lifetime_(-1),
25  scale_(-1),
26  nearestD_(-1),
27  clusterRadius_(-1),
29  splitTime_(-1),
30  mergeTime_(-1) {
31  hessian_[0] = 0;
32  hessian_[1] = 0;
33  hessian_[2] = 0;
34  }
35 
36  inline PattRecoPeak(double eta,
37  double phi,
38  double mag,
39  const double hessianIn[3],
40  double driftSpeed,
41  double magSpeed,
42  double lifetime,
43  double scale,
44  double nearestDistance,
45  double clusterRadius,
46  double clusterSeparation,
47  double splitT,
48  double mergeT)
49  : eta_(eta),
50  phi_(phi),
51  magnitude_(mag),
52  speed_(driftSpeed),
53  magSpeed_(magSpeed),
54  lifetime_(lifetime),
55  scale_(scale),
56  nearestD_(nearestDistance),
57  clusterRadius_(clusterRadius),
58  clusterSeparation_(clusterSeparation),
59  splitTime_(splitT),
60  mergeTime_(mergeT) {
61  hessian_[0] = hessianIn[0];
62  hessian_[1] = hessianIn[1];
63  hessian_[2] = hessianIn[2];
64  }
65 
66  inline Real eta() const { return eta_; }
67  inline Real phi() const { return phi_; }
68  inline Real magnitude() const { return magnitude_; }
69  inline Real driftSpeed() const { return speed_; }
70  inline Real magSpeed() const { return magSpeed_; }
71  inline Real lifetime() const { return lifetime_; }
72  inline Real splitTime() const { return splitTime_; }
73  inline Real mergeTime() const { return mergeTime_; }
74  inline Real scale() const { return scale_; }
75  inline Real nearestNeighborDistance() const { return nearestD_; }
76  inline Real clusterRadius() const { return clusterRadius_; }
77  inline Real clusterSeparation() const { return clusterSeparation_; }
78  inline void hessian(double hessianArray[3]) const {
79  hessianArray[0] = hessian_[0];
80  hessianArray[1] = hessian_[1];
81  hessianArray[2] = hessian_[2];
82  }
83 
84  private:
98  };
99 } // namespace reco
100 
101 #endif // DataFormats_JetReco_PattRecoPeak_h
Real scale() const
Definition: PattRecoPeak.h:74
Real eta() const
Definition: PattRecoPeak.h:66
Real phi() const
Definition: PattRecoPeak.h:67
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:73
Real driftSpeed() const
Definition: PattRecoPeak.h:69
Real nearestNeighborDistance() const
Definition: PattRecoPeak.h:75
Real lifetime() const
Definition: PattRecoPeak.h:71
Real splitTime() const
Definition: PattRecoPeak.h:72
Real clusterSeparation() const
Definition: PattRecoPeak.h:77
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:36
Real magSpeed() const
Definition: PattRecoPeak.h:70
double Real
fixed size matrix
Real clusterRadius() const
Definition: PattRecoPeak.h:76
Real magnitude() const
Definition: PattRecoPeak.h:68
void hessian(double hessianArray[3]) const
Definition: PattRecoPeak.h:78