test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
Forest.cc File Reference
#include "L1Trigger/L1TMuonEndCap/interface/Forest.h"
#include "L1Trigger/L1TMuonEndCap/interface/Utilities.h"
#include "TStopwatch.h"
#include <iostream>
#include <sstream>
#include <algorithm>
#include <fstream>
#include <utility>

Go to the source code of this file.

Functions

bool compareEvents (Event *e1, Event *e2)
 
bool compareEventsById (Event *e1, Event *e2)
 

Function Documentation

bool compareEvents ( Event e1,
Event e2 
)

Definition at line 153 of file Forest.cc.

References Event::data, and Event::sortingIndex.

Referenced by Forest::sortEventVectors().

154 {
155 // Sort the events according to the variable given by the sortingIndex.
157 }
static Int_t sortingIndex
Definition: Event.h:28
std::vector< Double_t > data
Definition: Event.h:30
bool compareEventsById ( Event e1,
Event e2 
)

Definition at line 162 of file Forest.cc.

References Event::id.

163 {
164 // Sort the events by ID. We need this to produce rate plots.
165  return e1->id < e2->id;
166 }
Int_t id
Definition: Event.h:29