CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
mkfit::Event::SimLabelFromHits Struct Reference

#include <Event.h>

Public Member Functions

float good_frac () const
 
bool is_set () const
 

Public Attributes

int label = -1
 
int n_hits = 0
 
int n_match = 0
 

Detailed Description

Definition at line 53 of file Event.h.

Member Function Documentation

◆ good_frac()

float mkfit::Event::SimLabelFromHits::good_frac ( ) const
inline

Definition at line 55 of file Event.h.

References n_hits, and n_match.

Referenced by mkfit::MkFinder::selectHitIndices().

55 { return (float)n_match / n_hits; }

◆ is_set()

bool mkfit::Event::SimLabelFromHits::is_set ( ) const
inline

Definition at line 56 of file Event.h.

References label.

Referenced by mkfit::evsi2ssinfo(), and mkfit::MkFinder::selectHitIndices().

56 { return label >= 0; }

Member Data Documentation

◆ label

int mkfit::Event::SimLabelFromHits::label = -1

◆ n_hits

int mkfit::Event::SimLabelFromHits::n_hits = 0

Definition at line 54 of file Event.h.

Referenced by mkfit::evsi2ssinfo(), and good_frac().

◆ n_match

int mkfit::Event::SimLabelFromHits::n_match = 0

Definition at line 54 of file Event.h.

Referenced by mkfit::evsi2ssinfo(), and good_frac().