CMS 3D CMS Logo

Event.h
Go to the documentation of this file.
1 // ---------------------------Event.h------------------------------------
4 
5 #ifndef L1Trigger_L1TMuonEndCap_emtf_Event
6 #define L1Trigger_L1TMuonEndCap_emtf_Event
7 
8 #include <vector>
9 #include <iostream>
10 
12 // ----------------------------------------------------------------------
14 
15 namespace emtf {
16 
17 struct Event
18 {
19 
20  double trueValue;
22  double DTPt;
23  double CSCPt;
24  double tmvaPt;
25  double tmvaPt1;
26  int Mode;
27  int Quality;
28 
29  static int sortingIndex;
30  int id;
31  std::vector<double> data;
32 
33  bool operator< (const Event &rhs) const
34  {
35  return data[sortingIndex] < rhs.data[sortingIndex];
36  }
37 
38  void outputEvent()
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  }
50 
51  void resetPredictedValue(){ predictedValue = 0; }
52 };
53 
54 } // end of emtf namespace
55 
56 #endif
double CSCPt
Definition: Event.h:23
void resetPredictedValue()
Definition: Event.h:51
Definition: Event.h:15
int Mode
Definition: Event.h:26
double predictedValue
Definition: Event.h:21
double tmvaPt1
Definition: Event.h:25
double tmvaPt
Definition: Event.h:24
int id
Definition: Event.h:30
double DTPt
Definition: Event.h:22
double trueValue
Definition: Event.h:20
int Quality
Definition: Event.h:27
static int sortingIndex
Definition: Event.h:29
bool operator<(const Event &rhs) const
Definition: Event.h:33
std::vector< double > data
Definition: Event.h:31
void outputEvent()
Definition: Event.h:38