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  {
31  hessian_[0] = 0;
32  hessian_[1] = 0;
33  hessian_[2] = 0;
34  }
35 
36  inline PattRecoPeak(double eta, double phi, double mag,
37  const double hessianIn[3], double driftSpeed,
38  double magSpeed, double lifetime,
39  double scale, double nearestDistance,
40  double clusterRadius, double clusterSeparation)
41  : eta_(eta),
42  phi_(phi),
43  magnitude_(mag),
44  speed_(driftSpeed),
45  magSpeed_(magSpeed),
46  lifetime_(lifetime),
47  scale_(scale),
48  nearestD_(nearestDistance),
49  clusterRadius_(clusterRadius),
50  clusterSeparation_(clusterSeparation)
51  {
52  hessian_[0] = hessianIn[0];
53  hessian_[1] = hessianIn[1];
54  hessian_[2] = hessianIn[2];
55  }
56 
57  inline Real eta() const {return eta_;}
58  inline Real phi() const {return phi_;}
59  inline Real magnitude() const {return magnitude_;}
60  inline Real driftSpeed() const {return speed_;}
61  inline Real magSpeed() const {return magSpeed_;}
62  inline Real lifetime() const {return lifetime_;}
63  inline Real scale() const {return scale_;}
64  inline Real nearestNeighborDistance() const {return nearestD_;}
65  inline Real clusterRadius() const {return clusterRadius_;}
66  inline Real clusterSeparation() const {return clusterSeparation_;}
67  inline void hessian(double hessianArray[3]) const
68  {
69  hessianArray[0] = hessian_[0];
70  hessianArray[1] = hessian_[1];
71  hessianArray[2] = hessian_[2];
72  }
73 
74  private:
86  };
87 }
88 
89 #endif // DataFormats_JetReco_PattRecoPeak_h
Real scale() const
Definition: PattRecoPeak.h:63
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:36
Real eta() const
Definition: PattRecoPeak.h:57
Real phi() const
Definition: PattRecoPeak.h:58
Preclusters from FFTJet pattern recognition stage.
Definition: PattRecoPeak.h:16
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Real driftSpeed() const
Definition: PattRecoPeak.h:60
Real nearestNeighborDistance() const
Definition: PattRecoPeak.h:64
Real lifetime() const
Definition: PattRecoPeak.h:62
Real clusterSeparation() const
Definition: PattRecoPeak.h:66
Real magSpeed() const
Definition: PattRecoPeak.h:61
double Real
Real clusterRadius() const
Definition: PattRecoPeak.h:65
Real magnitude() const
Definition: PattRecoPeak.h:59
void hessian(double hessianArray[3]) const
Definition: PattRecoPeak.h:67