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

#include <AdcEventViewer.h>

Public Member Functions

bool haveEvent () const
 
Index run () const
 
Index event () const
 
LongIndex clock () const
 
std::string runString () const
 

Public Attributes

Index beginEventCount =0
 
Index endEventCount =0
 
DuneEventInfo eventInfo
 
IndexVector events
 
LongIndexVector clocks
 
LongIndex firstClock =0
 
LongIndex minClock =0
 
IndexSet eventSet
 
IndexSet runSet
 
Index ngroup =0
 
ChannelRangeStates crstates
 

Detailed Description

Definition at line 125 of file AdcEventViewer.h.

Member Function Documentation

LongIndex AdcEventViewer::State::clock ( ) const
inline

Definition at line 142 of file AdcEventViewer.h.

142 { return eventInfo.triggerClock; } // Current timing clock.
DuneEventInfo eventInfo
LongIndex triggerClock
Definition: DuneEventInfo.h:27
Index AdcEventViewer::State::event ( ) const
inline

Definition at line 141 of file AdcEventViewer.h.

141 { return eventInfo.event; } // Current event.
DuneEventInfo eventInfo
bool AdcEventViewer::State::haveEvent ( ) const
inline

Definition at line 139 of file AdcEventViewer.h.

139 { return eventInfo.isValid(); } // Is there a current event?
DuneEventInfo eventInfo
bool isValid() const
Definition: DuneEventInfo.h:65
Index AdcEventViewer::State::run ( ) const
inline

Definition at line 140 of file AdcEventViewer.h.

140 { return eventInfo.run; } // Current run number.
DuneEventInfo eventInfo
std::string AdcEventViewer::State::runString ( ) const

Definition at line 87 of file AdcEventViewer_tool.cc.

87  {
88  const string myname = "AdcEventViewer::State::runString: ";
89  if ( eventInfo.isValid() ) return eventInfo.runString();
90  if ( runSet.size() == 0 ) return "<no-runs>";
91  if ( runSet.size() > 1 ) {
92  cout << myname << "WARNING: Multiple runs have been processed:";
93  bool first = true;
94  for ( Index irun : runSet ) {
95  if ( first ) first = false;
96  else cout << ", ";
97  cout << irun;
98  }
99  cout << endl;
100  return "<multiple-runs>";
101  }
102  DuneEventInfo evi;
103  evi.run = *runSet.begin();
104  return evi.runString();
105 }
unsigned int Index
DuneEventInfo eventInfo
std::string runString(Index opt=2) const
bool isValid() const
Definition: DuneEventInfo.h:65
QTextStream & endl(QTextStream &s)

Member Data Documentation

Index AdcEventViewer::State::beginEventCount =0

Definition at line 127 of file AdcEventViewer.h.

LongIndexVector AdcEventViewer::State::clocks

Definition at line 131 of file AdcEventViewer.h.

ChannelRangeStates AdcEventViewer::State::crstates

Definition at line 137 of file AdcEventViewer.h.

Index AdcEventViewer::State::endEventCount =0

Definition at line 128 of file AdcEventViewer.h.

DuneEventInfo AdcEventViewer::State::eventInfo

Definition at line 129 of file AdcEventViewer.h.

IndexVector AdcEventViewer::State::events

Definition at line 130 of file AdcEventViewer.h.

IndexSet AdcEventViewer::State::eventSet

Definition at line 134 of file AdcEventViewer.h.

LongIndex AdcEventViewer::State::firstClock =0

Definition at line 132 of file AdcEventViewer.h.

LongIndex AdcEventViewer::State::minClock =0

Definition at line 133 of file AdcEventViewer.h.

Index AdcEventViewer::State::ngroup =0

Definition at line 136 of file AdcEventViewer.h.

IndexSet AdcEventViewer::State::runSet

Definition at line 135 of file AdcEventViewer.h.


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