gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
Utils.cpp File Reference
#include "gambit/ColliderBit/Utils.hpp"
#include "gambit/Utils/threadsafe_rng.hpp"
#include <iostream>
Include dependency graph for Utils.cpp:

Go to the source code of this file.

Namespaces

 Gambit
 TODO: see if we can use this one:
 
 Gambit::ColliderBit
 

Functions

Random booleans sampled from efficiency maps
bool Gambit::ColliderBit::random_bool (double eff)
 Return a random true/false at a success rate given by a number. More...
 
Random filtering by efficiency
void Gambit::ColliderBit::filtereff (std::vector< const HEPUtils::Particle *> &particles, double eff, bool do_delete=false)
 Utility function for filtering a supplied particle vector by sampling wrt an efficiency scalar. More...
 
void Gambit::ColliderBit::filtereff (std::vector< const HEPUtils::Particle *> &particles, std::function< double(const HEPUtils::Particle *)> eff_fn, bool do_delete=false)
 Utility function for filtering a supplied particle vector by sampling an efficiency returned by a provided function object. More...
 
void Gambit::ColliderBit::filtereff_pt (std::vector< const HEPUtils::Particle *> &particles, const HEPUtils::BinnedFn1D< double > &eff_pt, bool do_delete=false)
 Utility function for filtering a supplied particle vector by sampling wrt a binned 1D efficiency map in pT. More...
 
void Gambit::ColliderBit::filtereff_etapt (std::vector< const HEPUtils::Particle *> &particles, const HEPUtils::BinnedFn2D< double > &eff_etapt, bool do_delete=false)
 Utility function for filtering a supplied particle vector by sampling wrt a binned 2D efficiency map in |eta| and pT. More...
 
Tagging
std::vector< std::vector< const HEPUtils::Particle * > > Gambit::ColliderBit::getSFOSpairs (std::vector< const HEPUtils::Particle *> particles)
 Utility function for returning a collection of same-flavour, oppsosite-sign particle pairs. More...
 
std::vector< std::vector< const HEPUtils::Particle * > > Gambit::ColliderBit::getOSpairs (std::vector< const HEPUtils::Particle *> particles)
 Utility function for returning a collection of oppsosite-sign particle pairs. More...
 
std::vector< std::vector< const HEPUtils::Particle * > > Gambit::ColliderBit::getSSpairs (std::vector< const HEPUtils::Particle *> particles)
 Utility function for returning a collection of same-sign particle pairs. More...