#include <HtrXmlPatternSet.h>
Public Member Functions | |
CrateData (int crate, int slotsActive[ChannelPattern::NUM_SLOTS]) | |
HalfHtrData * | getHalfHtrData (int slot, int one_two_tb) |
~CrateData () | |
Private Attributes | |
HalfHtrData * | m_slotsDoubled [ChannelPattern::NUM_SLOTS][2] |
Definition at line 55 of file HtrXmlPatternSet.h.
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]; } } }
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; }
HalfHtrData* CrateData::m_slotsDoubled[ChannelPattern::NUM_SLOTS][2] [private] |
Definition at line 61 of file HtrXmlPatternSet.h.
Referenced by CrateData(), getHalfHtrData(), and ~CrateData().