#include <EcalDataFrame.h>
Public Member Functions | |
EcalDataFrame () | |
EcalDataFrame (edm::DataFrame const &iframe) | |
edm::DataFrame const & | frame () const |
edm::DataFrame & | frame () |
bool | hasSwitchToGain1 () const |
bool | hasSwitchToGain6 () const |
DetId | id () const |
bool | isSaturated () const |
int | lastUnsaturatedSample () const |
EcalMGPASample | operator[] (int i) const |
EcalMGPASample | sample (int i) const |
void | setSample (int i, EcalMGPASample sam) |
void | setSize (int) |
int | size () const |
virtual | ~EcalDataFrame () |
Static Public Attributes | |
static const int | MAXSAMPLES = 10 |
Private Attributes | |
edm::DataFrame | m_data |
Definition at line 17 of file EcalDataFrame.h.
EcalDataFrame::EcalDataFrame | ( | ) | [inline] |
Definition at line 19 of file EcalDataFrame.h.
{}
EcalDataFrame::EcalDataFrame | ( | edm::DataFrame const & | iframe | ) | [inline] |
Definition at line 21 of file EcalDataFrame.h.
: m_data(iframe){}
virtual EcalDataFrame::~EcalDataFrame | ( | ) | [inline, virtual] |
Definition at line 23 of file EcalDataFrame.h.
{}
edm::DataFrame const& EcalDataFrame::frame | ( | ) | const [inline] |
Definition at line 51 of file EcalDataFrame.h.
References m_data.
Referenced by edm::DataMixingEMDigiWorker::putEM(), and EcalTBReadout::readOut().
{ return m_data;}
edm::DataFrame& EcalDataFrame::frame | ( | ) | [inline] |
bool EcalDataFrame::hasSwitchToGain1 | ( | ) | const |
Definition at line 27 of file EcalDataFrame.cc.
References EcalMgpaBitwiseGain1, m_data, and edm::DataFrame::size().
{ for(unsigned int u=0; u<m_data.size(); u++) { if ( ( static_cast<EcalMGPASample>(m_data[u]) ).gainId() == EcalMgpaBitwiseGain1 ) return true; } return false; }
bool EcalDataFrame::hasSwitchToGain6 | ( | ) | const |
Definition at line 17 of file EcalDataFrame.cc.
References EcalMgpaBitwiseGain6, m_data, and edm::DataFrame::size().
{ for(unsigned int u=0; u<m_data.size(); u++) { if ( ( static_cast<EcalMGPASample>(m_data[u]) ).gainId() == EcalMgpaBitwiseGain6 ) return true; } return false; }
DetId EcalDataFrame::id | ( | void | ) | const [inline] |
Reimplemented in EBDataFrame, and EEDataFrame.
Definition at line 25 of file EcalDataFrame.h.
References edm::DataFrame::id(), and m_data.
Referenced by EBDataFrame::id(), and EEDataFrame::id().
bool EcalDataFrame::isSaturated | ( | ) | const [inline] |
Definition at line 39 of file EcalDataFrame.h.
References lastUnsaturatedSample().
{ return ( lastUnsaturatedSample() != -1 ); }
int EcalDataFrame::lastUnsaturatedSample | ( | ) | const |
Definition at line 3 of file EcalDataFrame.cc.
References EcalMgpaBitwiseGain0, i, j, m_data, and edm::DataFrame::size().
Referenced by isSaturated().
{ int cnt = 0; for ( size_t i = 3; i < m_data.size(); ++i ) { cnt = 0; for ( size_t j = i; j < (i + 5) && j < m_data.size(); ++j ) { if ( ((EcalMGPASample)m_data[j]).gainId() == EcalMgpaBitwiseGain0 ) ++cnt; } if ( cnt == 5 ) return i-1; // the last unsaturated sample } return -1; // no saturation found }
EcalMGPASample EcalDataFrame::operator[] | ( | int | i | ) | const [inline] |
EcalMGPASample EcalDataFrame::sample | ( | int | i | ) | const [inline] |
Definition at line 30 of file EcalDataFrame.h.
Referenced by EELedTask::analyze(), EBLaserTask::analyze(), EBTestPulseTask::analyze(), EcnaAnalyzer::analyze(), EELaserTask::analyze(), EBBeamCaloTask::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalSimple2007H4TBAnalyzer::analyze(), EBPedestalOnlineTask::analyze(), JetToDigiDump::analyze(), EEBeamCaloTask::analyze(), EEPedestalOnlineTask::analyze(), EBPedestalTask::analyze(), EETestPulseTask::analyze(), EcalPulseShapeGrapher::analyze(), EcalTBValidation::analyze(), EEPedestalTask::analyze(), testChannel::analyze(), TowerBlockFormatter::DigiToRaw(), EcalCoder::encode(), EcalSimRawData::getEbDigi(), HSCPValidator::makeSimDigiPlotsECAL(), operator<<(), EcalDigiSelector::produce(), EcalTBWeightUncalibRecHitProducer::produce(), EcalDigiDisplay::readEBDigis(), EcalDigiDisplay::readEEDigis(), EcalMipGraphs::selectDigi(), EcalDisplaysByEvent::selectDigi(), and EBDataFrame::spikeEstimator().
void EcalDataFrame::setSample | ( | int | i, |
EcalMGPASample | sam | ||
) | [inline] |
Definition at line 44 of file EcalDataFrame.h.
Referenced by EcalCoder::encode(), EcalTB07DaqFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), EcalDigiSelector::produce(), and edm::DataMixingEMDigiWorker::putEM().
void EcalDataFrame::setSize | ( | int | ) | [inline] |
int EcalDataFrame::size | ( | void | ) | const [inline] |
Definition at line 27 of file EcalDataFrame.h.
References m_data, and edm::DataFrame::size().
Referenced by EcalTPInputAnalyzer::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalSimple2007H4TBAnalyzer::analyze(), EcalDigisValidation::analyze(), EcalEndcapDigisValidation::analyze(), EcalBarrelDigisValidation::analyze(), EcalTBValidation::analyze(), EcalMixingModuleValidation::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::analyzeEE(), EBSelectiveReadoutTask::dccZsFIR(), EESelectiveReadoutTask::dccZsFIR(), EcalSelectiveReadoutValidation::dccZsFIR(), TowerBlockFormatter::DigiToRaw(), GlobalDigisAnalyzer::fillECal(), GlobalDigisProducer::fillECal(), EcalSelectiveReadoutValidation::frame2Energy(), EcalSimRawData::getEbDigi(), HSCPValidator::makeSimDigiPlotsECAL(), operator<<(), EcalDigiSelector::produce(), EcalTBWeightUncalibRecHitProducer::produce(), edm::DataMixingEMDigiWorker::putEM(), EcalMipGraphs::selectDigi(), EcalDisplaysByEvent::selectDigi(), and EBDataFrame::spikeEstimator().
edm::DataFrame EcalDataFrame::m_data [private] |
Definition at line 56 of file EcalDataFrame.h.
Referenced by frame(), hasSwitchToGain1(), hasSwitchToGain6(), id(), lastUnsaturatedSample(), operator[](), sample(), setSample(), and size().
const int EcalDataFrame::MAXSAMPLES = 10 [static] |
Definition at line 49 of file EcalDataFrame.h.
Referenced by EcalDigisValidation::analyze(), EcalEndcapDigisValidation::analyze(), EcalBarrelDigisValidation::analyze(), testChannel::analyze(), EcalMixingModuleValidation::analyze(), EcalMixingModuleValidation::endRun(), GlobalDigisAnalyzer::fillECal(), GlobalDigisProducer::fillECal(), EcalPedOffset::readDACs(), and EcalUncalibRecHitWorkerGlobal::run().