19#include <TProfile2D.h>
49 std::string tmpfile = inputfile.Data();
53 std::string tmpfile = inputfile.Data();
62 TH1F*
Construct1DHist(
const std::string& inputfile,
const TString& name_title);
63 TH2F*
Construct2DHist(
const std::string& inputfile,
const TString& name_title);
64 TProfile*
Construct1DProf(
const std::string& inputfile,
const TString& name_title);
65 TProfile2D*
Construct2DProf(
const std::string& inputfile,
const TString& name_title);
69 const std::string& moduletype,
70 const std::string& devicename);
102 TString thisname(this->name_title); thisname.ToLower();
103 TString thatname(that.
name_title); thatname.ToLower();
104 if (thisname.MaybeRegexp() && thatname.MaybeRegexp()) {
106 if (thisname.Contains(
"*") != thatname.Contains(
"*"))
107 return thatname.Contains(
"*");
108 else if (thisname.First(
"*") != thatname.First(
"*"))
109 return (thisname.First(
"*") > thatname.First(
"*"));
110 else if (thisname.Contains(
"+") != thatname.Contains(
"+"))
111 return thatname.Contains(
"+");
112 else if (thisname.First(
"+") != thatname.First(
"+"))
113 return (thisname.First(
"+") > thatname.First(
"+"));
114 else if (thisname.CountChar(
'?') != thatname.CountChar(
'?'))
115 return (thisname.CountChar(
'?') < thatname.CountChar(
'?'));
116 else if (thisname.CountChar(
'.') != thatname.CountChar(
'.'))
117 return (thisname.CountChar(
'.') < thatname.CountChar(
'.'));
118 else return (thisname < thatname);
119 }
else if (thisname.MaybeRegexp() || thatname.MaybeRegexp())
121 return thatname.MaybeRegexp();
124 return (thisname < thatname);
147 const TString& histname);
150 Bool_t
DoesMatch(
const TString& s,
const TRegexp& wildcard);
QwHistogramHelper gQwHists
Globally defined instance of the QwHistogramHelper class.
An options class which parses command line, config file and environment.
Parameter file parsing and management.
Utility class for histogram creation and management.
void PrintHistParams() const
void LoadHistParamsFromFile(const std::string &filename)
std::vector< HistParams > fHistParams
std::vector< TString > fSubsystemList
static const TString fInvalidName
const HistParams GetHistParamsFromFile(const std::string &filename, const TString &histname)
const HistParams GetHistParamsFromList(const TString &histname)
std::vector< std::vector< std::vector< TString > > > fVQWKTrimmedList
void LoadTreeParamsFromFile(const std::string &filename)
Bool_t MatchVQWKElementFromList(const std::string &subsystemname, const std::string &moduletype, const std::string &devicename)
std::vector< std::vector< TString > > fModuleList
static const Double_t fInvalidNumber
static void DefineOptions(QwOptions &options)
Define the configuration options.
Bool_t fTreeTrimFileLoaded
TProfile * Construct1DProf(const TString &name_title)
const HistParams GetHistParamsFromLine(QwParameterFile &mapstr)
Bool_t MatchDeviceParamsFromList(const std::string &devicename)
virtual ~QwHistogramHelper()
TProfile2D * Construct2DProf(const TString &name_title)
void ProcessOptions(QwOptions &options)
Process the configuration options.
TH1F * Construct1DHist(const TString &inputfile, const TString &name_title)
std::vector< std::pair< TString, TRegexp > > fTreeParams
Bool_t DoesMatch(const TString &s, const TRegexp &wildcard)
TH2F * Construct2DHist(const TString &inputfile, const TString &name_title)
bool operator<(const HistParams &that) const
Relational less-than operator overload.
friend std::ostream & operator<<(std::ostream &stream, const HistParams &h)
Output stream operator overload.
Command-line and configuration file options processor.
Configuration file parser with flexible tokenization and search capabilities.