CMS 3D CMS Logo

HtrXmlPatternSet Class Reference

#include <IORawData/CaloPatterns/src/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 62 of file HtrXmlPatternSet.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

CrateData * HtrXmlPatternSet::getCrate ( int  crate  ) 

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 }


Member Data Documentation

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

Definition at line 68 of file HtrXmlPatternSet.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:24:48 2009 for CMSSW by  doxygen 1.5.4