20 #ifndef CSCDQM_HistoDef_H 21 #define CSCDQM_HistoDef_H 52 static const char PATH_CSC[] =
"CSC_%03d_%02d";
87 const HistoId
getId()
const {
return id; }
110 if (!path.empty()) path.append(
"/");
111 path.append(getName());
122 if (getFEDId() != t.
getFEDId())
return false;
123 if (getDDUId() != t.
getDDUId())
return false;
124 if (getCrateId() != t.
getCrateId())
return false;
125 if (getDMBId() != t.
getDMBId())
return false;
126 if (getAddId() != t.
getAddId())
return false;
147 if (getFEDId() < t.
getFEDId())
return true;
148 if (getDDUId() < t.
getDDUId())
return true;
149 if (getCrateId() < t.
getCrateId())
return true;
150 if (getDMBId() < t.
getDMBId())
return true;
151 if (getAddId() < t.
getAddId())
return true;
244 return Form(p_name.c_str(), p_id);
296 return Form(PATH_FED, p_fedId);
338 const HwId
getDDUId()
const override {
return dduId; }
347 return Form(PATH_DDU, p_dduId);
396 CSCHistoDef(
const HistoId p_id,
const HwId p_crateId,
const HwId p_dmbId,
const HwId p_addId = 0) :
397 HistoDef(p_id), crateId(p_crateId), dmbId(p_dmbId), addId(p_addId) { }
400 const HwId
getDMBId()
const override {
return dmbId; }
401 const HwId
getAddId()
const override {
return addId; }
412 return Form(PATH_CSC, p_crateId, p_dmbId);
const HwId getAddId() const override
Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers.
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 unsigned int getId()
static const std::type_info & FEDHistoDefT
const HwId getDMBId() const override
Get CSC DMB ID.
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.
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.
const HwId getFEDId() const override
Get FED ID.
Parameter Histogram Definition.
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 std::string getPath() const override
Get path part of the histogram (used only for DDUs and CSCs)
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 getPath() const override
Get path part of the histogram (used only for DDUs and CSCs)
static const std::string getPath(const HwId p_fedId)
Static FED path formatter.
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
const HistoId getId() const
Get Histogram ID.
def getHistoName(wheel, station, sector)
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
static const std::type_info & CSCHistoDefT
const std::string processTitle(const std::string &p_title) const override
Process Title by Adding appropriate ID.
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 getDDUId() const override
Get DDU ID.
ParHistoDef(const HistoId p_id)
Constructor. It calls Base constructor inline.
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.
static const std::type_info & DDUHistoDefT
const std::string processTitle(const std::string &p_title) const override
Process Title by Adding appropriate ID.
const std::string getName() const override
Get processed histogram name. It can include additional parameter in formated name. This Name is being constructed from raw name and additional parameter.
FED Level Histogram Definition.
const std::string processTitle(const std::string &p_title) const override
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.
static const char PATH_CSC[]
const std::string getPath() const override
Get path part of the histogram (used only for DDUs and CSCs)
static const HistoName keys[]
HistoName name
Parameter name.
virtual const HwId getFEDId() const
Get FED ID.
const HwId getCrateId() const override
Get CSC Crate ID.