CMS 3D CMS Logo

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

FED Level Histogram Definition. More...

#include <CSCDQM_HistoDef.h>

Inheritance diagram for cscdqm::FEDHistoDef:
cscdqm::HistoDef

Public Member Functions

 FEDHistoDef (const HistoId p_id, const HwId p_fedId)
 Constructor. It calls Base constructor inline. More...
 
const HwId getFEDId () const override
 Get FED ID. More...
 
const std::string getPath () const override
 Get path part of the histogram (used only for DDUs and CSCs) More...
 
const FEDHistoDefoperator= (const FEDHistoDef &t)
 Assignment (=) operator. Calls base assignment operator and assigns FEd-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 getDDUId () const
 Get DDU ID. More...
 
virtual const HwId getDMBId () const
 Get CSC DMB 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...
 
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_fedId)
 Static FED 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 fedId
 

Detailed Description

FED Level Histogram Definition.

Definition at line 272 of file CSCDQM_HistoDef.h.

Constructor & Destructor Documentation

◆ FEDHistoDef()

cscdqm::FEDHistoDef::FEDHistoDef ( const HistoId  p_id,
const HwId  p_fedId 
)
inline

Constructor. It calls Base constructor inline.

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

Definition at line 283 of file CSCDQM_HistoDef.h.

283 : HistoDef(p_id), fedId(p_fedId) {}

Member Function Documentation

◆ getFEDId()

const HwId cscdqm::FEDHistoDef::getFEDId ( ) const
inlineoverridevirtual

Get FED ID.

Returns
FED ID

Reimplemented from cscdqm::HistoDef.

Definition at line 284 of file CSCDQM_HistoDef.h.

284 { return fedId; }

References fedId.

Referenced by processTitle().

◆ getPath() [1/2]

const std::string cscdqm::FEDHistoDef::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 285 of file CSCDQM_HistoDef.h.

285 { return getPath(fedId); }

References fedId, and getPath().

Referenced by getPath().

◆ getPath() [2/2]

static const std::string cscdqm::FEDHistoDef::getPath ( const HwId  p_fedId)
inlinestatic

Static FED path formatter.

Parameters
p_fedIdFED ID
Returns
formatted FED path

Definition at line 292 of file CSCDQM_HistoDef.h.

292 { return Form(PATH_FED, p_fedId); }

References cscdqm::PATH_FED.

◆ operator=()

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

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

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

Definition at line 300 of file CSCDQM_HistoDef.h.

300  {
301  HistoDef* h1 = const_cast<FEDHistoDef*>(this);
302  const HistoDef* h2 = &t;
303  *h1 = *h2;
304  fedId = t.getFEDId();
305  return *this;
306  }

References fedId, and OrderedSet::t.

◆ processTitle()

const std::string cscdqm::FEDHistoDef::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 308 of file CSCDQM_HistoDef.h.

308  {
309  return processName(p_title, getFEDId());
310  }

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

Member Data Documentation

◆ fedId

HwId cscdqm::FEDHistoDef::fedId
private

Definition at line 274 of file CSCDQM_HistoDef.h.

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

cscdqm::HistoDef::HistoDef
HistoDef(const HistoId p_id)
Base constructor.
Definition: CSCDQM_HistoDef.h:73
cscdqm::HistoDef::processName
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)
Definition: CSCDQM_HistoDef.h:246
cscdqm::PATH_FED
static const char PATH_FED[]
Definition: CSCDQM_HistoDef.h:46
cscdqm::FEDHistoDef::fedId
HwId fedId
Definition: CSCDQM_HistoDef.h:274
HistoDef
Definition: HistoDef.h:17
OrderedSet.t
t
Definition: OrderedSet.py:90
cscdqm::FEDHistoDef::getPath
const std::string getPath() const override
Get path part of the histogram (used only for DDUs and CSCs)
Definition: CSCDQM_HistoDef.h:285
cscdqm::FEDHistoDef::getFEDId
const HwId getFEDId() const override
Get FED ID.
Definition: CSCDQM_HistoDef.h:284