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 "TRandom3.h"
#include "TStopwatch.h"
#include "TTree.h"
#include "TNtuple.h"
#include "TFile.h"
#include "TH1D.h"
#include "TGraph.h"
#include "TCanvas.h"
#include "TChain.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 173 of file Forest.cc.

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

Referenced by Forest::sortEventVectors().

174 {
175 // Sort the events according to the variable given by the sortingIndex.
177 }
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 182 of file Forest.cc.

References Event::id.

183 {
184 // Sort the events by ID. We need this to produce rate plots.
185  return e1->id < e2->id;
186 }
Int_t id
Definition: Event.h:29