CMS 3D CMS Logo

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

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

Referenced by L1TForest::sortEventVectors().

158 {
159  // Sort the events according to the variable given by the sortingIndex.
160  return e1->data[Event::sortingIndex] < e2->data[Event::sortingIndex];
161 }
std::vector< Double_t > data
Definition: Event.h:30
bool compareEventsById ( Event e1,
Event e2 
)

Definition at line 166 of file Forest.cc.

References emtf::Event::id.

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