RDFAnalysis  0.1.1
Physics analysis with ROOT::RDataFrame
ScheduleNamer Class Reference

Namer class to be used by the scheduler. More...

#include <ScheduleNamer.h>

Inheritance diagram for ScheduleNamer:
IBranchNamer

Public Member Functions

 ScheduleNamer (const IBranchNamer &other)
 Create the namer by copying the list of branches from another namer. More...
 
 ~ScheduleNamer ()
 
std::string nameBranch (const std::string &branch, const std::string &="") const override
 Get the full name of a branch. More...
 
std::string createBranch (const std::string &branch, const std::string &="") override
 Create a new branch. More...
 
bool exists (const std::string &branch, const std::string &="") const override
 Test if a specific variation of a specific branch exists. More...
 
const std::string & nominalName () const override
 Get the name of the nominal variation. More...
 
std::vector< std::string > systematics () const override
 Get all systematics. More...
 
std::set< std::string > systematicsAffecting (const std::string &="") const override
 Get all systematics affecting a base branch name. More...
 
std::vector< std::string > branches () const override
 Get all branch base names. More...
 
void readBranchList (const std::map< std::string, ROOT::RDF::RNode > &) override
 Read branch lists from a set of rnodes. More...
 
std::unique_ptr< IBranchNamercopy () const override
 Make a copy of this class. More...
 
- Public Member Functions inherited from IBranchNamer
virtual ~IBranchNamer ()
 
virtual std::vector< std::string > nameBranches (const std::vector< std::string > &branches, const std::string &systName="") const
 Get the full names of a list of branches. More...
 
virtual std::set< std::string > systematicsAffecting (const std::vector< std::string > &branches) const
 Get all the systematics affecting a set of columns. More...
 
virtual std::pair< std::string, std::vector< std::string > > expandExpression (const std::string &expression) const
 Expand a C++ expression into a pseudo-functional form. More...
 
virtual std::string interpretExpression (const std::string &expression, const std::vector< std::string > &branches, const std::string &systematic)
 Interpret an expression for a given systematic variation. More...
 

Detailed Description

Namer class to be used by the scheduler.

This is required to recognise variables in the scheduling step. This is only used for its ability to interpret string expressions and extract the input variables from them. This means that a lot of the functions are essentially no-op.

Constructor & Destructor Documentation

ScheduleNamer ( const IBranchNamer other)
inline

Create the namer by copying the list of branches from another namer.

Parameters
otherThe namer to copy from.
~ScheduleNamer ( )
inline

Member Function Documentation

std::vector<std::string> branches ( ) const
inlineoverridevirtual

Get all branch base names.

Implements IBranchNamer.

std::unique_ptr<IBranchNamer> copy ( ) const
inlineoverridevirtual

Make a copy of this class.

Implements IBranchNamer.

std::string createBranch ( const std::string &  branch,
const std::string &  = "" 
)
inlineoverridevirtual

Create a new branch.

Parameters
branchThe base name of the branch

Implements IBranchNamer.

bool exists ( const std::string &  branch,
const std::string &  = "" 
) const
inlineoverridevirtual

Test if a specific variation of a specific branch exists.

Parameters
branchThe base name of the branch

Implements IBranchNamer.

std::string nameBranch ( const std::string &  branch,
const std::string &  = "" 
) const
inlineoverridevirtual

Get the full name of a branch.

Parameters
branchThe base name of the branch

The scheduler does not know about systematics so just returns the same name.

Implements IBranchNamer.

const std::string& nominalName ( ) const
inlineoverridevirtual

Get the name of the nominal variation.

Implements IBranchNamer.

void readBranchList ( const std::map< std::string, ROOT::RDF::RNode > &  )
inlineoverridevirtual

Read branch lists from a set of rnodes.

Implements IBranchNamer.

std::vector<std::string> systematics ( ) const
inlineoverridevirtual

Get all systematics.

Implements IBranchNamer.

std::set<std::string> systematicsAffecting ( const std::string &  = "") const
inlineoverridevirtual

Get all systematics affecting a base branch name.

Implements IBranchNamer.


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