CMS 3D CMS Logo

cscdqm::CSCHistoDef Class Reference

CSC Level Histogram Type. More...

#include <DQM/CSCMonitorModule/interface/CSCDQM_HistoDef.h>

Inheritance diagram for cscdqm::CSCHistoDef:

cscdqm::HistoDef

List of all members.

Public Member Functions

 CSCHistoDef (const HistoId p_id, const HwId p_crateId, const HwId p_dmbId, const HwId p_addId=0)
 Constructor.
const HwId getAddId () const
 Get CSC Additional ID (used to store Layer, CLCT, ALCT and other identifiers.
const HwId getCrateId () const
 Get CSC Crate ID.
const HwId getDMBId () const
 Get CSC DMB ID.
const std::string getName () const
 Get processed histogram name.
const std::string getPath () const
 Get path part of the histogram (used only for DDUs and CSCs).
const CSCHistoDefoperator= (const CSCHistoDef &t)
 Assignment (=) operator.
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_crateId, const HwId p_dmbId)
 Static CSC path formatter.

Private Attributes

HwId addId
 CSC Additional ID.
HwId crateId
 CSC Crate ID.
HwId dmbId
 CSC DMB ID.


Detailed Description

CSC Level Histogram Type.

Definition at line 298 of file CSCDQM_HistoDef.h.


Constructor & Destructor Documentation

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_hname Histogram id (to be passed to Base class)
p_crateId CSC Crate ID
p_dmbId CSC DMB ID
p_addId CSC Additional ID, used to store Layer ID, CFEB ID, etc. Used to store processed name identifier. Optional.
Returns:

Definition at line 320 of file CSCDQM_HistoDef.h.

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


Member Function Documentation

const HwId cscdqm::CSCHistoDef::getAddId (  )  const [inline, virtual]

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

Returns:
CSC Additional ID

Reimplemented from cscdqm::HistoDef.

Definition at line 325 of file CSCDQM_HistoDef.h.

References addId.

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

00325 { return addId; }

const HwId cscdqm::CSCHistoDef::getCrateId (  )  const [inline, virtual]

Get CSC Crate ID.

Returns:
CSC Crate ID

Reimplemented from cscdqm::HistoDef.

Definition at line 323 of file CSCDQM_HistoDef.h.

References crateId.

Referenced by operator=().

00323 { return crateId; }

const HwId cscdqm::CSCHistoDef::getDMBId (  )  const [inline, virtual]

Get CSC DMB ID.

Returns:
CSC DMB ID

Reimplemented from cscdqm::HistoDef.

Definition at line 324 of file CSCDQM_HistoDef.h.

References dmbId.

Referenced by operator=().

00324 { return dmbId; }

const std::string cscdqm::CSCHistoDef::getName (  )  const [inline, virtual]

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

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

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

static const std::string cscdqm::CSCHistoDef::getPath ( const HwId  p_crateId,
const HwId  p_dmbId 
) [inline, static]

Static CSC path formatter.

Parameters:
p_crateId CSC Crate ID
p_dmbId CSC DMB ID
Returns:
formatted CSC path

Definition at line 335 of file CSCDQM_HistoDef.h.

References cscdqm::PATH_CSC.

00335                                                                                { 
00336         return Form(PATH_CSC, p_crateId, p_dmbId); 
00337       }

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

References crateId, and dmbId.

Referenced by cscdqm::EventProcessor::processCSC(), cscdqm::EventProcessor::processExaminer(), and cscdqm::EventProcessor::updateFractionHistos().

00327 { return getPath(crateId, dmbId); }

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

Assignment (=) operator.

Calls base assignment operator and assigns CSC-related data

Parameters:
t Histogram to be taken data from
Returns:
resulting histogram (this)

Definition at line 345 of file CSCDQM_HistoDef.h.

References addId, crateId, dmbId, getAddId(), getCrateId(), getDMBId(), h1, and h2.

00345                                                           {
00346         HistoDef *h1 = const_cast<CSCHistoDef*>(this);
00347         const HistoDef *h2 = &t;
00348         *h1 = *h2;
00349         crateId = t.getCrateId();
00350         dmbId   = t.getDMBId();
00351         addId   = t.getAddId();
00352         return *this;
00353       }

const std::string cscdqm::CSCHistoDef::processTitle ( const std::string &  p_title  )  const [inline, virtual]

Process Title by Adding appropriate ID.

Parameters:
p_title Title to process
Returns:
processed title

Reimplemented from cscdqm::HistoDef.

Definition at line 355 of file CSCDQM_HistoDef.h.

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

00355                                                                    {
00356         return processName(const_cast<HistoName>(p_title.c_str()), getAddId());
00357       }


Member Data Documentation

HwId cscdqm::CSCHistoDef::addId [private]

CSC Additional ID.

Definition at line 307 of file CSCDQM_HistoDef.h.

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

HwId cscdqm::CSCHistoDef::crateId [private]

CSC Crate ID.

Definition at line 303 of file CSCDQM_HistoDef.h.

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

HwId cscdqm::CSCHistoDef::dmbId [private]

CSC DMB ID.

Definition at line 305 of file CSCDQM_HistoDef.h.

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:36:56 2009 for CMSSW by  doxygen 1.5.4