Public Member Functions | Public Attributes | List of all members
AdcRoiViewer::State Class Reference

#include <AdcRoiViewer.h>

Public Member Functions

 ~State ()
 
TH1 * getSumHist (Name hnam)
 
Name getSumFitName (Name hnam) const
 
Name getSumPlotName (Name hnam) const
 
float getSumPlotWidth (Name hnam) const
 
Name getChanSumHistTemplateName (Name hnam) const
 
Name getChanSumHistVariableType (Name hnam) const
 
Name getChanSumHistErrorType (Name hnam) const
 
Name getChanSumPlotName (Name hnam) const
 
Index getChannelStatus (Index icha) const
 
Index getChannelStatus (Name hnam) const
 

Public Attributes

TpmMap roiPads
 
TpmNameMap roiPadNames
 
TpmCountMap roiPadCounts
 
HistInfoMap sumHistTemplates
 
HistMap sumHists
 
HistVectorMap sumPlotHists
 
NameMap sumFitNames
 
NameMap sumPlotNames
 
FloatMap sumPlotWidths
 
IndexByNameMap sumHistChannels
 
HistMap chanSumHists
 
NameMap chanSumHistTemplateNames
 
NameMap chanSumHistVariableTypes
 
NameMap chanSumHistErrorTypes
 
IndexByNameMap chanSumHistTypes
 
NameMap chanSumPlotNames
 
FloatMap chanSumPlotYMins
 
FloatMap chanSumPlotYMaxs
 
NameMap chanSumPlotYOpts
 
IndexByNameMap chanSumChaBegin
 
IndexByNameMap chanSumChaEnd
 
Index cachedRunCount = 0
 
Index cachedRun = AdcChannelData::badIndex()
 
Name cachedSampleUnit
 
Index nRoiPlot =0
 
IndexByIndexMap channelStatuses
 
RunData runData
 
Index callCount =0
 
IndexByIndexMap eventCallCount
 
Index closeCount = 0
 

Detailed Description

Definition at line 224 of file AdcRoiViewer.h.

Constructor & Destructor Documentation

AdcRoiViewer::State::~State ( )

Definition at line 59 of file AdcRoiViewer_tool.cc.

59  {
60  for ( HistInfoMap::value_type ihin : sumHistTemplates ) {
61  TH1*& ph = ihin.second.ph;
62  delete ph;
63  ph = nullptr;
64  }
65  for ( HistMap::value_type ihst : sumHists ) {
66  TH1*& ph = ihst.second;
67  delete ph;
68  ph = nullptr;
69  }
70  for ( HistMap::value_type ihst : chanSumHists ) {
71  TH1*& ph = ihst.second;
72  delete ph;
73  ph = nullptr;
74  }
75 }
HistInfoMap sumHistTemplates
Definition: AdcRoiViewer.h:231

Member Function Documentation

Index AdcRoiViewer::State::getChannelStatus ( Index  icha) const

Definition at line 143 of file AdcRoiViewer_tool.cc.

143  {
144  const Name myname = "AdcRoiViewer::State::getChannelStatus: ";
146  if ( ichs == channelStatuses.end() ) {
147  cout << myname << "WARNING: Status not found for channel " << icha << endl;
148  return 0;
149  }
150  return ichs->second;
151 }
IndexByIndexMap channelStatuses
Definition: AdcRoiViewer.h:268
ChannelGroupService::Name Name
intermediate_table::const_iterator const_iterator
QTextStream & endl(QTextStream &s)
Index AdcRoiViewer::State::getChannelStatus ( Name  hnam) const

Definition at line 155 of file AdcRoiViewer_tool.cc.

155  {
156  const Name myname = "AdcRoiViewer::State::getChannelStatus: ";
158  if ( ichc == sumHistChannels.end() ) {
159  cout << myname << "WARNING: Channel not found for chansum histogram " << hnam << endl;
160  return 0;
161  }
162  return getChannelStatus(ichc->second);
163 }
IndexByNameMap sumHistChannels
Definition: AdcRoiViewer.h:239
ChannelGroupService::Name Name
intermediate_table::const_iterator const_iterator
Index getChannelStatus(Index icha) const
QTextStream & endl(QTextStream &s)
Name AdcRoiViewer::State::getChanSumHistErrorType ( Name  hnam) const

Definition at line 127 of file AdcRoiViewer_tool.cc.

127  {
129  if ( ihst == chanSumHistErrorTypes.end() ) return nullptr;
130  return ihst->second;
131 }
intermediate_table::const_iterator const_iterator
NameMap chanSumHistErrorTypes
Definition: AdcRoiViewer.h:244
Name AdcRoiViewer::State::getChanSumHistTemplateName ( Name  hnam) const

Definition at line 111 of file AdcRoiViewer_tool.cc.

111  {
113  if ( ihst == chanSumHistTemplateNames.end() ) return nullptr;
114  return ihst->second;
115 }
intermediate_table::const_iterator const_iterator
NameMap chanSumHistTemplateNames
Definition: AdcRoiViewer.h:242
Name AdcRoiViewer::State::getChanSumHistVariableType ( Name  hnam) const

Definition at line 119 of file AdcRoiViewer_tool.cc.

119  {
121  if ( ihst == chanSumHistVariableTypes.end() ) return nullptr;
122  return ihst->second;
123 }
intermediate_table::const_iterator const_iterator
NameMap chanSumHistVariableTypes
Definition: AdcRoiViewer.h:243
Name AdcRoiViewer::State::getChanSumPlotName ( Name  hnam) const

Definition at line 135 of file AdcRoiViewer_tool.cc.

135  {
136  NameMap::const_iterator ihst = chanSumPlotNames.find(hnam);
137  if ( ihst == chanSumPlotNames.end() ) return nullptr;
138  return ihst->second;
139 }
intermediate_table::const_iterator const_iterator
Name AdcRoiViewer::State::getSumFitName ( Name  hnam) const

Definition at line 87 of file AdcRoiViewer_tool.cc.

87  {
88  NameMap::const_iterator ifit = sumFitNames.find(hnam);
89  if ( ifit == sumFitNames.end() ) return "";
90  return ifit->second;
91 }
intermediate_table::const_iterator const_iterator
TH1 * AdcRoiViewer::State::getSumHist ( Name  hnam)

Definition at line 79 of file AdcRoiViewer_tool.cc.

79  {
80  HistMap::iterator ihst = sumHists.find(hname);
81  if ( ihst == sumHists.end() ) return nullptr;
82  return ihst->second;
83 }
intermediate_table::iterator iterator
Name AdcRoiViewer::State::getSumPlotName ( Name  hnam) const

Definition at line 95 of file AdcRoiViewer_tool.cc.

95  {
96  NameMap::const_iterator iplt = sumPlotNames.find(hnam);
97  if ( iplt == sumPlotNames.end() ) return "";
98  return iplt->second;
99 }
intermediate_table::const_iterator const_iterator
float AdcRoiViewer::State::getSumPlotWidth ( Name  hnam) const

Definition at line 103 of file AdcRoiViewer_tool.cc.

103  {
104  FloatMap::const_iterator iplt = sumPlotWidths.find(hnam);
105  if ( iplt == sumPlotWidths.end() ) return 0.0;
106  return iplt->second;
107 }
intermediate_table::const_iterator const_iterator

Member Data Documentation

Index AdcRoiViewer::State::cachedRun = AdcChannelData::badIndex()

Definition at line 265 of file AdcRoiViewer.h.

Index AdcRoiViewer::State::cachedRunCount = 0

Definition at line 264 of file AdcRoiViewer.h.

Name AdcRoiViewer::State::cachedSampleUnit

Definition at line 266 of file AdcRoiViewer.h.

Index AdcRoiViewer::State::callCount =0

Definition at line 272 of file AdcRoiViewer.h.

IndexByIndexMap AdcRoiViewer::State::channelStatuses

Definition at line 268 of file AdcRoiViewer.h.

IndexByNameMap AdcRoiViewer::State::chanSumChaBegin

Definition at line 250 of file AdcRoiViewer.h.

IndexByNameMap AdcRoiViewer::State::chanSumChaEnd

Definition at line 251 of file AdcRoiViewer.h.

NameMap AdcRoiViewer::State::chanSumHistErrorTypes

Definition at line 244 of file AdcRoiViewer.h.

HistMap AdcRoiViewer::State::chanSumHists

Definition at line 241 of file AdcRoiViewer.h.

NameMap AdcRoiViewer::State::chanSumHistTemplateNames

Definition at line 242 of file AdcRoiViewer.h.

IndexByNameMap AdcRoiViewer::State::chanSumHistTypes

Definition at line 245 of file AdcRoiViewer.h.

NameMap AdcRoiViewer::State::chanSumHistVariableTypes

Definition at line 243 of file AdcRoiViewer.h.

NameMap AdcRoiViewer::State::chanSumPlotNames

Definition at line 246 of file AdcRoiViewer.h.

FloatMap AdcRoiViewer::State::chanSumPlotYMaxs

Definition at line 248 of file AdcRoiViewer.h.

FloatMap AdcRoiViewer::State::chanSumPlotYMins

Definition at line 247 of file AdcRoiViewer.h.

NameMap AdcRoiViewer::State::chanSumPlotYOpts

Definition at line 249 of file AdcRoiViewer.h.

Index AdcRoiViewer::State::closeCount = 0

Definition at line 274 of file AdcRoiViewer.h.

IndexByIndexMap AdcRoiViewer::State::eventCallCount

Definition at line 273 of file AdcRoiViewer.h.

Index AdcRoiViewer::State::nRoiPlot =0

Definition at line 267 of file AdcRoiViewer.h.

TpmCountMap AdcRoiViewer::State::roiPadCounts

Definition at line 229 of file AdcRoiViewer.h.

TpmNameMap AdcRoiViewer::State::roiPadNames

Definition at line 228 of file AdcRoiViewer.h.

TpmMap AdcRoiViewer::State::roiPads

Definition at line 227 of file AdcRoiViewer.h.

RunData AdcRoiViewer::State::runData

Definition at line 270 of file AdcRoiViewer.h.

NameMap AdcRoiViewer::State::sumFitNames

Definition at line 235 of file AdcRoiViewer.h.

IndexByNameMap AdcRoiViewer::State::sumHistChannels

Definition at line 239 of file AdcRoiViewer.h.

HistMap AdcRoiViewer::State::sumHists

Definition at line 233 of file AdcRoiViewer.h.

HistInfoMap AdcRoiViewer::State::sumHistTemplates

Definition at line 231 of file AdcRoiViewer.h.

HistVectorMap AdcRoiViewer::State::sumPlotHists

Definition at line 234 of file AdcRoiViewer.h.

NameMap AdcRoiViewer::State::sumPlotNames

Definition at line 236 of file AdcRoiViewer.h.

FloatMap AdcRoiViewer::State::sumPlotWidths

Definition at line 238 of file AdcRoiViewer.h.


The documentation for this class was generated from the following files: