CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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
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
tuple cout
Definition: gather_cfg.py:144
std::vector< double > data
Definition: Event.h:29
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

double emtf::Event::CSCPt

Definition at line 21 of file Event.h.

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

Definition at line 20 of file Event.h.

int emtf::Event::id

Definition at line 28 of file Event.h.

Referenced by compareEventsById().

int emtf::Event::Mode

Definition at line 24 of file Event.h.

double emtf::Event::predictedValue
int emtf::Event::Quality

Definition at line 25 of file Event.h.

int Event::sortingIndex = 1
static

Definition at line 27 of file Event.h.

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

double emtf::Event::tmvaPt

Definition at line 22 of file Event.h.

double emtf::Event::tmvaPt1

Definition at line 23 of file Event.h.

double emtf::Event::trueValue