CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
FastLineRecognition::Cluster Struct Reference

cluster of intersection points More...

Public Member Functions

void add (const Point *p1, const Point *p2, double a, double b, double w)
 
 Cluster ()
 
bool operator< (const Cluster &c) const
 

Public Attributes

std::vector< const Point * > contents
 
double S1
 
double Saw
 
double Sbw
 
double Sw
 
double weight
 

Detailed Description

cluster of intersection points

Definition at line 83 of file FastLineRecognition.h.

Constructor & Destructor Documentation

◆ Cluster()

FastLineRecognition::Cluster::Cluster ( )
inline

Definition at line 89 of file FastLineRecognition.h.

89 { return (this->Sw > c.Sw) ? true : false; }

References HltBtagPostValidation_cff::c, and funct::true.

Member Function Documentation

◆ add()

void FastLineRecognition::Cluster::add ( const Point p1,
const Point p2,
double  a,
double  b,
double  w 
)

Definition at line 30 of file FastLineRecognition.cc.

31  {
32  // which points to be added to contents?
33  bool add1 = true, add2 = true;
34  for (vector<const Point *>::const_iterator it = contents.begin(); it != contents.end() && (add1 || add2); ++it) {
35  if ((*it)->hit == p1->hit)
36  add1 = false;
37 
38  if ((*it)->hit == p2->hit)
39  add2 = false;
40  }
41 
42  // add the points
43  if (add1)
44  contents.push_back(p1);
45  if (add2)
46  contents.push_back(p2);
47 
48  // update sums
49  Saw += a * w;
50  Sbw += b * w;
51  Sw += w;
52  S1 += 1.;

References a, b, relmon_rootfiles_spy::contents, p1, p2, and w.

Referenced by counter.Counter::register().

◆ operator<()

bool FastLineRecognition::Cluster::operator< ( const Cluster c) const
inline

Definition at line 93 of file FastLineRecognition.h.

Member Data Documentation

◆ contents

std::vector<const Point *> FastLineRecognition::Cluster::contents

◆ S1

double FastLineRecognition::Cluster::S1

Definition at line 84 of file FastLineRecognition.h.

◆ Saw

double FastLineRecognition::Cluster::Saw

Definition at line 84 of file FastLineRecognition.h.

◆ Sbw

double FastLineRecognition::Cluster::Sbw

Definition at line 84 of file FastLineRecognition.h.

◆ Sw

double FastLineRecognition::Cluster::Sw

Definition at line 84 of file FastLineRecognition.h.

◆ weight

double FastLineRecognition::Cluster::weight
FastLineRecognition::Cluster::Sbw
double Sbw
Definition: FastLineRecognition.h:84
w
const double w
Definition: UKUtility.cc:23
FastLineRecognition::Cluster::S1
double S1
Definition: FastLineRecognition.h:84
p2
double p2[4]
Definition: TauolaWrapper.h:90
b
double b
Definition: hdecay.h:118
funct::true
true
Definition: Factorize.h:173
a
double a
Definition: hdecay.h:119
FastLineRecognition::Cluster::contents
std::vector< const Point * > contents
Definition: FastLineRecognition.h:87
FastLineRecognition::Cluster::Saw
double Saw
Definition: FastLineRecognition.h:84
p1
double p1[4]
Definition: TauolaWrapper.h:89
FastLineRecognition::Cluster::Sw
double Sw
Definition: FastLineRecognition.h:84
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31