CMS 3D CMS Logo

Public Member Functions | Private Attributes

HalfHtrData Class Reference

#include <HtrXmlPatternSet.h>

List of all members.

Public Member Functions

int getCrate () const
int getDCC () const
ChannelPatterngetPattern (int chan)
int getSlot () const
int getSpigot () const
int getTB () const
 HalfHtrData (int crate, int slot, int tb)
void setDCC (int dcc)
void setSpigot (int spigot)

Private Attributes

int m_crate
int m_dcc
ChannelPattern m_patterns [24]
int m_slot
int m_spigot
int m_tb

Detailed Description

Definition at line 38 of file HtrXmlPatternSet.h.


Constructor & Destructor Documentation

HalfHtrData::HalfHtrData ( int  crate,
int  slot,
int  tb 
)

Definition at line 195 of file HtrXmlPatternSet.cc.

References i, m_crate, m_dcc, m_patterns, m_slot, m_spigot, and m_tb.

                                                    {
  for (int i=0; i<24; i++)
    m_patterns[i].setLoc(crate,slot,tb,i+1);
  m_crate=crate;
  m_slot=slot;
  m_tb=tb;
  //these are set later with map data
  m_dcc=0;
  m_spigot=0;
}

Member Function Documentation

int HalfHtrData::getCrate ( ) const [inline]

Definition at line 42 of file HtrXmlPatternSet.h.

References m_crate.

Referenced by HtrXmlPatternWriter::writePattern().

{ return m_crate; }
int HalfHtrData::getDCC ( ) const [inline]

Definition at line 46 of file HtrXmlPatternSet.h.

References m_dcc.

Referenced by HtrXmlPatternWriter::writePattern().

{ return m_dcc; }
ChannelPattern* HalfHtrData::getPattern ( int  chan) [inline]

Definition at line 41 of file HtrXmlPatternSet.h.

References m_patterns.

Referenced by HtrXmlPatternTool::createHists(), HtrXmlPattern::do_hand_fill(), HtrXmlPatternTool::Fill(), and HtrXmlPatternWriter::writePattern().

{ return (chan>=1 && chan<=24)?(&m_patterns[chan-1]):(0); }
int HalfHtrData::getSlot ( ) const [inline]

Definition at line 43 of file HtrXmlPatternSet.h.

References m_slot.

Referenced by HtrXmlPatternWriter::writePattern().

{ return m_slot; }
int HalfHtrData::getSpigot ( ) const [inline]

Definition at line 45 of file HtrXmlPatternSet.h.

References m_spigot.

Referenced by HtrXmlPatternWriter::writePattern().

{ return m_spigot; }
int HalfHtrData::getTB ( ) const [inline]

Definition at line 44 of file HtrXmlPatternSet.h.

References m_tb.

Referenced by HtrXmlPatternWriter::writePattern().

{ return m_tb; }
void HalfHtrData::setDCC ( int  dcc) [inline]

Definition at line 48 of file HtrXmlPatternSet.h.

References m_dcc.

Referenced by HtrXmlPatternTool::Fill().

{ m_dcc = dcc; }
void HalfHtrData::setSpigot ( int  spigot) [inline]

Definition at line 47 of file HtrXmlPatternSet.h.

References m_spigot.

Referenced by HtrXmlPatternTool::Fill().

{ m_spigot = spigot; }

Member Data Documentation

int HalfHtrData::m_crate [private]

Definition at line 51 of file HtrXmlPatternSet.h.

Referenced by getCrate(), and HalfHtrData().

int HalfHtrData::m_dcc [private]

Definition at line 52 of file HtrXmlPatternSet.h.

Referenced by getDCC(), HalfHtrData(), and setDCC().

Definition at line 50 of file HtrXmlPatternSet.h.

Referenced by getPattern(), and HalfHtrData().

int HalfHtrData::m_slot [private]

Definition at line 51 of file HtrXmlPatternSet.h.

Referenced by getSlot(), and HalfHtrData().

int HalfHtrData::m_spigot [private]

Definition at line 52 of file HtrXmlPatternSet.h.

Referenced by getSpigot(), HalfHtrData(), and setSpigot().

int HalfHtrData::m_tb [private]

Definition at line 51 of file HtrXmlPatternSet.h.

Referenced by getTB(), and HalfHtrData().