The root struct.
More...
#include <RootAddons.h>
|
| 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...
|
| |
◆ 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
-
| name | The name to give the new object. |
| p | list 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
-
| name | The name to give the new object. |
| p | list 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: