CMS 3D CMS Logo

Public Member Functions | Private Attributes

CrateData Class Reference

#include <HtrXmlPatternSet.h>

List of all members.

Public Member Functions

 CrateData (int crate, int slotsActive[ChannelPattern::NUM_SLOTS])
HalfHtrDatagetHalfHtrData (int slot, int one_two_tb)
 ~CrateData ()

Private Attributes

HalfHtrDatam_slotsDoubled [ChannelPattern::NUM_SLOTS][2]

Detailed Description

Definition at line 55 of file HtrXmlPatternSet.h.


Constructor & Destructor Documentation

CrateData::CrateData ( int  crate,
int  slotsActive[ChannelPattern::NUM_SLOTS] 
)

Definition at line 206 of file HtrXmlPatternSet.cc.

References m_slotsDoubled.

                                                                        {
  for (int slot=0; slot<ChannelPattern::NUM_SLOTS; slot++) {
    for (int tb=0;tb<2;tb++) {
      if (slotsActive[slot]) m_slotsDoubled[slot][tb] = new HalfHtrData(crate,slot,tb);
      else                   m_slotsDoubled[slot][tb] = 0;
    }
  }
}
CrateData::~CrateData ( )

Definition at line 215 of file HtrXmlPatternSet.cc.

References m_slotsDoubled, and ChannelPattern::NUM_SLOTS.

                      {
  for (int slot=0; slot<ChannelPattern::NUM_SLOTS; slot++) {
    for (int tb=0;tb<2;tb++) {
      if (m_slotsDoubled[slot][tb]) delete m_slotsDoubled[slot][tb];
    }
  }
}

Member Function Documentation

HalfHtrData * CrateData::getHalfHtrData ( int  slot,
int  one_two_tb 
)

Definition at line 223 of file HtrXmlPatternSet.cc.

References m_slotsDoubled, and ChannelPattern::NUM_SLOTS.

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

                                                       {
  if ( slot>=0 && slot<ChannelPattern::NUM_SLOTS && (tb==0 || tb==1) ) return m_slotsDoubled[slot][tb];
  else return 0;
}

Member Data Documentation

Definition at line 61 of file HtrXmlPatternSet.h.

Referenced by CrateData(), getHalfHtrData(), and ~CrateData().