Public Member Functions | Public Attributes | List of all members
AdcChannelDftPlotter::SubState Class Reference

Public Member Functions

 ~SubState ()
 
Indexcount (Name crn)
 
Indexnchan (Name crn)
 
Indexnviewentry (Name crn)
 
TH1 *& hist (Name crn)
 
Index histCount () const
 
void clear ()
 

Public Attributes

IndexMap counts
 
IndexMap nchans
 
IndexMap nvens
 
HistMap hists
 

Detailed Description

Definition at line 118 of file AdcChannelDftPlotter.h.

Constructor & Destructor Documentation

AdcChannelDftPlotter::SubState::~SubState ( )
inline

Definition at line 120 of file AdcChannelDftPlotter.h.

120  {
121  for ( HistMap::value_type ihst : hists ) delete ihst.second;;
122  }

Member Function Documentation

void AdcChannelDftPlotter::SubState::clear ( )
inline

Definition at line 147 of file AdcChannelDftPlotter.h.

147  {
148  counts.clear();
149  nchans.clear();
150  nvens.clear();
151  hists.clear();
152  }
Index& AdcChannelDftPlotter::SubState::count ( Name  crn)
inline

Definition at line 123 of file AdcChannelDftPlotter.h.

123  {
124  if ( ! counts.count(crn) ) counts[crn] = 0;
125  return counts[crn];
126  }
TH1*& AdcChannelDftPlotter::SubState::hist ( Name  crn)
inline

Definition at line 135 of file AdcChannelDftPlotter.h.

135  {
136  if ( ! hists.count(crn) ) hists[crn] = nullptr;
137  return hists[crn];
138  }
Index AdcChannelDftPlotter::SubState::histCount ( ) const
inline

Definition at line 140 of file AdcChannelDftPlotter.h.

140  {
141  Index cnt = 0;
142  for ( HistMap::value_type ihst : hists ) {
143  if ( ihst.second != nullptr ) ++cnt;
144  }
145  return cnt;
146  }
unsigned int Index
Index& AdcChannelDftPlotter::SubState::nchan ( Name  crn)
inline

Definition at line 127 of file AdcChannelDftPlotter.h.

127  {
128  if ( ! nchans.count(crn) ) nchans[crn] = 0;
129  return nchans[crn];
130  }
Index& AdcChannelDftPlotter::SubState::nviewentry ( Name  crn)
inline

Definition at line 131 of file AdcChannelDftPlotter.h.

131  {
132  if ( ! nvens.count(crn) ) nvens[crn] = 0;
133  return nvens[crn];
134  }

Member Data Documentation

IndexMap AdcChannelDftPlotter::SubState::counts

Definition at line 153 of file AdcChannelDftPlotter.h.

HistMap AdcChannelDftPlotter::SubState::hists

Definition at line 156 of file AdcChannelDftPlotter.h.

IndexMap AdcChannelDftPlotter::SubState::nchans

Definition at line 154 of file AdcChannelDftPlotter.h.

IndexMap AdcChannelDftPlotter::SubState::nvens

Definition at line 155 of file AdcChannelDftPlotter.h.


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