#include <IORawData/CaloPatterns/src/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 62 of file HtrXmlPatternSet.h.
HtrXmlPatternSet::HtrXmlPatternSet | ( | int | cratesActive[ChannelPattern::NUM_CRATES], | |
int | slotsActive[ChannelPattern::NUM_SLOTS] | |||
) |
Definition at line 119 of file HtrXmlPatternSet.cc.
References m_crates.
00119 { 00120 for (int crate=0; crate<ChannelPattern::NUM_CRATES; crate++) { 00121 if (cratesActive[crate]) m_crates[crate] = new CrateData(crate,slotsActive); 00122 else m_crates[crate] = 0; 00123 } 00124 }
HtrXmlPatternSet::~HtrXmlPatternSet | ( | ) |
Definition at line 126 of file HtrXmlPatternSet.cc.
References m_crates, and ChannelPattern::NUM_CRATES.
00126 { 00127 for (int crate=0; crate<ChannelPattern::NUM_CRATES; crate++) { 00128 if (m_crates[crate]) delete m_crates[crate]; 00129 } 00130 }
Definition at line 132 of file HtrXmlPatternSet.cc.
References m_crates, and ChannelPattern::NUM_CRATES.
Referenced by HtrXmlPatternTool::createHists(), HtrXmlPatternTool::Fill(), and HtrXmlPatternTool::writeXML().
00132 { 00133 if (crate>=0 && crate<ChannelPattern::NUM_CRATES) return m_crates[crate]; 00134 else return 0; 00135 }
Definition at line 68 of file HtrXmlPatternSet.h.
Referenced by getCrate(), HtrXmlPatternSet(), and ~HtrXmlPatternSet().