#include <AdcChannelData.h>
|
void | setEventInfo (EventInfoPtr pevi) |
|
void | setEventInfo (const EventInfo *pevi) |
|
void | setEventInfo (Index a_run, Index a_event, Index a_subRun=badIndex(), time_t a_time=0, int a_timerem=0, Index a_trigger=badIndex(), LongIndex a_triggerClock=badLongIndex()) |
|
bool | hasEventInfo () const |
|
EventInfoPtr | getEventInfoPtr () const |
|
const DuneEventInfo & | getEventInfo () const |
|
AdcIndex | run () const |
|
AdcIndex | subRun () const |
|
AdcIndex | event () const |
|
time_t | time () const |
|
int | timerem () const |
|
AdcIndex | trigger () const |
|
AdcLongIndex | triggerClock () const |
|
AdcLongIndex | triggerTick0 () const |
|
void | setChannelInfo (ChannelInfoPtr pchi) |
|
void | setChannelInfo (const ChannelInfo *pchi) |
|
void | setChannelInfo (Channel a_channel, Index a_fembID=badIndex(), Index a_fembChannel=badIndex(), Index a_channelStatus=badIndex()) |
|
bool | hasChannelInfo () const |
|
ChannelInfoPtr | getChannelInfoPtr () const |
|
const DuneChannelInfo & | getChannelInfo () const |
|
Channel | channel () const |
|
Index | fembID () const |
|
Index | fembChannel () const |
|
Index | channelStatus () const |
|
AdcLongIndex | tickOffset () const |
|
| AdcChannelData (const AdcChannelData &rhs) |
|
AdcChannelData & | operator= (const AdcChannelData &)=delete |
|
| AdcChannelData ()=default |
|
| AdcChannelData (AdcChannelData &&)=default |
|
AdcChannelData & | operator= (AdcChannelData &&)=default |
|
bool | hasMetadata (Name mname) const |
|
float | getMetadata (Name mname, float def=0.0) const |
|
void | setMetadata (Name mname, float val) |
|
bool | hasAttribute (Name mname, float def=0.0) const |
|
float | getAttribute (Name mname, float def=0.0) const |
|
void | clear () |
|
void | roisFromSignal () |
|
size_t | viewSize () const |
|
NameVector | viewNames () const |
|
bool | hasView (Name vnam) const |
|
const View & | view (Name vnam) const |
|
View & | updateView (Name vnam) |
|
AdcIndex | viewSize (Name vpnam) const |
|
const AdcChannelData * | viewEntry (Name vpnam, AdcIndex ient) const |
|
AdcChannelData * | mutableViewEntry (Name vpnam, AdcIndex ient) |
|
Definition at line 95 of file AdcChannelData.h.
Definition at line 217 of file AdcChannelData.h.
ChannelInfoPtr m_pchanInfo
EventInfoPtr m_peventInfo
AdcLongIndex channelClock
AdcChannelData::AdcChannelData |
( |
| ) |
|
|
default |
static Index AdcChannelData::badChannel |
( |
| ) |
|
|
inlinestatic |
static const ChannelInfo& AdcChannelData::badChannelInfo |
( |
| ) |
|
|
inlinestatic |
Definition at line 121 of file AdcChannelData.h.
static const DuneChannelInfo & badChannelInfo()
static const EventInfo& AdcChannelData::badEventInfo |
( |
| ) |
|
|
inlinestatic |
static Index AdcChannelData::badIndex |
( |
| ) |
|
|
inlinestatic |
static Index AdcChannelData::badLongIndex |
( |
| ) |
|
|
inlinestatic |
static Index AdcChannelData::badSignal |
( |
| ) |
|
|
inlinestatic |
Channel AdcChannelData::channel |
( |
| ) |
const |
|
inline |
Definition at line 199 of file AdcChannelData.h.
const DuneChannelInfo & getChannelInfo() const
Index AdcChannelData::channelStatus |
( |
| ) |
const |
|
inline |
Definition at line 202 of file AdcChannelData.h.
const DuneChannelInfo & getChannelInfo() const
void AdcChannelData::clear |
( |
| ) |
|
|
inline |
Definition at line 386 of file AdcChannelData.h.
ChannelInfoPtr m_pchanInfo
const raw::RawDigit * digit
EventInfoPtr m_peventInfo
AdcSignalVector dftphases
AdcLongIndex channelClock
static AdcIndex AdcChannelData::dftNormalization |
( |
| ) |
|
|
inlinestatic |
AdcIndex AdcChannelData::event |
( |
| ) |
const |
|
inline |
Index AdcChannelData::fembChannel |
( |
| ) |
const |
|
inline |
Definition at line 201 of file AdcChannelData.h.
const DuneChannelInfo & getChannelInfo() const
Index AdcChannelData::fembID |
( |
| ) |
const |
|
inline |
Definition at line 200 of file AdcChannelData.h.
const DuneChannelInfo & getChannelInfo() const
float AdcChannelData::getAttribute |
( |
Name |
mname, |
|
|
float |
def = 0.0 |
|
) |
| const |
|
inline |
Definition at line 291 of file AdcChannelData.h.
292 if ( mname.substr(0,3) ==
"../" ) {
297 if ( mname ==
"run" )
return run();
298 if ( mname ==
"subRun" )
return subRun();
299 if ( mname ==
"event" )
return event();
300 if ( mname ==
"trigger" )
return trigger();
304 if ( mname ==
"channel" )
return channel();
305 if ( mname ==
"fembID" )
return fembID();
306 if ( mname ==
"fembChannel" )
return fembChannel();
307 if ( mname ==
"pedestal" )
return pedestal;
310 if ( mname ==
"digitIndex" )
return digitIndex;
311 if ( mname ==
"wireIndex" )
return wireIndex;
313 if ( mname ==
"raw" )
return raw.size();
314 if ( mname ==
"samples" )
return samples.size();
315 if ( mname ==
"flags" )
return flags.size();
316 if ( mname ==
"signal" )
return signal.size();
317 if ( mname ==
"rois" )
return rois.size();
318 if ( mname ==
"dftmags" )
return dftmags.size();
319 if ( mname ==
"dftphases" )
return dftphases.size();
321 if ( mname ==
"digit" )
return digit !=
nullptr;
322 if ( mname ==
"wire" )
return wire !=
nullptr;
323 if ( mname ==
"metadata" )
return metadata.size();
const raw::RawDigit * digit
float getAttribute(Name mname, float def=0.0) const
AdcChannelData * viewParent
Index fembChannel() const
float getMetadata(Name mname, float def=0.0) const
AdcSignalVector dftphases
AdcLongIndex channelClock
AdcLongIndex triggerClock() const
Definition at line 196 of file AdcChannelData.h.
ChannelInfoPtr m_pchanInfo
bool hasChannelInfo() const
static const ChannelInfo & badChannelInfo()
Definition at line 171 of file AdcChannelData.h.
bool hasEventInfo() const
EventInfoPtr m_peventInfo
static const EventInfo & badEventInfo()
float AdcChannelData::getMetadata |
( |
Name |
mname, |
|
|
float |
def = 0.0 |
|
) |
| const |
|
inline |
Definition at line 241 of file AdcChannelData.h.
242 if ( mname.substr(0,3) ==
"../" ) {
247 if ( imtd ==
metadata.end() )
return def;
AdcChannelData * viewParent
float getMetadata(Name mname, float def=0.0) const
bool AdcChannelData::hasAttribute |
( |
Name |
mname, |
|
|
float |
def = 0.0 |
|
) |
| const |
|
inline |
Definition at line 257 of file AdcChannelData.h.
258 if ( mname.substr(0,3) ==
"../" ) {
262 if ( mname ==
"run" )
return true;
263 if ( mname ==
"subRun" )
return true;
264 if ( mname ==
"event" )
return true;;
265 if ( mname ==
"trigger" )
return true;;
266 if ( mname ==
"triggerClock" )
return true;
267 if ( mname ==
"channelClock" )
return true;
268 if ( mname ==
"channelClockOffset" )
return true;
269 if ( mname ==
"channel" )
return true;
270 if ( mname ==
"fembID" )
return true;
271 if ( mname ==
"fembChannel" )
return true;
272 if ( mname ==
"pedestal" )
return true;
273 if ( mname ==
"pedestalRms" )
return true;
274 if ( mname ==
"sampleNoise" )
return true;
275 if ( mname ==
"digitIndex" )
return true;
276 if ( mname ==
"wireIndex" )
return true;
277 if ( mname ==
"raw" )
return true;
278 if ( mname ==
"samples" )
return true;
279 if ( mname ==
"flags" )
return true;
280 if ( mname ==
"signal" )
return true;
281 if ( mname ==
"rois" )
return true;
282 if ( mname ==
"dftmags" )
return true;
283 if ( mname ==
"dftphases" )
return true;
284 if ( mname ==
"digit" )
return true;
285 if ( mname ==
"wire" )
return true;
286 if ( mname ==
"metadata" )
return metadata.size();
bool hasMetadata(Name mname) const
AdcChannelData * viewParent
bool hasAttribute(Name mname, float def=0.0) const
bool AdcChannelData::hasChannelInfo |
( |
| ) |
const |
|
inline |
bool AdcChannelData::hasEventInfo |
( |
| ) |
const |
|
inline |
bool AdcChannelData::hasMetadata |
( |
Name |
mname | ) |
const |
|
inline |
Definition at line 232 of file AdcChannelData.h.
233 if ( mname.substr(0,3) ==
"../" ) {
bool hasMetadata(Name mname) const
AdcChannelData * viewParent
bool AdcChannelData::hasView |
( |
Name |
vnam | ) |
const |
Definition at line 442 of file AdcChannelData.h.
443 if ( vpnam.size() == 0 )
return true;
444 Name::size_type ipos = vpnam.find(
"/");
445 if ( ipos == Name::npos )
return m_views.count(vpnam);
446 Name vnam = vpnam.substr(0, ipos);
447 if ( !
hasView(vnam) )
return false;
448 Name vsnam = vpnam.substr(ipos + 1);
450 if ( acd.hasView(vsnam) )
return true;
ChannelGroupService::Name Name
const View & view(Name vnam) const
bool hasView(Name vnam) const
Definition at line 518 of file AdcChannelData.h.
519 if ( vpnam.size() == 0 ) {
520 if ( ient == 0 )
return this;
523 Name::size_type ipos = vpnam.find(
"/");
524 if ( ipos == Name::npos ) {
526 if ( ient < myview.size() )
return &myview[ient];
529 Name vnam = vpnam.substr(0, ipos);
530 Name vsnam = vpnam.substr(ipos + 1);
534 if ( ientRem < nvie )
return dat.mutableViewEntry(vsnam, ientRem);
AdcChannelData::View View
ChannelGroupService::Name Name
View & updateView(Name vnam)
void AdcChannelData::roisFromSignal |
( |
| ) |
|
|
inline |
Definition at line 413 of file AdcChannelData.h.
416 for (
unsigned int isig=0; isig<
signal.size(); ++isig ) {
419 if (
signal[isig] ) roi.second = isig;
std::pair< AdcIndex, AdcIndex > AdcRoi
void AdcChannelData::setChannelInfo |
( |
const ChannelInfo * |
pchi | ) |
|
|
inline |
Definition at line 186 of file AdcChannelData.h.
void setChannelInfo(ChannelInfoPtr pchi)
DuneChannelInfo ChannelInfo
void AdcChannelData::setEventInfo |
( |
const EventInfo * |
pevi | ) |
|
|
inline |
void AdcChannelData::setMetadata |
( |
Name |
mname, |
|
|
float |
val |
|
) |
| |
|
inline |
AdcIndex AdcChannelData::subRun |
( |
| ) |
const |
|
inline |
Definition at line 206 of file AdcChannelData.h.
AdcLongIndex triggerTick0() const
static LongIndex badLongIndex()
unsigned long AdcLongIndex
time_t AdcChannelData::time |
( |
| ) |
const |
|
inline |
int AdcChannelData::timerem |
( |
| ) |
const |
|
inline |
AdcIndex AdcChannelData::trigger |
( |
| ) |
const |
|
inline |
Definition at line 466 of file AdcChannelData.h.
467 const Name myname =
"AdcChannelData::updateView: ";
468 if ( vnam.size() == 0 ) {
469 std::cout << myname <<
"WARNING: View name may not be blank." <<
std::endl;
470 static View emptyView;
471 if ( emptyView.size() ) {
472 std::cout << myname <<
"ERROR: Empty view has been modified." <<
std::endl;
AdcChannelData::View View
ChannelGroupService::Name Name
QTextStream & endl(QTextStream &s)
Definition at line 457 of file AdcChannelData.h.
460 if ( ivie ==
m_views.end() )
return empty;
AdcChannelData::View View
decltype(auto) constexpr empty(T &&obj)
ADL-aware version of std::empty.
Definition at line 494 of file AdcChannelData.h.
495 if ( vpnam.size() == 0 ) {
496 if ( ient == 0 )
return this;
499 Name::size_type ipos = vpnam.find(
"/");
500 if ( ipos == Name::npos ) {
502 if ( ient < myview.size() )
return &myview[ient];
505 Name vnam = vpnam.substr(0, ipos);
506 Name vsnam = vpnam.substr(ipos + 1);
510 if ( ientRem < nvie )
return dat.viewEntry(vsnam, ientRem);
AdcChannelData::View View
ChannelGroupService::Name Name
const View & view(Name vnam) const
Definition at line 432 of file AdcChannelData.h.
434 for ( ViewMap::value_type ivie :
m_views ) {
435 vnams.push_back(ivie.first);
size_t AdcChannelData::viewSize |
( |
| ) |
const |
|
inline |
Definition at line 481 of file AdcChannelData.h.
482 if ( vpnam.size() == 0 )
return 1;
483 Name::size_type ipos = vpnam.find(
"/");
484 if ( ipos == Name::npos )
return view(vpnam).size();
485 Name vnam = vpnam.substr(0, ipos);
486 Name vsnam = vpnam.substr(ipos + 1);
ChannelGroupService::Name Name
const View & view(Name vnam) const
Name AdcChannelData::sampleUnit |
AdcInt AdcChannelData::tick0 = 0 |
The documentation for this class was generated from the following file: