RDFAnalysis  0.1.1
Physics analysis with ROOT::RDataFrame
Helpers.h File Reference
#include <type_traits>
#include <TDirectory.h>
#include <ROOT/RDataFrame.hxx>
#include <random>

Go to the source code of this file.

Data Structures

class  range_t< Iterator >
 Helper class to allow iterating through a container without allowing users to modify that container. More...
 
struct  is_std_function< F >
 
struct  is_std_function< std::function< R(Ts...)> >
 

Namespaces

 RDFAnalysis
 

Typedefs

template<typename F , typename T >
using enable_ifn_string_t = std::enable_if_t<!std::is_convertible< F, std::string >{}, T >
 Reduce size of enable_if statements. More...
 

Functions

template<typename Container >
auto as_range (Container &container)
 Make a range_t from a container. More...
 
template<typename Container >
auto as_range (const Container &container)
 Make a range_t from a const container. More...
 
TDirectory * getMkdir (TDirectory *dir, const std::string &name, bool doThrow=true)
 Get a directory, making it if it isn't there already. More...
 
template<typename Map >
Map::mapped_type getDefaultKey (const Map &theMap, const typename Map::key_type &key, const typename Map::key_type &defaultKey)
 Get a value by key, defaulting to a backup key if it is not there. More...
 
unsigned int getNSlots ()
 Get the number of slots used in this session. More...
 
std::string uniqueBranchName (const std::string &stub="GenBranch")
 Could perhaps be more natural in the IBranchNamer? More...
 

Detailed Description

File containing helper classes and functions.