CMS 3D CMS Logo

Functions
Forest.cc File Reference
#include "L1Trigger/L1TMuonEndCap/interface/bdt/Forest.h"
#include "L1Trigger/L1TMuonEndCap/interface/bdt/Utilities.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "TStopwatch.h"
#include "TString.h"
#include <iostream>
#include <sstream>
#include <algorithm>
#include <iterator>
#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 185 of file Forest.cc.

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

Referenced by emtf::Forest::sortEventVectors().

186 {
187 // Sort the events according to the variable given by the sortingIndex.
188  return e1->data[Event::sortingIndex] < e2->data[Event::sortingIndex];
189 }
std::vector< double > data
Definition: Event.h:31
bool compareEventsById ( Event e1,
Event e2 
)

Definition at line 194 of file Forest.cc.

References emtf::Event::id.

195 {
196 // Sort the events by ID. We need this to produce rate plots.
197  return e1->id < e2->id;
198 }
int id
Definition: Event.h:30