CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes
emtf::Event Struct Reference

#include <Event.h>

Public Member Functions

bool operator< (const Event &rhs) const
 
void outputEvent ()
 
void resetPredictedValue ()
 

Public Attributes

double CSCPt
 
std::vector< double > data
 
double DTPt
 
int id
 
int Mode
 
double predictedValue
 
int Quality
 
double tmvaPt
 
double tmvaPt1
 
double trueValue
 

Static Public Attributes

static int sortingIndex = 1
 

Detailed Description

Definition at line 17 of file Event.h.

Member Function Documentation

◆ operator<()

bool emtf::Event::operator< ( const Event rhs) const
inline

Definition at line 31 of file Event.h.

References data, and sortingIndex.

31 { return data[sortingIndex] < rhs.data[sortingIndex]; }
static int sortingIndex
Definition: Event.h:27
std::vector< double > data
Definition: Event.h:29

◆ outputEvent()

void emtf::Event::outputEvent ( )
inline

Definition at line 33 of file Event.h.

References gather_cfg::cout, data, mps_fire::i, predictedValue, and trueValue.

33  {
34  std::cout << "trueValue = " << trueValue << std::endl;
35  std::cout << "predictedValue = " << predictedValue << std::endl;
36  std::cout << "id = " << id << std::endl;
37  for (unsigned int i = 0; i < data.size(); i++) {
38  std::cout << "x" << i << "=" << data[i] << ", ";
39  }
40  std::cout << std::endl;
41  }
double predictedValue
Definition: Event.h:19
double trueValue
Definition: Event.h:18
std::vector< double > data
Definition: Event.h:29

◆ resetPredictedValue()

void emtf::Event::resetPredictedValue ( )
inline

Definition at line 43 of file Event.h.

References predictedValue.

43 { predictedValue = 0; }
double predictedValue
Definition: Event.h:19

Member Data Documentation

◆ CSCPt

double emtf::Event::CSCPt

Definition at line 21 of file Event.h.

◆ data

std::vector<double> emtf::Event::data

◆ DTPt

double emtf::Event::DTPt

Definition at line 20 of file Event.h.

◆ id

int emtf::Event::id

Definition at line 28 of file Event.h.

Referenced by compareEventsById().

◆ Mode

int emtf::Event::Mode

Definition at line 24 of file Event.h.

◆ predictedValue

double emtf::Event::predictedValue

Definition at line 19 of file Event.h.

Referenced by outputEvent(), and resetPredictedValue().

◆ Quality

int emtf::Event::Quality

Definition at line 25 of file Event.h.

◆ sortingIndex

int Event::sortingIndex = 1
static

Definition at line 27 of file Event.h.

Referenced by compareEvents(), operator<(), and emtf::Forest::sortEventVectors().

◆ tmvaPt

double emtf::Event::tmvaPt

Definition at line 22 of file Event.h.

◆ tmvaPt1

double emtf::Event::tmvaPt1

Definition at line 23 of file Event.h.

◆ trueValue

double emtf::Event::trueValue

Definition at line 18 of file Event.h.

Referenced by outputEvent().