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 79 of file FastLineRecognition.h.

Constructor & Destructor Documentation

◆ Cluster()

FastLineRecognition::Cluster::Cluster ( )
inline

Member Function Documentation

◆ add()

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

Definition at line 31 of file FastLineRecognition.cc.

References a, b, relmon_rootfiles_spy::contents, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, and w().

Referenced by counter.Counter::register().

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.;
53 }
T w() const
std::vector< const Point * > contents
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

◆ operator<()

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

Definition at line 89 of file FastLineRecognition.h.

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

Member Data Documentation

◆ contents

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

Definition at line 83 of file FastLineRecognition.h.

Referenced by dqm_interfaces.DirFetcher::run().

◆ S1

double FastLineRecognition::Cluster::S1

Definition at line 80 of file FastLineRecognition.h.

◆ Saw

double FastLineRecognition::Cluster::Saw

Definition at line 80 of file FastLineRecognition.h.

◆ Sbw

double FastLineRecognition::Cluster::Sbw

Definition at line 80 of file FastLineRecognition.h.

◆ Sw

double FastLineRecognition::Cluster::Sw

Definition at line 80 of file FastLineRecognition.h.

◆ weight

double FastLineRecognition::Cluster::weight