#include <SiStripFEDEmulator.h>
Public Member Functions | |
FEDEmulator () | |
uint32_t | fedIndex (const uint16_t aFedChannel) |
void | fillMedians (const std::map< uint32_t, std::vector< uint32_t > >::const_iterator &meds) |
void | fillNoises (const edm::DetSetVector< SiStripProcessedRawDigi >::const_iterator &noise) |
void | fillPeds (const edm::DetSetVector< SiStripRawDigi >::const_iterator &peds) |
void | initialise (const bool byModule) |
void | initialiseModule (const uint32_t aDetId, const uint32_t aNPairs, const uint32_t aPair) |
void | print (std::ostream &aOs) |
void | printMeds (std::ostream &aOs) |
void | printNoises (std::ostream &aOs) |
void | printPeds (std::ostream &aOs) |
void | retrieveNoises (const edm::ESHandle< SiStripNoises > &aHandle) |
void | retrievePedestals (const edm::ESHandle< SiStripPedestals > &aHandle) |
void | subtractCM (const std::vector< SiStripRawDigi > &pedSubtrDetSetData, std::vector< SiStripRawDigi > &cmSubtrDetSetData) |
void | subtractPedestals (const edm::DetSetVector< SiStripRawDigi >::const_iterator &inputChannel, std::vector< SiStripRawDigi > &pedsDetSetData, std::vector< SiStripProcessedRawDigi > &noiseDetSetData, std::vector< SiStripRawDigi > &pedSubtrDetSetData, std::vector< uint32_t > &medsDetSetData, const bool fillApvsForCM) |
void | zeroSuppress (const std::vector< SiStripRawDigi > &cmSubtrDetSetData, edm::DetSet< SiStripDigi > &zsDetSetData, const std::auto_ptr< SiStripRawProcessingAlgorithms > &algorithms) |
~FEDEmulator () | |
Private Attributes | |
bool | byModule_ |
uint32_t | detId_ |
uint32_t | maxStrip_ |
std::vector< uint32_t > | medians_ |
uint32_t | minStrip_ |
std::vector< float > | noises_ |
uint32_t | nPairs_ |
uint32_t | pair_ |
std::vector< int > | pedestals_ |
Static Private Attributes | |
static const char * | messageLabel_ = "SiStripFEDEmulator" |
Definition at line 35 of file SiStripFEDEmulator.h.
sistrip::FEDEmulator::FEDEmulator | ( | ) |
sistrip::FEDEmulator::~FEDEmulator | ( | ) |
Definition at line 30 of file SiStripFEDEmulator.cc.
uint32_t sistrip::FEDEmulator::fedIndex | ( | const uint16_t | aFedChannel | ) |
void sistrip::FEDEmulator::fillMedians | ( | const std::map< uint32_t, std::vector< uint32_t > >::const_iterator & | meds | ) |
void sistrip::FEDEmulator::fillNoises | ( | const edm::DetSetVector< SiStripProcessedRawDigi >::const_iterator & | noise | ) |
Definition at line 227 of file SiStripFEDEmulator.cc.
References edm::DetSetVector< T >::begin(), edm::DetSetVector< T >::end(), and noises_.
void sistrip::FEDEmulator::fillPeds | ( | const edm::DetSetVector< SiStripRawDigi >::const_iterator & | peds | ) |
Definition at line 220 of file SiStripFEDEmulator.cc.
References edm::DetSetVector< T >::begin(), edm::DetSetVector< T >::end(), and pedestals_.
void sistrip::FEDEmulator::initialise | ( | const bool | byModule | ) |
Definition at line 34 of file SiStripFEDEmulator.cc.
References MeasureLA_cff::byModule, byModule_, medians_, noises_, and pedestals_.
Referenced by sistrip::FEDEmulatorModule::FEDEmulatorModule().
void sistrip::FEDEmulator::initialiseModule | ( | const uint32_t | aDetId, |
const uint32_t | aNPairs, | ||
const uint32_t | aPair | ||
) |
Definition at line 42 of file SiStripFEDEmulator.cc.
References byModule_, detId_, maxStrip_, medians_, minStrip_, noises_, nPairs_, pair_, pedestals_, and sistrip::STRIPS_PER_FEDCH.
Referenced by sistrip::FEDEmulatorModule::produce().
void sistrip::FEDEmulator::print | ( | std::ostream & | aOs | ) |
void sistrip::FEDEmulator::printMeds | ( | std::ostream & | aOs | ) |
Definition at line 277 of file SiStripFEDEmulator.cc.
void sistrip::FEDEmulator::printNoises | ( | std::ostream & | aOs | ) |
Definition at line 267 of file SiStripFEDEmulator.cc.
void sistrip::FEDEmulator::printPeds | ( | std::ostream & | aOs | ) |
void sistrip::FEDEmulator::retrieveNoises | ( | const edm::ESHandle< SiStripNoises > & | aHandle | ) |
Definition at line 82 of file SiStripFEDEmulator.cc.
References detId_, alignCSCRings::e, messageLabel_, noises_, and cms::Exception::what().
Referenced by sistrip::FEDEmulatorModule::produce().
void sistrip::FEDEmulator::retrievePedestals | ( | const edm::ESHandle< SiStripPedestals > & | aHandle | ) |
Definition at line 69 of file SiStripFEDEmulator.cc.
References detId_, alignCSCRings::e, messageLabel_, pedestals_, and cms::Exception::what().
Referenced by sistrip::FEDEmulatorModule::produce().
void sistrip::FEDEmulator::subtractCM | ( | const std::vector< SiStripRawDigi > & | pedSubtrDetSetData, |
std::vector< SiStripRawDigi > & | cmSubtrDetSetData | ||
) |
Definition at line 179 of file SiStripFEDEmulator.cc.
References maxStrip_, medians_, minStrip_, sistrip::STRIPS_PER_APV, and relativeConstraints::value.
Referenced by sistrip::FEDEmulatorModule::produce().
void sistrip::FEDEmulator::subtractPedestals | ( | const edm::DetSetVector< SiStripRawDigi >::const_iterator & | inputChannel, |
std::vector< SiStripRawDigi > & | pedsDetSetData, | ||
std::vector< SiStripProcessedRawDigi > & | noiseDetSetData, | ||
std::vector< SiStripRawDigi > & | pedSubtrDetSetData, | ||
std::vector< uint32_t > & | medsDetSetData, | ||
const bool | fillApvsForCM | ||
) |
Definition at line 95 of file SiStripFEDEmulator.cc.
References edm::DetSetVector< T >::begin(), detId_, edm::DetSetVector< T >::end(), LogDebug, maxStrip_, medians_, messageLabel_, minStrip_, noises_, nPairs_, pedestals_, edm::DetSet< T >::push_back(), and sistrip::STRIPS_PER_APV.
Referenced by sistrip::FEDEmulatorModule::produce().
void sistrip::FEDEmulator::zeroSuppress | ( | const std::vector< SiStripRawDigi > & | cmSubtrDetSetData, |
edm::DetSet< SiStripDigi > & | zsDetSetData, | ||
const std::auto_ptr< SiStripRawProcessingAlgorithms > & | algorithms | ||
) |
Definition at line 202 of file SiStripFEDEmulator.cc.
References SiStripRawDigi::adc(), and create_public_lumi_plots::transform.
Referenced by sistrip::FEDEmulatorModule::produce().
|
private |
Definition at line 80 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialise(), initialiseModule(), and print().
|
private |
Definition at line 82 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialiseModule(), print(), retrieveNoises(), retrievePedestals(), and subtractPedestals().
|
private |
Definition at line 87 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialiseModule(), print(), subtractCM(), and subtractPedestals().
|
private |
Definition at line 91 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), fillMedians(), initialise(), initialiseModule(), print(), printMeds(), subtractCM(), and subtractPedestals().
|
staticprivate |
Definition at line 78 of file SiStripFEDEmulator.h.
Referenced by retrieveNoises(), retrievePedestals(), and subtractPedestals().
|
private |
Definition at line 86 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialiseModule(), print(), subtractCM(), and subtractPedestals().
|
private |
Definition at line 90 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), fillNoises(), initialise(), initialiseModule(), print(), printNoises(), retrieveNoises(), and subtractPedestals().
|
private |
Definition at line 83 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialiseModule(), print(), and subtractPedestals().
|
private |
Definition at line 84 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialiseModule(), and print().
|
private |
Definition at line 89 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), fillPeds(), initialise(), initialiseModule(), print(), printPeds(), retrievePedestals(), and subtractPedestals().