#include <CSCPedestalChoice.h>
Public Member Functions | |
CSCSubtractPedestal (float ped) | |
void | operator() (int &elem) const |
void | operator() (float &elem) const |
Private Attributes | |
float | ped_ |
A class to be used as a function in a for_each algorithm to subtract the pedestal. That is set as the ctor arg.
Definition at line 100 of file CSCPedestalChoice.h.
CSCSubtractPedestal::CSCSubtractPedestal | ( | float | ped | ) | [inline] |
Definition at line 102 of file CSCPedestalChoice.h.
: ped_(ped) {}
void CSCSubtractPedestal::operator() | ( | float & | elem | ) | const [inline] |
void CSCSubtractPedestal::operator() | ( | int & | elem | ) | const [inline] |
Definition at line 106 of file CSCPedestalChoice.h.
References ped_.
{ elem -= static_cast<int>(ped_); // not strictly correct but OK for the typical large pedestals }
float CSCSubtractPedestal::ped_ [private] |
Definition at line 111 of file CSCPedestalChoice.h.
Referenced by operator()().