Public Member Functions | Private Attributes | List of all members
daqdataformats::FEBVersioningRegisters Class Reference

Class describing the values of the FEB registers for the NanoSlice version. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/DAQDataFormats/cxx/include/NanoSliceVersionConvention.h"

Public Member Functions

 FEBVersioningRegisters ()
 
 FEBVersioningRegisters (const Encode_Type encode, const uint32_t nsamples, const uint32_t npretriggered_samples)
 
 FEBVersioningRegisters (const FEBVersioningRegisters &copy)
 
 ~FEBVersioningRegisters ()
 
bool setEncode (const Encode_Type encode)
 
bool setNSamples (const uint32_t nsamples)
 
bool setNPretriggeredSamples (const uint32_t nsamples)
 
Encode_Type getEncode () const
 
uint32_t getNSamples () const
 
uint32_t getNPretriggeredSamples () const
 
std::ostream & print (std::ostream &os=std::cout) const
 

Private Attributes

Encode_Type _encode
 Encoding for a sample. Compression type. More...
 
uint32_t _nSamples
 Total number of samples to record. More...
 
uint32_t _nPretriggeredSamples
 Number of pretriggered samples to record. Must be less than NSamples. More...
 

Detailed Description

Class describing the values of the FEB registers for the NanoSlice version.

Definition at line 36 of file NanoSliceVersionConvention.h.

Constructor & Destructor Documentation

daqdataformats::FEBVersioningRegisters::FEBVersioningRegisters ( )
inline

Definition at line 38 of file NanoSliceVersionConvention.h.

Referenced by daqdataformats::NanoSliceVersionConvention::setup().

38  :
40  ,_nSamples (0)
42  {
43  }
uint32_t _nSamples
Total number of samples to record.
uint32_t _nPretriggeredSamples
Number of pretriggered samples to record. Must be less than NSamples.
Encode_Type _encode
Encoding for a sample. Compression type.
daqdataformats::FEBVersioningRegisters::FEBVersioningRegisters ( const Encode_Type  encode,
const uint32_t  nsamples,
const uint32_t  npretriggered_samples 
)
inline

Definition at line 44 of file NanoSliceVersionConvention.h.

47  :
48  _encode (encode)
49  ,_nSamples (nsamples)
50  ,_nPretriggeredSamples(npretriggered_samples)
51  {
52  }
uint32_t _nSamples
Total number of samples to record.
ps_atom_t encode(std::string const &)
uint32_t _nPretriggeredSamples
Number of pretriggered samples to record. Must be less than NSamples.
Encode_Type _encode
Encoding for a sample. Compression type.
daqdataformats::FEBVersioningRegisters::FEBVersioningRegisters ( const FEBVersioningRegisters copy)
inline

Definition at line 53 of file NanoSliceVersionConvention.h.

53  :
54  _encode (copy._encode)
55  ,_nSamples (copy._nSamples)
56  ,_nPretriggeredSamples(copy._nPretriggeredSamples)
57 
58  {
59  }
uint32_t _nSamples
Total number of samples to record.
uint32_t _nPretriggeredSamples
Number of pretriggered samples to record. Must be less than NSamples.
Encode_Type _encode
Encoding for a sample. Compression type.
daqdataformats::FEBVersioningRegisters::~FEBVersioningRegisters ( )
inline

Definition at line 61 of file NanoSliceVersionConvention.h.

61 {}

Member Function Documentation

Encode_Type daqdataformats::FEBVersioningRegisters::getEncode ( ) const
inline

Definition at line 79 of file NanoSliceVersionConvention.h.

References _encode.

Referenced by daqdataformats::NanoSliceVersionConvention::getEncodeType().

79 {return _encode;}
Encode_Type _encode
Encoding for a sample. Compression type.
uint32_t daqdataformats::FEBVersioningRegisters::getNPretriggeredSamples ( ) const
inline

Definition at line 81 of file NanoSliceVersionConvention.h.

References _nPretriggeredSamples.

Referenced by daqdataformats::NanoSliceVersionConvention::getNPretriggeredSamples().

81 {return _nPretriggeredSamples;}
uint32_t _nPretriggeredSamples
Number of pretriggered samples to record. Must be less than NSamples.
uint32_t daqdataformats::FEBVersioningRegisters::getNSamples ( ) const
inline

Definition at line 80 of file NanoSliceVersionConvention.h.

References _nSamples.

Referenced by daqdataformats::NanoSliceVersionConvention::getNSamples().

80 {return _nSamples;}
uint32_t _nSamples
Total number of samples to record.
std::ostream& daqdataformats::FEBVersioningRegisters::print ( std::ostream &  os = std::cout) const
inline

Definition at line 83 of file NanoSliceVersionConvention.h.

References _encode, _nPretriggeredSamples, and _nSamples.

84  {
85  os<<"Encode="<<_encode
86  <<", NSamples="<<_nSamples
87  <<", NPretriggeredSamples="<<_nPretriggeredSamples<<"\n";
88 
89  return os;
90  }
uint32_t _nSamples
Total number of samples to record.
uint32_t _nPretriggeredSamples
Number of pretriggered samples to record. Must be less than NSamples.
Encode_Type _encode
Encoding for a sample. Compression type.
bool daqdataformats::FEBVersioningRegisters::setEncode ( const Encode_Type  encode)
inline

Definition at line 63 of file NanoSliceVersionConvention.h.

References _encode, and fhicl::detail::encode().

64  {
65  _encode = encode;
66  return true;
67  }
ps_atom_t encode(std::string const &)
Encode_Type _encode
Encoding for a sample. Compression type.
bool daqdataformats::FEBVersioningRegisters::setNPretriggeredSamples ( const uint32_t  nsamples)
inline

Definition at line 73 of file NanoSliceVersionConvention.h.

References _nPretriggeredSamples.

74  {
75  _nPretriggeredSamples = nsamples;
76  return true;
77  }
uint32_t _nPretriggeredSamples
Number of pretriggered samples to record. Must be less than NSamples.
bool daqdataformats::FEBVersioningRegisters::setNSamples ( const uint32_t  nsamples)
inline

Definition at line 68 of file NanoSliceVersionConvention.h.

References _nSamples.

69  {
70  _nSamples = nsamples;
71  return true;
72  }
uint32_t _nSamples
Total number of samples to record.

Member Data Documentation

Encode_Type daqdataformats::FEBVersioningRegisters::_encode
private

Encoding for a sample. Compression type.

Definition at line 94 of file NanoSliceVersionConvention.h.

Referenced by getEncode(), print(), and setEncode().

uint32_t daqdataformats::FEBVersioningRegisters::_nPretriggeredSamples
private

Number of pretriggered samples to record. Must be less than NSamples.

Definition at line 96 of file NanoSliceVersionConvention.h.

Referenced by getNPretriggeredSamples(), print(), and setNPretriggeredSamples().

uint32_t daqdataformats::FEBVersioningRegisters::_nSamples
private

Total number of samples to record.

Definition at line 95 of file NanoSliceVersionConvention.h.

Referenced by getNSamples(), print(), and setNSamples().


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