CMS 3D CMS Logo

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

List of all members.

Public Member Functions

 DDUHistoDef (const HistoId p_id, const HwId p_dduId)
 Constructor. It calls Base constructor inline.
const HwId getDDUId () const
 Get DDU ID.
const std::string getPath () const
 Get path part of the histogram (used only for DDUs and CSCs)
const DDUHistoDefoperator= (const DDUHistoDef &t)
 Assignment (=) operator. Calls base assignment operator and assigns DDU-related data.
const std::string processTitle (const std::string &p_title) const
 Process Title by Adding appropriate ID.

Static Public Member Functions

static const std::string getPath (const HwId p_dduId)
 Static DDU path formatter.

Private Attributes

HwId dduId

Detailed Description

DDU Level Histogram Definition.

Definition at line 323 of file CSCDQM_HistoDef.h.


Constructor & Destructor Documentation

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 337 of file CSCDQM_HistoDef.h.

: HistoDef(p_id), dduId(p_dduId) { }

Member Function Documentation

const HwId cscdqm::DDUHistoDef::getDDUId ( ) const [inline, virtual]

Get DDU ID.

Returns:
DDU ID

Reimplemented from cscdqm::HistoDef.

Definition at line 338 of file CSCDQM_HistoDef.h.

References dduId.

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

{ return dduId; }
const std::string cscdqm::DDUHistoDef::getPath ( ) const [inline, virtual]

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 339 of file CSCDQM_HistoDef.h.

References dduId, and getPath().

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

{ return getPath(dduId); }
static const std::string cscdqm::DDUHistoDef::getPath ( const HwId  p_dduId) [inline, static]

Static DDU path formatter.

Parameters:
p_dduIdDDU ID
Returns:
formatted DDU path

Definition at line 346 of file CSCDQM_HistoDef.h.

References cscdqm::PATH_DDU.

                                                         { 
        return Form(PATH_DDU, p_dduId); 
      }
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 356 of file CSCDQM_HistoDef.h.

References dduId, getDDUId(), and lumiQTWidget::t.

                                                          {
        HistoDef *h1 = const_cast<DDUHistoDef*>(this);
        const HistoDef *h2 = &t;
        *h1 = *h2;
        dduId   = t.getDDUId();
        return *this;
      }
const std::string cscdqm::DDUHistoDef::processTitle ( const std::string &  p_title) const [inline, virtual]

Process Title by Adding appropriate ID.

Parameters:
p_titleTitle to process
Returns:
processed title

Reimplemented from cscdqm::HistoDef.

Definition at line 364 of file CSCDQM_HistoDef.h.

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

                                                                   {
        return processName(p_title.c_str(), getDDUId());
      }

Member Data Documentation

Definition at line 327 of file CSCDQM_HistoDef.h.

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