HighLAND
|
This namespace contains a set of general utilities for drawing. More...
Enumerations | |
enum | OptionEnum { kNOERROR =0, kAREA } |
Functions | |
std::string | ToUpper (const std::string &str) |
std::string | GetString (int code) |
convert integer to string | |
std::string | GetString (double code) |
convert double to string | |
bool | TreeHasVar (TTree *tree, const std::string &var) |
Check wether the tree has a given variable. | |
int | GetVarFromTree (TTree *tree, const std::string &var) |
Get the Value of an integer variable from the tree. | |
int | GetNWeights (TTree *tree) |
get the number of weights in the tree | |
int | GetNToys (TTree *tree) |
get the number of weights in the tree | |
int | GetRefToy (TTree *tree) |
get the reference toy in the tree | |
int | GetVarFromExperiment (const std::string &var, Experiment &exp, const std::string &groupName="all", const std::string &mcSampleName="all") |
Get the Value of an integer variable from the experiment. | |
void | NormalizeVariableBinning (TH1 *h, int mode, const std::string &opt, Double_t &minwidth) |
Normalize bin contents by bin width. return the with of the bin with minimum width. | |
void | NormalizeVariableBinning (TH1 *h, int mode, const std::string &opt) |
Normalize bin contents by bin width. | |
bool | CheckOption (const std::string &uopt, const std::string &this_opt) |
Check if specific option exists, and if so if it appears in option field. | |
bool | CheckOption (const std::string &uopt, OptionEnum this_opt) |
Same as previous using enum instead of string. | |
bool | CheckInternalOption (const std::string &uopt, const std::string &this_opt) |
Check if specific option appears in option field (don't check if it exists: Added with AddOption) | |
std::string | ConvertOption (OptionEnum this_opt) |
convert enum option to string | |
void | ExplainOption (OptionEnum opt) |
Explain a given option given as enum. | |
void | ExplainOption (const std::string &opt) |
Explain a given option. | |
bool | IsValidOption (const std::string &opt) |
Check if the option is in the list of available options (added with AddOption) | |
bool | ContainValidOptions (const std::string &uopt) |
Check if the input string contails only valid options. | |
void | AddOption (const std::string &opt, const std::string &info) |
Add option as valid, provided name and exlaination. | |
void | BuildOptions () |
Build the map of valid options with AddOption. More... | |
void | ListOptions () |
List sll valid options and a description of each of them. | |
void | AddLegendEntry (TLegend *leg, TObject *ht, const std::string &type, const std::string &opt) |
Add an entry to the Legend and resize it. | |
Variables | |
double | legendEntryHeight =0.05 |
This namespace contains a set of general utilities for drawing.
void drawUtils::BuildOptions | ( | ) |
Build the map of valid options with AddOption.
[DrawingToolsOptions]
[DrawingToolsOptions]
Definition at line 286 of file DrawingUtils.cxx.
std::string drawUtils::ToUpper | ( | const std::string & | str | ) |
Convert a string to upper-case, so we can do case-insensitive comparisons when parsing the "opt" parameter, for example.
Definition at line 9 of file DrawingUtils.cxx.