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 155 of file Forest.cc.

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

Referenced by L1TForest::sortEventVectors().

156 {
157  // Sort the events according to the variable given by the sortingIndex.
159 }
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 164 of file Forest.cc.

References Event::id.

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