ATLAS Offline Software
Namespaces | Functions
EventTools.cxx File Reference
#include "TopEvent/EventTools.h"
#include "TopEvent/Event.h"
#include "CxxUtils/fpcompare.h"
#include "xAODBase/IParticle.h"
#include "TRandom3.h"
Include dependency graph for EventTools.cxx:

Go to the source code of this file.

Namespaces

 top
 TopConfig A simple configuration that is NOT a singleton.
 

Functions

void top::check (bool thingToCheck, const std::string &usefulFailureMessage)
 Print an error message and terminate if thingToCheck is false. More...
 
double top::deltaR (const xAOD::IParticle &p1, const xAOD::IParticle &p2)
 Calculate the delta-r distance between two particles (e.g. More...
 
double top::deltaPhi (const xAOD::IParticle &p1, const xAOD::IParticle &p2)
 Calculate delta-phi between two particles (e.g. More...
 
double top::mwt (const xAOD::IParticle &lepton, const xAOD::MissingET &met)
 Calculate the transverse mass of the W from the charged lepton and the missing ET. More...
 
double top::ht (const top::Event &event)
 HT calculation. More...
 
double top::invariantMass (const xAOD::IParticle &p1, const xAOD::IParticle &p2)
 Calculate the invariant mass of two particles. More...
 
bool top::isSimulation (const top::Event &event)
 Is this event MC simulation (True) or data (False)? More...
 
bool top::descendingPtSorter (const xAOD::IParticle *p0, const xAOD::IParticle *p1)
 Used when sorting the e, mu, jet, tau containers after CP corrections. More...
 
std::vector< int > top::calculateBootstrapWeights (int nreplicas, int eventNumber, int mcChannelNumber)
 Function used to create poisson weights (mean of 1) for bootstrapping. More...