20 #ifndef CSCDQM_HistoDef_H
21 #define CSCDQM_HistoDef_H
52 static const char PATH_CSC[] =
"CSC_%03d_%02d";
110 if (path.size() > 0) path.append(
"/");
169 virtual const std::string
getPath()
const {
return ""; }
207 virtual const std::string
processTitle(
const std::string& p_title)
const {
244 return Form(p_name.c_str(), p_id);
412 return Form(
PATH_CSC, p_crateId, p_dmbId);
static const bool getHistoIdByName(const std::string &p_name, HistoId &p_id)
Get Histogram ID by name.
CSCHistoDef(const HistoId p_id, const HwId p_crateId, const HwId p_dmbId, const HwId p_addId=0)
Constructor. It calls Base constructor inline.
static const std::type_info & FEDHistoDefT
const HistoName & getHistoName() const
FEDHistoDef(const HistoId p_id, const HwId p_fedId)
Constructor. It calls Base constructor inline.
const HistoName & getHistoName() const
Get raw histogram name.
const HwId getDMBId() const
Get CSC DMB ID.
virtual const HwId getCrateId() const
Get CSC Crate ID.
const HistoName HISTO_SKIP
static const HistoName names[]
virtual const std::string processTitle(const std::string &p_title) const
Process Title by Adding appropriate ID.
virtual ~HistoDef()
Base virtual destructor.
static const std::string getPath(const HwId p_dduId)
Static DDU path formatter.
Abstract Base Histogram Definition.
Parameter Histogram Definition.
const std::string getPath() const
Get path part of the histogram (used only for DDUs and CSCs)
const std::string processTitle(const std::string &p_title) const
Process Title by Adding appropriate ID.
virtual const HwId getDDUId() const
Get DDU ID.
static bool regexMatch(const std::string &expression, const std::string &message)
Match RegExp expression string against string message and return result.
General and CSCDQM Framework related utility routines.
CSC Level Histogram Type.
const CSCHistoDef & operator=(const CSCHistoDef &t)
Assignment (=) operator. Calls base assignment operator and assigns CSC-related data.
static const char PATH_DDU[]
static const char PATH_FED[]
static const std::string getPath(const HwId p_crateId, const HwId p_dmbId)
Static CSC path formatter.
static const unsigned int namesSize
const std::string processTitle(const std::string &p_title) const
Process Title by Adding appropriate ID.
static const std::string getPath(const HwId p_fedId)
Static FED path formatter.
const HistoId getId() const
Get Histogram ID.
static const std::type_info & CSCHistoDefT
const bool operator==(const HistoDef &t) const
Comparison (==) operator.
EMU Level Histogram Definition.
static const std::type_info & ParHistoDefT
DDU Level Histogram Definition.
DDUHistoDef(const HistoId p_id, const HwId p_dduId)
Constructor. It calls Base constructor inline.
const HwId getFEDId() const
Get FED ID.
const std::string getName() const
Get processed histogram name. It can include additional parameter in formated name. This Name is being constructed from raw name and additional parameter.
ParHistoDef(const HistoId p_id)
Constructor. It calls Base constructor inline.
const std::string getPath() const
Get path part of the histogram (used only for DDUs and CSCs)
const bool operator<(const HistoDef &t) const
Less (<) operator.
virtual const std::string getPath() const
Get path part of the histogram (used only for DDUs and CSCs)
ParHistoDef(const HistoName &p_name)
Constructor. It calls Base constructor inline.
EMUHistoDef(const HistoId p_id)
Constructor. It calls Base constructor inline.
virtual const HwId getDMBId() const
Get CSC DMB ID.
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
static const std::type_info & DDUHistoDefT
const HwId getDDUId() const
Get DDU ID.
const FEDHistoDef & operator=(const FEDHistoDef &t)
Assignment (=) operator. Calls base assignment operator and assigns FEd-related data.
const HistoDef & operator=(const HistoDef &t)
Assignment (=) operator.
FED Level Histogram Definition.
const std::string processTitle(const std::string &p_title) const
Process Title by Adding appropriate ID.
static const std::string processName(const HistoName &p_name, const HwId p_id)
Process name by applying ID to d pattern (pattern is stored in REGEXP_ONDEMAND)
static const std::string getHistoKeyById(const HistoId &p_id)
Get Histogram key name by id.
const std::string getFullPath() const
Get full path of the histogram. It is being constructed by appending path and histogam name...
virtual const std::string getName() const
Get processed histogram name. It can include additional parameter in formated name. This Name is being constructed from raw name and additional parameter.
static const std::type_info & EMUHistoDefT
static const TPRegexp REGEXP_ONDEMAND("^.*%d.*$")
HistoDef(const HistoId p_id)
Base constructor.
virtual const HwId getAddId() const
Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers.
friend std::ostream & operator<<(std::ostream &out, const HistoDef &t)
Printing (<<) operator that prints hisotgram full path.
const HwId getCrateId() const
Get CSC Crate ID.
static const char PATH_CSC[]
static const HistoName keys[]
HistoName name
Parameter name.
virtual const HwId getFEDId() const
Get FED ID.
const std::string getPath() const
Get path part of the histogram (used only for DDUs and CSCs)
const HwId getAddId() const
Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers.
const DDUHistoDef & operator=(const DDUHistoDef &t)
Assignment (=) operator. Calls base assignment operator and assigns DDU-related data.