ant
A2 ant: class-based analysis framework
ant::analysis::utils::root Struct Reference

The root struct. More...

#include <RootAddons.h>

Static Public Member Functions

static std::shared_ptr< TCutG > makeTCutG (const std::string &name, const std::initializer_list< std::pair< double, double >> &p)
 Create a TCutG from a list of points. More...
 
static std::shared_ptr< TGraph > makeTGraph (const std::initializer_list< std::pair< double, double >> &p)
 Create a TGraph from a list of points. More...
 

Detailed Description

The root struct.

Member Function Documentation

◆ makeTCutG()

std::shared_ptr< TCutG > root::makeTCutG ( const std::string &  name,
const std::initializer_list< std::pair< double, double >> &  p 
)
static

Create a TCutG from a list of points.

Parameters
nameThe name to give the new object.
plist of points of doubles (x,y). Example {{1,1},{2,3},{4,2}}
Returns
a new TGutG as shared pointer
Bug:
Don't give the same name, including "" to more than one TCutG. Might lead to crashes during ROOT cleanup. This is a ROOT bug.

◆ makeTGraph()

std::shared_ptr< TGraph > root::makeTGraph ( const std::initializer_list< std::pair< double, double >> &  p)
static

Create a TGraph from a list of points.

Parameters
nameThe name to give the new object.
plist of points of doubles (x,y). Example {{1,1},{2,3},{4,2}}
Returns
a new TGraph as shared pointer

The documentation for this struct was generated from the following files: