CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Private Attributes
ChannelPattern Class Reference

#include <HtrXmlPatternSet.h>

Public Member Functions

 ChannelPattern ()
 
void encode ()
 
void Fill (HtrXmlPatternToolParameters *params, HBHEDigiCollection::const_iterator data)
 
void Fill (HtrXmlPatternToolParameters *params, HFDigiCollection::const_iterator data)
 
void Fill (HtrXmlPatternToolParameters *params, HODigiCollection::const_iterator data)
 
void Fill_by_hand (const HcalElectronicsMap *, int)
 
int getChan () const
 
int getCoded (int bc) const
 
int getCrate () const
 
double getQuantized (int bc) const
 
int getSlot () const
 
int getTB () const
 
double & operator[] (int bc)
 
const double operator[] (int bc) const
 
void setLoc (int crate, int slot, int tb, int chan)
 

Static Public Attributes

static const int NUM_CRATES = 18
 
static const int NUM_SLOTS = 22
 
static const int SAMPLES = 512
 

Private Attributes

int fCCoded [SAMPLES]
 
double fCQuantized [SAMPLES]
 
double fCReal [SAMPLES]
 
int m_chan
 
int m_crate
 
int m_sample_pos
 
int m_slot
 
int m_tb
 

Detailed Description

Definition at line 8 of file HtrXmlPatternSet.h.

Constructor & Destructor Documentation

ChannelPattern::ChannelPattern ( )

Definition at line 5 of file HtrXmlPatternSet.cc.

Member Function Documentation

void ChannelPattern::encode ( )
void ChannelPattern::Fill ( HtrXmlPatternToolParameters params,
HBHEDigiCollection::const_iterator  data 
)

Definition at line 123 of file HtrXmlPatternSet.cc.

void ChannelPattern::Fill ( HtrXmlPatternToolParameters params,
HFDigiCollection::const_iterator  data 
)

Definition at line 147 of file HtrXmlPatternSet.cc.

void ChannelPattern::Fill ( HtrXmlPatternToolParameters params,
HODigiCollection::const_iterator  data 
)

Definition at line 171 of file HtrXmlPatternSet.cc.

void ChannelPattern::Fill_by_hand ( const HcalElectronicsMap emap,
int  pattern_number 
)

Definition at line 14 of file HtrXmlPatternSet.cc.

int ChannelPattern::getChan ( ) const
inline

Definition at line 20 of file HtrXmlPatternSet.h.

References m_chan.

20 { return m_chan; }
int ChannelPattern::getCoded ( int  bc) const
inline

Definition at line 24 of file HtrXmlPatternSet.h.

References fCCoded.

Referenced by HtrXmlPatternWriter::writePattern().

24 { return fCCoded[bc]; }
int fCCoded[SAMPLES]
int ChannelPattern::getCrate ( ) const
inline

Definition at line 17 of file HtrXmlPatternSet.h.

References m_crate.

17 { return m_crate; }
double ChannelPattern::getQuantized ( int  bc) const
inline

Definition at line 25 of file HtrXmlPatternSet.h.

References fCQuantized.

25 { return fCQuantized[bc]; }
double fCQuantized[SAMPLES]
int ChannelPattern::getSlot ( ) const
inline

Definition at line 18 of file HtrXmlPatternSet.h.

References m_slot.

18 { return m_slot; }
int ChannelPattern::getTB ( ) const
inline

Definition at line 19 of file HtrXmlPatternSet.h.

References m_tb.

19 { return m_tb; }
double& ChannelPattern::operator[] ( int  bc)
inline

Definition at line 21 of file HtrXmlPatternSet.h.

References fCReal.

21 { return fCReal[bc]; }
double fCReal[SAMPLES]
const double ChannelPattern::operator[] ( int  bc) const
inline

Definition at line 22 of file HtrXmlPatternSet.h.

References fCReal.

22 { return fCReal[bc]; }
double fCReal[SAMPLES]
void ChannelPattern::setLoc ( int  crate,
int  slot,
int  tb,
int  chan 
)
inline

Definition at line 16 of file HtrXmlPatternSet.h.

References m_chan, m_crate, m_slot, and m_tb.

Member Data Documentation

int ChannelPattern::fCCoded[SAMPLES]
private

Definition at line 33 of file HtrXmlPatternSet.h.

Referenced by getCoded().

double ChannelPattern::fCQuantized[SAMPLES]
private

Definition at line 32 of file HtrXmlPatternSet.h.

Referenced by getQuantized().

double ChannelPattern::fCReal[SAMPLES]
private

Definition at line 31 of file HtrXmlPatternSet.h.

Referenced by operator[]().

int ChannelPattern::m_chan
private

Definition at line 34 of file HtrXmlPatternSet.h.

Referenced by getChan(), and setLoc().

int ChannelPattern::m_crate
private

Definition at line 34 of file HtrXmlPatternSet.h.

Referenced by getCrate(), and setLoc().

int ChannelPattern::m_sample_pos
private

Definition at line 35 of file HtrXmlPatternSet.h.

int ChannelPattern::m_slot
private

Definition at line 34 of file HtrXmlPatternSet.h.

Referenced by getSlot(), and setLoc().

int ChannelPattern::m_tb
private

Definition at line 34 of file HtrXmlPatternSet.h.

Referenced by getTB(), and setLoc().

const int ChannelPattern::NUM_CRATES = 18
static

Definition at line 11 of file HtrXmlPatternSet.h.

const int ChannelPattern::NUM_SLOTS = 22
static

Definition at line 13 of file HtrXmlPatternSet.h.

const int ChannelPattern::SAMPLES = 512
static

Definition at line 10 of file HtrXmlPatternSet.h.