#include <RawDigitAdder.h>
Definition at line 33 of file RawDigitAdder.h.
mix::RawDigitAdder::RawDigitAdder |
( |
bool |
t = true | ) |
|
|
inline |
virtual mix::RawDigitAdder::~RawDigitAdder |
( |
| ) |
|
|
inlinevirtual |
void RawDigitAdder::AddRawDigit |
( |
short const & |
d1, |
|
|
short const & |
d2, |
|
|
short & |
d_out |
|
) |
| |
|
privatevirtual |
void RawDigitAdder::AddRawDigit |
( |
short const & |
d1, |
|
|
short & |
d2 |
|
) |
| |
|
private |
Definition at line 60 of file RawDigitAdder.cxx.
virtual void AddRawDigit(short const &, short const &, short &)
Definition at line 8 of file RawDigitAdder.cxx.
13 outputVec.clear(); outputVec.resize(inputVec1.size());
14 for(
size_t i=0; i<inputVec1.size(); i++)
void CheckVectorSize(std::vector< short > const &, std::vector< short > const &)
virtual void AddRawDigit(short const &, short const &, short &)
Definition at line 18 of file RawDigitAdder.cxx.
22 for(
size_t i=0; i<inputVec1.size(); i++)
void CheckVectorSize(std::vector< short > const &, std::vector< short > const &)
virtual void AddRawDigit(short const &, short const &, short &)
Definition at line 26 of file RawDigitAdder.cxx.
29 if(inputVecList.size()==0){
31 throw std::runtime_error(
"Error in RawDigitAdder::AddRawDigits : Input vector list is empty.");
34 for(
auto const& vec : inputVecList)
37 outputVec.clear(); outputVec.resize(inputVecList[0].
size(),0.0);
39 for(
auto const& inputVec : inputVecList)
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
void CheckVectorSize(std::vector< short > const &, std::vector< short > const &)
void AddRawDigits(std::vector< short > const &, std::vector< short > const &, std::vector< short > &)
Definition at line 44 of file RawDigitAdder.cxx.
47 if(vec1.size() != vec2.size()){
49 throw std::runtime_error(
"Error in RawDigitAdder: Failed CheckVectorSize()");
void RawDigitAdder::FixOverflow |
( |
short & |
d | ) |
|
|
protected |
void mix::RawDigitAdder::SetPedestalFirstInput |
( |
float |
f1 | ) |
|
|
inline |
Definition at line 49 of file RawDigitAdder.h.
void SetPedestalInput(float f, float &_scale)
void RawDigitAdder::SetPedestalInput |
( |
float |
f, |
|
|
float & |
_scale |
|
) |
| |
|
private |
void mix::RawDigitAdder::SetPedestalInputs |
( |
float |
f1, |
|
|
float |
f2 |
|
) |
| |
|
inline |
Definition at line 52 of file RawDigitAdder.h.
void SetPedestalFirstInput(float f1)
void SetPedestalSecondInput(float f2)
void mix::RawDigitAdder::SetPedestalSecondInput |
( |
float |
f2 | ) |
|
|
inline |
Definition at line 50 of file RawDigitAdder.h.
void SetPedestalInput(float f, float &_scale)
float mix::RawDigitAdder::_ped1 |
|
private |
float mix::RawDigitAdder::_ped2 |
|
private |
bool mix::RawDigitAdder::_throw |
|
protected |
The documentation for this class was generated from the following files: