#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::unique_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 *const | messageLabel_ = "SiStripFEDEmulator" |
Definition at line 35 of file SiStripFEDEmulator.h.
sistrip::FEDEmulator::FEDEmulator | ( | ) |
sistrip::FEDEmulator::~FEDEmulator | ( | ) |
Definition at line 28 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 209 of file SiStripFEDEmulator.cc.
References hgcalLayerClustersEE_cfi::noises, and noises_.
void sistrip::FEDEmulator::fillPeds | ( | const edm::DetSetVector< SiStripRawDigi >::const_iterator & | peds | ) |
Definition at line 203 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 30 of file SiStripFEDEmulator.cc.
References 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 37 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 | ) |
void sistrip::FEDEmulator::printNoises | ( | std::ostream & | aOs | ) |
void sistrip::FEDEmulator::printPeds | ( | std::ostream & | aOs | ) |
void sistrip::FEDEmulator::retrieveNoises | ( | const edm::ESHandle< SiStripNoises > & | aHandle | ) |
Definition at line 72 of file SiStripFEDEmulator.cc.
References SiStripNoises::allNoises(), detId_, MillePedeFileConverter_cfg::e, SiStripNoises::getRange(), messageLabel_, and noises_.
Referenced by sistrip::FEDEmulatorModule::produce().
void sistrip::FEDEmulator::retrievePedestals | ( | const edm::ESHandle< SiStripPedestals > & | aHandle | ) |
Definition at line 60 of file SiStripFEDEmulator.cc.
References SiStripPedestals::allPeds(), detId_, MillePedeFileConverter_cfg::e, SiStripPedestals::getRange(), messageLabel_, and pedestals_.
Referenced by sistrip::FEDEmulatorModule::produce().
void sistrip::FEDEmulator::subtractCM | ( | const std::vector< SiStripRawDigi > & | pedSubtrDetSetData, |
std::vector< SiStripRawDigi > & | cmSubtrDetSetData | ||
) |
Definition at line 169 of file SiStripFEDEmulator.cc.
References maxStrip_, medians_, minStrip_, and sistrip::STRIPS_PER_APV.
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 84 of file SiStripFEDEmulator.cc.
References edm::DetSetVector< T >::begin(), detId_, edm::DetSetVector< T >::end(), LogDebug, maxStrip_, medians_, messageLabel_, minStrip_, hgchebackDigitizer_cfi::noise, 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::unique_ptr< SiStripRawProcessingAlgorithms > & | algorithms | ||
) |
Definition at line 190 of file SiStripFEDEmulator.cc.
References SiStripRawDigi::adc(), analysisFilters_cff::algorithms, and HcalDetIdTransform::transform().
Referenced by sistrip::FEDEmulatorModule::produce().
|
private |
Definition at line 76 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialise(), initialiseModule(), and print().
|
private |
Definition at line 78 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialiseModule(), print(), retrieveNoises(), retrievePedestals(), and subtractPedestals().
|
private |
Definition at line 83 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialiseModule(), print(), subtractCM(), and subtractPedestals().
|
private |
Definition at line 87 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), fillMedians(), initialise(), initialiseModule(), print(), printMeds(), subtractCM(), and subtractPedestals().
|
staticprivate |
Definition at line 74 of file SiStripFEDEmulator.h.
Referenced by retrieveNoises(), retrievePedestals(), and subtractPedestals().
|
private |
Definition at line 82 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialiseModule(), print(), subtractCM(), and subtractPedestals().
|
private |
Definition at line 86 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), fillNoises(), initialise(), initialiseModule(), print(), printNoises(), retrieveNoises(), and subtractPedestals().
|
private |
Definition at line 79 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialiseModule(), print(), and subtractPedestals().
|
private |
Definition at line 80 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), initialiseModule(), and print().
|
private |
Definition at line 85 of file SiStripFEDEmulator.h.
Referenced by FEDEmulator(), fillPeds(), initialise(), initialiseModule(), print(), printPeds(), retrievePedestals(), and subtractPedestals().