1 #ifndef ALIGNMENT_OFFLINEVALIDATION_TREND_H 2 #define ALIGNMENT_OFFLINEVALIDATION_TREND_H 4 #include "boost/filesystem.hpp" 5 #include "boost/property_tree/ptree.hpp" 6 #include "boost/property_tree/json_parser.hpp" 79 TString
CMS =
"#scale[1.1]{#bf{CMS}} #it{Internal}";
81 "#scale[0.8]{pp collisions (2016+2017+2018)}";
90 const boost::property_tree::ptree
JSON;
101 boost::property_tree::ptree&
json,
103 const char* lumiAxisType
112 bool fullRange =
true 121 template <
typename T,
typename... Args>
123 return dynamic_cast<T*
>(gDirectory->Get(
args...));
126 #endif // ALIGNMENT_OFFLINEVALIDATION_TREND_H
void operator()(TObject *obj, TString drawOpt, TString lgdOpt, bool fullRange=true)
Run2Lumi(boost::filesystem::path file, int first, int last, float convertUnit)
const int lastRun
last run (excluded!), starting at the max lumi on the x-axis of the trend
std::map< int, float > runs
couples of run and corresponding luminosity
float operator()() const
Sums luminosity for [firstRun, lastRun[.
Struct holding legacy CMS convention for process types.
const boost::property_tree::ptree JSON
contains coordinate for vertical lines
const int firstRun
first run, starting at lumi = 0 on the x-axis of the trend
const Run2Lumi & GetLumi
functor to get luminosity for given subrange