test
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
HtrXmlPatternSet Class Reference

#include <HtrXmlPatternSet.h>

Public Member Functions

CrateDatagetCrate (int crate)
 
 HtrXmlPatternSet (int cratesActive[ChannelPattern::NUM_CRATES], int slotsActive[ChannelPattern::NUM_SLOTS])
 
 ~HtrXmlPatternSet ()
 

Private Attributes

CrateDatam_crates [ChannelPattern::NUM_CRATES]
 

Detailed Description

Definition at line 64 of file HtrXmlPatternSet.h.

Constructor & Destructor Documentation

HtrXmlPatternSet::HtrXmlPatternSet ( int  cratesActive[ChannelPattern::NUM_CRATES],
int  slotsActive[ChannelPattern::NUM_SLOTS] 
)

Definition at line 228 of file HtrXmlPatternSet.cc.

References m_crates, and ChannelPattern::NUM_CRATES.

228  {
229  for (int crate=0; crate<ChannelPattern::NUM_CRATES; crate++) {
230  if (cratesActive[crate]) m_crates[crate] = new CrateData(crate,slotsActive);
231  else m_crates[crate] = 0;
232  }
233 }
static const int NUM_CRATES
CrateData * m_crates[ChannelPattern::NUM_CRATES]
HtrXmlPatternSet::~HtrXmlPatternSet ( )

Definition at line 235 of file HtrXmlPatternSet.cc.

References m_crates, and ChannelPattern::NUM_CRATES.

235  {
236  for (int crate=0; crate<ChannelPattern::NUM_CRATES; crate++) {
237  if (m_crates[crate]) delete m_crates[crate];
238  }
239 }
static const int NUM_CRATES
CrateData * m_crates[ChannelPattern::NUM_CRATES]

Member Function Documentation

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

241  {
242  if (crate>=0 && crate<ChannelPattern::NUM_CRATES) return m_crates[crate];
243  else return 0;
244 }
static const int NUM_CRATES
CrateData * m_crates[ChannelPattern::NUM_CRATES]

Member Data Documentation

CrateData* HtrXmlPatternSet::m_crates[ChannelPattern::NUM_CRATES]
private

Definition at line 70 of file HtrXmlPatternSet.h.

Referenced by getCrate(), HtrXmlPatternSet(), and ~HtrXmlPatternSet().