#include <HtrXmlPatternSet.h>
Public Member Functions | |
CrateData * | getCrate (int crate) |
HtrXmlPatternSet (int cratesActive[ChannelPattern::NUM_CRATES], int slotsActive[ChannelPattern::NUM_SLOTS]) | |
~HtrXmlPatternSet () | |
Private Attributes | |
CrateData * | m_crates [ChannelPattern::NUM_CRATES] |
Definition at line 64 of file HtrXmlPatternSet.h.
HtrXmlPatternSet::HtrXmlPatternSet | ( | int | cratesActive[ChannelPattern::NUM_CRATES], |
int | slotsActive[ChannelPattern::NUM_SLOTS] | ||
) |
Definition at line 228 of file HtrXmlPatternSet.cc.
References m_crates.
{ for (int crate=0; crate<ChannelPattern::NUM_CRATES; crate++) { if (cratesActive[crate]) m_crates[crate] = new CrateData(crate,slotsActive); else m_crates[crate] = 0; } }
HtrXmlPatternSet::~HtrXmlPatternSet | ( | ) |
Definition at line 235 of file HtrXmlPatternSet.cc.
References m_crates, and ChannelPattern::NUM_CRATES.
{ for (int crate=0; crate<ChannelPattern::NUM_CRATES; crate++) { if (m_crates[crate]) delete m_crates[crate]; } }
CrateData * HtrXmlPatternSet::getCrate | ( | int | crate | ) |
Definition at line 241 of file HtrXmlPatternSet.cc.
References m_crates, and ChannelPattern::NUM_CRATES.
Referenced by HtrXmlPatternTool::createHists(), HtrXmlPattern::do_hand_fill(), and HtrXmlPatternTool::Fill().
{ if (crate>=0 && crate<ChannelPattern::NUM_CRATES) return m_crates[crate]; else return 0; }
Definition at line 70 of file HtrXmlPatternSet.h.
Referenced by getCrate(), HtrXmlPatternSet(), and ~HtrXmlPatternSet().