Crombie Tools
crombie::Uncertainty::UncertaintyInfo Class Reference

#include <Uncertainty.h>

Classes

class  Envelope
 

Public Member Functions

std::string expr (const std::string &key, const std::string &inexpr, const std::string &suff) const
 Change the expression for an uncertainty given by the key. More...
 
template<typename A , typename... Args>
Types::strings exprs (A arg, Args... args) const
 Get all the needed expressions to cover the loaded uncertainties, along with the original expressions. More...
 
Types::strings exprs (const Types::strings &args) const
 
Types::strings exprs (const std::string &arg) const
 
const std::list< SysInfo > & full_systematic_infos () const
 Returns a list maintained by this object of parameters needed to implement all sysematics. More...
 
Types::strings systematics () const
 Get a list of the uncertainty names. More...
 

Private Attributes

Types::map< Envelopeenv_branches
 Key is the name of the uncertainty, the first member of the pair is which bin to use for total events. More...
 
std::list< SysInfofull_infos
 A central list of all the systematics needed to make plots. Maintained here to avoid needing to duplicate it. More...
 
Types::map< std::pair< std::string, Types::strings > > updown_branches
 Key is the name of the uncertainty, the first member of the pair is how the branches are named. More...
 

Friends

std::istream & operator>> (std::istream &is, UncertaintyInfo &config)
 

Detailed Description

Definition at line 35 of file Uncertainty.h.

Member Function Documentation

§ expr()

std::string UncertaintyInfo::expr ( const std::string &  key,
const std::string &  inexpr,
const std::string &  suff 
) const

Change the expression for an uncertainty given by the key.

Parameters
keyThe name of the uncertainty switched to. This pulls out the branch name
inexprThe expression to change in order to match the uncertainty
suffThe suffix to change to, typically "Up" or "Down", but can be any envelope expression too

Definition at line 135 of file Uncertainty.h.

References oldmaketree::branch, and crombie::Uncertainty::SysInfo::suff.

§ exprs() [1/3]

template<typename A , typename... Args>
Types::strings UncertaintyInfo::exprs ( arg,
Args...  args 
) const

Get all the needed expressions to cover the loaded uncertainties, along with the original expressions.

Definition at line 183 of file Uncertainty.h.

§ exprs() [2/3]

Types::strings UncertaintyInfo::exprs ( const Types::strings args) const

Definition at line 173 of file Uncertainty.h.

§ exprs() [3/3]

Types::strings UncertaintyInfo::exprs ( const std::string &  arg) const

Definition at line 160 of file Uncertainty.h.

References Debug::Debug().

§ full_systematic_infos()

const std::list<SysInfo>& crombie::Uncertainty::UncertaintyInfo::full_systematic_infos ( ) const
inline

Returns a list maintained by this object of parameters needed to implement all sysematics.

Definition at line 54 of file Uncertainty.h.

§ systematics()

Types::strings UncertaintyInfo::systematics ( ) const

Get a list of the uncertainty names.

Definition at line 196 of file Uncertainty.h.

Referenced by crombie::Datacard::dumpplots().

Friends And Related Function Documentation

§ operator>>

std::istream& operator>> ( std::istream &  is,
UncertaintyInfo config 
)
friend

Definition at line 78 of file Uncertainty.h.

Member Data Documentation

§ env_branches

Types::map<Envelope> crombie::Uncertainty::UncertaintyInfo::env_branches
private

Key is the name of the uncertainty, the first member of the pair is which bin to use for total events.

Definition at line 70 of file Uncertainty.h.

Referenced by crombie::Uncertainty::operator>>().

§ full_infos

std::list<SysInfo> crombie::Uncertainty::UncertaintyInfo::full_infos
private

A central list of all the systematics needed to make plots. Maintained here to avoid needing to duplicate it.

Definition at line 72 of file Uncertainty.h.

Referenced by crombie::Uncertainty::operator>>().

§ updown_branches

Types::map<std::pair<std::string, Types::strings> > crombie::Uncertainty::UncertaintyInfo::updown_branches
private

Key is the name of the uncertainty, the first member of the pair is how the branches are named.

Definition at line 58 of file Uncertainty.h.

Referenced by crombie::Uncertainty::operator>>().


The documentation for this class was generated from the following file: