CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CrateData Class Reference

#include <HtrXmlPatternSet.h>

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, and ChannelPattern::NUM_SLOTS.

206  {
207  for (int slot=0; slot<ChannelPattern::NUM_SLOTS; slot++) {
208  for (int tb=0;tb<2;tb++) {
209  if (slotsActive[slot]) m_slotsDoubled[slot][tb] = new HalfHtrData(crate,slot,tb);
210  else m_slotsDoubled[slot][tb] = 0;
211  }
212  }
213 }
HalfHtrData * m_slotsDoubled[ChannelPattern::NUM_SLOTS][2]
static const int NUM_SLOTS
CrateData::~CrateData ( )

Definition at line 215 of file HtrXmlPatternSet.cc.

References m_slotsDoubled, and ChannelPattern::NUM_SLOTS.

215  {
216  for (int slot=0; slot<ChannelPattern::NUM_SLOTS; slot++) {
217  for (int tb=0;tb<2;tb++) {
218  if (m_slotsDoubled[slot][tb]) delete m_slotsDoubled[slot][tb];
219  }
220  }
221 }
HalfHtrData * m_slotsDoubled[ChannelPattern::NUM_SLOTS][2]
static const int NUM_SLOTS

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(), HtrXmlPatternTool::Fill(), and HtrXmlPatternTool::writeXML().

223  {
224  if ( slot>=0 && slot<ChannelPattern::NUM_SLOTS && (tb==0 || tb==1) ) return m_slotsDoubled[slot][tb];
225  else return 0;
226 }
HalfHtrData * m_slotsDoubled[ChannelPattern::NUM_SLOTS][2]
static const int NUM_SLOTS

Member Data Documentation

HalfHtrData* CrateData::m_slotsDoubled[ChannelPattern::NUM_SLOTS][2]
private

Definition at line 61 of file HtrXmlPatternSet.h.

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