CMS 3D CMS Logo

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

CSC Level Histogram Type. More...

#include <CSCDQM_HistoDef.h>

Inheritance diagram for cscdqm::CSCHistoDef:
cscdqm::HistoDef

Public Member Functions

 CSCHistoDef (const HistoId p_id, const HwId p_crateId, const HwId p_dmbId, const HwId p_addId=0)
 Constructor. It calls Base constructor inline. More...
 
const HwId getAddId () const override
 Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers. More...
 
const HwId getCrateId () const override
 Get CSC Crate ID. More...
 
const HwId getDMBId () const override
 Get CSC DMB ID. More...
 
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. More...
 
const std::string getPath () const override
 Get path part of the histogram (used only for DDUs and CSCs) More...
 
const CSCHistoDefoperator= (const CSCHistoDef &t)
 Assignment (=) operator. Calls base assignment operator and assigns CSC-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 getDDUId () const
 Get DDU 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...
 
 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_crateId, const HwId p_dmbId)
 Static CSC 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 addId
 
HwId crateId
 
HwId dmbId
 

Detailed Description

CSC Level Histogram Type.

Definition at line 362 of file CSCDQM_HistoDef.h.

Constructor & Destructor Documentation

◆ CSCHistoDef()

cscdqm::CSCHistoDef::CSCHistoDef ( const HistoId  p_id,
const HwId  p_crateId,
const HwId  p_dmbId,
const HwId  p_addId = 0 
)
inline

Constructor. It calls Base constructor inline.

Parameters
p_hnameHistogram id (to be passed to Base class)
p_crateIdCSC Crate ID
p_dmbIdCSC DMB ID
p_addIdCSC Additional ID, used to store Layer ID, CFEB ID, etc. Used to store processed name identifier. Optional.
Returns

Definition at line 381 of file CSCDQM_HistoDef.h.

382  : HistoDef(p_id), crateId(p_crateId), dmbId(p_dmbId), addId(p_addId) {}

Member Function Documentation

◆ getAddId()

const HwId cscdqm::CSCHistoDef::getAddId ( ) const
inlineoverridevirtual

Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers.

Returns
CSC Additional ID

Reimplemented from cscdqm::HistoDef.

Definition at line 386 of file CSCDQM_HistoDef.h.

386 { return addId; }

References addId.

Referenced by getName(), and processTitle().

◆ getCrateId()

const HwId cscdqm::CSCHistoDef::getCrateId ( ) const
inlineoverridevirtual

Get CSC Crate ID.

Returns
CSC Crate ID

Reimplemented from cscdqm::HistoDef.

Definition at line 384 of file CSCDQM_HistoDef.h.

384 { return crateId; }

References crateId.

◆ getDMBId()

const HwId cscdqm::CSCHistoDef::getDMBId ( ) const
inlineoverridevirtual

Get CSC DMB ID.

Returns
CSC DMB ID

Reimplemented from cscdqm::HistoDef.

Definition at line 385 of file CSCDQM_HistoDef.h.

385 { return dmbId; }

References dmbId.

◆ getName()

const std::string cscdqm::CSCHistoDef::getName ( ) const
inlineoverridevirtual

Get processed histogram name. It can include additional parameter in formated name. This Name is being constructed from raw name and additional parameter.

Returns
processed full name of the histogram

Reimplemented from cscdqm::HistoDef.

Definition at line 387 of file CSCDQM_HistoDef.h.

387 { return processName(getHistoName(), getAddId()); }

References getAddId(), cscdqm::HistoDef::getHistoName(), and cscdqm::HistoDef::processName().

Referenced by plotting.Plot::draw().

◆ getPath() [1/2]

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

388 { return getPath(crateId, dmbId); }

References crateId, dmbId, and getPath().

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

◆ getPath() [2/2]

static const std::string cscdqm::CSCHistoDef::getPath ( const HwId  p_crateId,
const HwId  p_dmbId 
)
inlinestatic

Static CSC path formatter.

Parameters
p_crateIdCSC Crate ID
p_dmbIdCSC DMB ID
Returns
formatted CSC path

Definition at line 396 of file CSCDQM_HistoDef.h.

396  {
397  return Form(PATH_CSC, p_crateId, p_dmbId);
398  }

References cscdqm::PATH_CSC.

◆ operator=()

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

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

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

Definition at line 406 of file CSCDQM_HistoDef.h.

406  {
407  HistoDef* h1 = const_cast<CSCHistoDef*>(this);
408  const HistoDef* h2 = &t;
409  *h1 = *h2;
410  crateId = t.getCrateId();
411  dmbId = t.getDMBId();
412  addId = t.getAddId();
413  return *this;
414  }

References addId, crateId, dmbId, and OrderedSet::t.

◆ processTitle()

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

416  {
417  return processName(p_title, getAddId());
418  }

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

Member Data Documentation

◆ addId

HwId cscdqm::CSCHistoDef::addId
private

CSC Additional ID

Definition at line 369 of file CSCDQM_HistoDef.h.

Referenced by getAddId(), and operator=().

◆ crateId

HwId cscdqm::CSCHistoDef::crateId
private

CSC Crate ID

Definition at line 365 of file CSCDQM_HistoDef.h.

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

◆ dmbId

HwId cscdqm::CSCHistoDef::dmbId
private

CSC DMB ID

Definition at line 367 of file CSCDQM_HistoDef.h.

Referenced by getDMBId(), 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::CSCHistoDef::getAddId
const HwId getAddId() const override
Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers.
Definition: CSCDQM_HistoDef.h:386
cscdqm::CSCHistoDef::getPath
const std::string getPath() const override
Get path part of the histogram (used only for DDUs and CSCs)
Definition: CSCDQM_HistoDef.h:388
HistoDef
Definition: HistoDef.h:17
cscdqm::CSCHistoDef::crateId
HwId crateId
Definition: CSCDQM_HistoDef.h:365
OrderedSet.t
t
Definition: OrderedSet.py:90
cscdqm::PATH_CSC
static const char PATH_CSC[]
Definition: CSCDQM_HistoDef.h:52
cscdqm::CSCHistoDef::addId
HwId addId
Definition: CSCDQM_HistoDef.h:369
cscdqm::HistoDef::getHistoName
const HistoName & getHistoName() const
Get raw histogram name.
Definition: CSCDQM_HistoDef.h:90
cscdqm::CSCHistoDef::dmbId
HwId dmbId
Definition: CSCDQM_HistoDef.h:367