CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HalfHtrData Class Reference

#include <HtrXmlPatternSet.h>

Public Member Functions

int getCrate () const
 
int getDCC () const
 
ChannelPatterngetPattern (int chan)
 
int getSlot () const
 
int getSpigot () const
 
int getTB () const
 
 HalfHtrData (int crate, int slot, int tb)
 
void setDCC (int dcc)
 
void setSpigot (int spigot)
 

Private Attributes

int m_crate
 
int m_dcc
 
ChannelPattern m_patterns [24]
 
int m_slot
 
int m_spigot
 
int m_tb
 

Detailed Description

Definition at line 44 of file HtrXmlPatternSet.h.

Constructor & Destructor Documentation

◆ HalfHtrData()

HalfHtrData::HalfHtrData ( int  crate,
int  slot,
int  tb 
)

Definition at line 240 of file HtrXmlPatternSet.cc.

240  {
241  for (int i = 0; i < 24; i++)
242  m_patterns[i].setLoc(crate, slot, tb, i + 1);
243  m_crate = crate;
244  m_slot = slot;
245  m_tb = tb;
246  //these are set later with map data
247  m_dcc = 0;
248  m_spigot = 0;
249 }

References mps_fire::i, m_crate, m_dcc, m_patterns, m_slot, m_spigot, and m_tb.

Member Function Documentation

◆ getCrate()

int HalfHtrData::getCrate ( ) const
inline

Definition at line 48 of file HtrXmlPatternSet.h.

48 { return m_crate; }

References m_crate.

Referenced by HtrXmlPatternWriter::writePattern().

◆ getDCC()

int HalfHtrData::getDCC ( ) const
inline

Definition at line 52 of file HtrXmlPatternSet.h.

52 { return m_dcc; }

References m_dcc.

Referenced by HtrXmlPatternWriter::writePattern().

◆ getPattern()

ChannelPattern* HalfHtrData::getPattern ( int  chan)
inline

Definition at line 47 of file HtrXmlPatternSet.h.

47 { return (chan >= 1 && chan <= 24) ? (&m_patterns[chan - 1]) : (nullptr); }

References officialStyle::chan, and m_patterns.

Referenced by HtrXmlPatternTool::createHists(), HtrXmlPattern::do_hand_fill(), HtrXmlPatternTool::Fill(), and HtrXmlPatternWriter::writePattern().

◆ getSlot()

int HalfHtrData::getSlot ( ) const
inline

Definition at line 49 of file HtrXmlPatternSet.h.

49 { return m_slot; }

References m_slot.

Referenced by HtrXmlPatternWriter::writePattern().

◆ getSpigot()

int HalfHtrData::getSpigot ( ) const
inline

Definition at line 51 of file HtrXmlPatternSet.h.

51 { return m_spigot; }

References m_spigot.

Referenced by HtrXmlPatternWriter::writePattern().

◆ getTB()

int HalfHtrData::getTB ( ) const
inline

Definition at line 50 of file HtrXmlPatternSet.h.

50 { return m_tb; }

References m_tb.

Referenced by HtrXmlPatternWriter::writePattern().

◆ setDCC()

void HalfHtrData::setDCC ( int  dcc)
inline

Definition at line 54 of file HtrXmlPatternSet.h.

54 { m_dcc = dcc; }

References m_dcc.

Referenced by HtrXmlPatternTool::Fill().

◆ setSpigot()

void HalfHtrData::setSpigot ( int  spigot)
inline

Definition at line 53 of file HtrXmlPatternSet.h.

53 { m_spigot = spigot; }

References m_spigot.

Referenced by HtrXmlPatternTool::Fill().

Member Data Documentation

◆ m_crate

int HalfHtrData::m_crate
private

Definition at line 58 of file HtrXmlPatternSet.h.

Referenced by getCrate(), and HalfHtrData().

◆ m_dcc

int HalfHtrData::m_dcc
private

Definition at line 59 of file HtrXmlPatternSet.h.

Referenced by getDCC(), HalfHtrData(), and setDCC().

◆ m_patterns

ChannelPattern HalfHtrData::m_patterns[24]
private

Definition at line 57 of file HtrXmlPatternSet.h.

Referenced by getPattern(), and HalfHtrData().

◆ m_slot

int HalfHtrData::m_slot
private

Definition at line 58 of file HtrXmlPatternSet.h.

Referenced by getSlot(), and HalfHtrData().

◆ m_spigot

int HalfHtrData::m_spigot
private

Definition at line 59 of file HtrXmlPatternSet.h.

Referenced by getSpigot(), HalfHtrData(), and setSpigot().

◆ m_tb

int HalfHtrData::m_tb
private

Definition at line 58 of file HtrXmlPatternSet.h.

Referenced by getTB(), and HalfHtrData().

mps_fire.i
i
Definition: mps_fire.py:355
HalfHtrData::m_spigot
int m_spigot
Definition: HtrXmlPatternSet.h:59
HalfHtrData::m_tb
int m_tb
Definition: HtrXmlPatternSet.h:58
HalfHtrData::m_dcc
int m_dcc
Definition: HtrXmlPatternSet.h:59
HalfHtrData::m_patterns
ChannelPattern m_patterns[24]
Definition: HtrXmlPatternSet.h:57
officialStyle.chan
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi....
Definition: officialStyle.py:106
HalfHtrData::m_crate
int m_crate
Definition: HtrXmlPatternSet.h:58
HalfHtrData::m_slot
int m_slot
Definition: HtrXmlPatternSet.h:58