Public Member Functions | Private Attributes | List of all members
ReplaceCompressService Class Reference

#include <ReplaceCompressService.h>

Inheritance diagram for ReplaceCompressService:
AdcCompressService

Public Member Functions

 ReplaceCompressService (AdcCount azero=0)
 
 ReplaceCompressService (fhicl::ParameterSet const &pset, art::ActivityRegistry &)
 
int compress (AdcCountVector &sigs, const AdcFilterVector &keep, AdcCount offset, raw::Compress_t &comp) const
 
AdcCount zero () const
 
std::ostream & print (std::ostream &out=std::cout, std::string prefix=" ") const
 
- Public Member Functions inherited from AdcCompressService
virtual ~AdcCompressService ()=default
 

Private Attributes

AdcCount m_zero
 

Detailed Description

Definition at line 24 of file ReplaceCompressService.h.

Constructor & Destructor Documentation

ReplaceCompressService::ReplaceCompressService ( AdcCount  azero = 0)

Definition at line 13 of file ReplaceCompressService_service.cc.

14 : m_zero(azero) { }
ReplaceCompressService::ReplaceCompressService ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry  
)

Member Function Documentation

int ReplaceCompressService::compress ( AdcCountVector sigs,
const AdcFilterVector keep,
AdcCount  offset,
raw::Compress_t comp 
) const
virtual

Implements AdcCompressService.

Definition at line 27 of file ReplaceCompressService_service.cc.

28  {
29  for ( unsigned int isig=0; isig<sigs.size(); ++isig ) {
30  if ( ! keep[isig] ) sigs[isig] = zero() + offset;
31  }
32  comp = raw::kNone;
33  return 0;
34 }
no compression
Definition: RawTypes.h:9
ostream & ReplaceCompressService::print ( std::ostream &  out = std::cout,
std::string  prefix = "  " 
) const
virtual

Implements AdcCompressService.

Definition at line 44 of file ReplaceCompressService_service.cc.

44  {
45  out << prefix << "ReplaceCompressService:" << endl;
46  prefix += " ";
47  out << prefix << "Zero = " << m_zero << endl;
48  return out;
49 }
QTextStream & endl(QTextStream &s)
AdcCount ReplaceCompressService::zero ( ) const

Definition at line 38 of file ReplaceCompressService_service.cc.

38  {
39  return m_zero;
40 }

Member Data Documentation

AdcCount ReplaceCompressService::m_zero
private

Definition at line 49 of file ReplaceCompressService.h.


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