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

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

Definition at line 33 of file Event.h.

References data, and sortingIndex.

34  {
35  return data[sortingIndex] < rhs.data[sortingIndex];
36  }
static int sortingIndex
Definition: Event.h:29
std::vector< double > data
Definition: Event.h:31
void emtf::Event::outputEvent ( )
inline

Definition at line 38 of file Event.h.

References gather_cfg::cout, and mps_fire::i.

39  {
40  std::cout << "trueValue = " << trueValue << std::endl;
41  std::cout << "predictedValue = " << predictedValue << std::endl;
42  std::cout << "id = " << id << std::endl;
43  for(unsigned int i=0; i<data.size(); i++)
44  {
45  std::cout << "x"<< i << "=" << data[i] << ", ";
46  }
47  std::cout << std::endl;
48 
49  }
double predictedValue
Definition: Event.h:21
double trueValue
Definition: Event.h:20
std::vector< double > data
Definition: Event.h:31
void emtf::Event::resetPredictedValue ( )
inline

Definition at line 51 of file Event.h.

51 { predictedValue = 0; }
double predictedValue
Definition: Event.h:21

Member Data Documentation

double emtf::Event::CSCPt

Definition at line 23 of file Event.h.

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

Definition at line 22 of file Event.h.

int emtf::Event::id

Definition at line 30 of file Event.h.

Referenced by compareEventsById().

int emtf::Event::Mode

Definition at line 26 of file Event.h.

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

Definition at line 27 of file Event.h.

int Event::sortingIndex = 1
static
double emtf::Event::tmvaPt

Definition at line 24 of file Event.h.

double emtf::Event::tmvaPt1

Definition at line 25 of file Event.h.

double emtf::Event::trueValue