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),
55  scale_(scale),
56  nearestD_(nearestDistance),
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
reco::PattRecoPeak::clusterSeparation
Real clusterSeparation() const
Definition: PattRecoPeak.h:77
reco::PattRecoPeak::mergeTime
Real mergeTime() const
Definition: PattRecoPeak.h:73
reco::PattRecoPeak::clusterSeparation_
Real clusterSeparation_
Definition: PattRecoPeak.h:94
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
reco::PattRecoPeak::speed_
Real speed_
Definition: PattRecoPeak.h:88
reco::PattRecoPeak::nearestNeighborDistance
Real nearestNeighborDistance() const
Definition: PattRecoPeak.h:75
reco::PattRecoPeak::scale_
Real scale_
Definition: PattRecoPeak.h:91
reco::PattRecoPeak::phi
Real phi() const
Definition: PattRecoPeak.h:67
reco::PattRecoPeak::lifetime_
Real lifetime_
Definition: PattRecoPeak.h:90
fftjetcms::Real
double Real
Definition: fftjetTypedefs.h:21
reco::PattRecoPeak::lifetime
Real lifetime() const
Definition: PattRecoPeak.h:71
reco::PattRecoPeak::driftSpeed
Real driftSpeed() const
Definition: PattRecoPeak.h:69
reco::PattRecoPeak::clusterRadius_
Real clusterRadius_
Definition: PattRecoPeak.h:93
reco::PattRecoPeak
Preclusters from FFTJet pattern recognition stage.
Definition: PattRecoPeak.h:16
reco::PattRecoPeak::mergeTime_
Real mergeTime_
Definition: PattRecoPeak.h:97
reco::PattRecoPeak::PattRecoPeak
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
reco::PattRecoPeak::PattRecoPeak
PattRecoPeak()
Definition: PattRecoPeak.h:18
reco::PattRecoPeak::nearestD_
Real nearestD_
Definition: PattRecoPeak.h:92
reco::PattRecoPeak::scale
Real scale() const
Definition: PattRecoPeak.h:74
reco::PattRecoPeak::hessian_
Real hessian_[3]
Definition: PattRecoPeak.h:95
reco::PattRecoPeak::eta
Real eta() const
Definition: PattRecoPeak.h:66
mag
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition: Basic3DVectorLD.h:127
reco::PattRecoPeak::splitTime_
Real splitTime_
Definition: PattRecoPeak.h:96
reco::PattRecoPeak::eta_
Real eta_
Definition: PattRecoPeak.h:85
reco::PattRecoPeak::magSpeed_
Real magSpeed_
Definition: PattRecoPeak.h:89
reco::PattRecoPeak::magnitude
Real magnitude() const
Definition: PattRecoPeak.h:68
reco::PattRecoPeak::magSpeed
Real magSpeed() const
Definition: PattRecoPeak.h:70
reco::PattRecoPeak::phi_
Real phi_
Definition: PattRecoPeak.h:86
reco::PattRecoPeak::magnitude_
Real magnitude_
Definition: PattRecoPeak.h:87
reco::PattRecoPeak::clusterRadius
Real clusterRadius() const
Definition: PattRecoPeak.h:76
reco::PattRecoPeak::hessian
void hessian(double hessianArray[3]) const
Definition: PattRecoPeak.h:78
reco::PattRecoPeak::splitTime
Real splitTime() const
Definition: PattRecoPeak.h:72