CMS 3D CMS Logo

Public Member Functions | Private Attributes

HtrXmlPatternSet Class Reference

#include <HtrXmlPatternSet.h>

List of all members.

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.

                                                                                                                       {
  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];
  }
}

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

                                               {
  if (crate>=0 && crate<ChannelPattern::NUM_CRATES) return m_crates[crate];
  else return 0;
}

Member Data Documentation

Definition at line 70 of file HtrXmlPatternSet.h.

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