CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
cscdqm::DDUHistoDef Class Reference

DDU Level Histogram Definition. More...

#include <CSCDQM_HistoDef.h>

Inheritance diagram for cscdqm::DDUHistoDef:
cscdqm::HistoDef

Public Member Functions

 DDUHistoDef (const HistoId p_id, const HwId p_dduId)
 Constructor. It calls Base constructor inline. More...
 
const HwId getDDUId () const override
 Get DDU ID. More...
 
const std::string getPath () const override
 Get path part of the histogram (used only for DDUs and CSCs) More...
 
const DDUHistoDefoperator= (const DDUHistoDef &t)
 Assignment (=) operator. Calls base assignment operator and assigns DDU-related data. More...
 
const std::string processTitle (const std::string &p_title) const override
 Process Title by Adding appropriate ID. More...
 
- Public Member Functions inherited from cscdqm::HistoDef
virtual const HwId getAddId () const
 Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers. More...
 
virtual const HwId getCrateId () const
 Get CSC Crate ID. More...
 
virtual const HwId getDMBId () const
 Get CSC DMB ID. More...
 
virtual const HwId getFEDId () const
 Get FED ID. More...
 
const std::string getFullPath () const
 Get full path of the histogram. It is being constructed by appending path and histogam name. More...
 
const HistoNamegetHistoName () const
 Get raw histogram name. More...
 
const HistoId getId () const
 Get Histogram ID. More...
 
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. More...
 
 HistoDef (const HistoId p_id)
 Base constructor. More...
 
 HistoDef (const HistoDef &)=default
 Copy constructor. More...
 
const bool operator< (const HistoDef &t) const
 Less (<) operator. More...
 
const HistoDefoperator= (const HistoDef &t)
 Assignment (=) operator. More...
 
const bool operator== (const HistoDef &t) const
 Comparison (==) operator. More...
 
virtual ~HistoDef ()
 Base virtual destructor. More...
 

Static Public Member Functions

static const std::string getPath (const HwId p_dduId)
 Static DDU path formatter. More...
 
- Static Public Member Functions inherited from cscdqm::HistoDef
static const bool getHistoIdByName (const std::string &p_name, HistoId &p_id)
 Get Histogram ID by name. More...
 
static const std::string getHistoKeyById (const HistoId &p_id)
 Get Histogram key name by id. More...
 
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) More...
 

Private Attributes

HwId dduId
 

Detailed Description

DDU Level Histogram Definition.

Definition at line 322 of file CSCDQM_HistoDef.h.

Constructor & Destructor Documentation

◆ DDUHistoDef()

cscdqm::DDUHistoDef::DDUHistoDef ( const HistoId  p_id,
const HwId  p_dduId 
)
inline

Constructor. It calls Base constructor inline.

Parameters
p_idHistogram ID (to be passed to Base class)
p_dduIdDDU ID
Returns

Definition at line 333 of file CSCDQM_HistoDef.h.

333 : HistoDef(p_id), dduId(p_dduId) {}
HistoDef(const HistoId p_id)
Base constructor.

Member Function Documentation

◆ getDDUId()

const HwId cscdqm::DDUHistoDef::getDDUId ( ) const
inlineoverridevirtual

Get DDU ID.

Returns
DDU ID

Reimplemented from cscdqm::HistoDef.

Definition at line 334 of file CSCDQM_HistoDef.h.

References dduId.

Referenced by processTitle().

334 { return dduId; }

◆ getPath() [1/2]

const std::string cscdqm::DDUHistoDef::getPath ( ) const
inlineoverridevirtual

Get path part of the histogram (used only for DDUs and CSCs)

Returns
path part of the histogram

Reimplemented from cscdqm::HistoDef.

Definition at line 335 of file CSCDQM_HistoDef.h.

References dduId, and getPath().

Referenced by getPath(), and cscdqm::EventProcessor::processDDU().

335 { return getPath(dduId); }
const std::string getPath() const override
Get path part of the histogram (used only for DDUs and CSCs)

◆ getPath() [2/2]

static const std::string cscdqm::DDUHistoDef::getPath ( const HwId  p_dduId)
inlinestatic

Static DDU path formatter.

Parameters
p_dduIdDDU ID
Returns
formatted DDU path

Definition at line 342 of file CSCDQM_HistoDef.h.

References cscdqm::PATH_DDU.

342 { return Form(PATH_DDU, p_dduId); }
static const char PATH_DDU[]

◆ operator=()

const DDUHistoDef& cscdqm::DDUHistoDef::operator= ( const DDUHistoDef t)
inline

Assignment (=) operator. Calls base assignment operator and assigns DDU-related data.

Parameters
tHistogram to be taken data from
Returns
resulting histogram (this)

Definition at line 350 of file CSCDQM_HistoDef.h.

References dduId, and submitPVValidationJobs::t.

350  {
351  HistoDef* h1 = const_cast<DDUHistoDef*>(this);
352  const HistoDef* h2 = &t;
353  *h1 = *h2;
354  dduId = t.getDDUId();
355  return *this;
356  }
DDUHistoDef(const HistoId p_id, const HwId p_dduId)
Constructor. It calls Base constructor inline.

◆ processTitle()

const std::string cscdqm::DDUHistoDef::processTitle ( const std::string &  p_title) const
inlineoverridevirtual

Process Title by Adding appropriate ID.

Parameters
p_titleTitle to process
Returns
processed title

Reimplemented from cscdqm::HistoDef.

Definition at line 358 of file CSCDQM_HistoDef.h.

References getDDUId(), and cscdqm::HistoDef::processName().

358  {
359  return processName(p_title, getDDUId());
360  }
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)
const HwId getDDUId() const override
Get DDU ID.

Member Data Documentation

◆ dduId

HwId cscdqm::DDUHistoDef::dduId
private

Definition at line 324 of file CSCDQM_HistoDef.h.

Referenced by getDDUId(), getPath(), and operator=().