#include <SiStripPedestalsSubtractor.h>
SiStripPedestalsSubtractor::SiStripPedestalsSubtractor |
( |
bool |
mode | ) |
|
|
inlineprivate |
const int16_t& SiStripPedestalsSubtractor::eval |
( |
const int16_t & |
in | ) |
|
|
inlineprivate |
const uint16_t& SiStripPedestalsSubtractor::eval |
( |
const SiStripRawDigi & |
in | ) |
|
|
inlineprivate |
void SiStripPedestalsSubtractor::subtract |
( |
const uint32_t & |
id, |
|
|
const uint16_t & |
firstStrip, |
|
|
std::vector< int16_t > & |
digis |
|
) |
| |
template<class input_t >
void SiStripPedestalsSubtractor::subtract_ |
( |
const uint32_t & |
id, |
|
|
const uint16_t & |
firstStrip, |
|
|
const input_t & |
input, |
|
|
std::vector< int16_t > & |
output |
|
) |
| |
|
inlineprivate |
Definition at line 20 of file SiStripPedestalsSubtractor.cc.
References alignCSCRings::e, eval(), fedmode_, pedestals, pedestalsHandle, and cms::Exception::what().
Referenced by subtract().
27 typename input_t::const_iterator inDigi =
input.begin();
28 std::vector<int>::const_iterator ped =
pedestals.begin() + firstStrip;
29 std::vector<int16_t>::iterator outDigi =
output.begin();
31 while( inDigi !=
input.end() ) {
33 *outDigi = ( *ped > 895 )
34 ?
eval(*inDigi) - *ped + 1024
35 :
eval(*inDigi) - *ped;
48 <<
"[SiStripPedestalsSubtractor::subtract] DetId " <<
id <<
" propagating error from SiStripPedestal" << e.
what();
virtual char const * what() const
edm::ESHandle< SiStripPedestals > pedestalsHandle
std::pair< ContainerIterator, ContainerIterator > Range
std::vector< int > pedestals
const int16_t & eval(const int16_t &in)
bool SiStripPedestalsSubtractor::fedmode_ |
|
private |
std::vector<int> SiStripPedestalsSubtractor::pedestals |
|
private |
uint32_t SiStripPedestalsSubtractor::peds_cache_id |
|
private |