#include <CalibFormats/CaloObjects/interface/CaloSamples.h>
Public Member Functions | |
CaloSamples (const DetId &id, int size) | |
CaloSamples () | |
DetId | id () const |
get the (generic) id | |
CaloSamples & | operator *= (double value) |
scale all samples | |
CaloSamples & | operator+= (double value) |
add a value to all samples | |
double | operator[] (int i) const |
const operator to access samples | |
double & | operator[] (int i) |
mutable operator to access samples | |
int | presamples () const |
access presample information | |
CaloSamples & | scale (double value) |
multiply each item by this value | |
void | setPresamples (int pre) |
set presample information | |
int | size () const |
get the size | |
Static Public Attributes | |
static const int | MAXSAMPLES = 10 |
Private Attributes | |
double | data_ [MAXSAMPLES] |
DetId | id_ |
int | presamples_ |
int | size_ |
Definition at line 15 of file CaloSamples.h.
CaloSamples::CaloSamples | ( | ) |
Definition at line 3 of file CaloSamples.cc.
References data_, i, and MAXSAMPLES.
00003 : id_(), size_(0), presamples_(0) { 00004 for (int i=0; i<MAXSAMPLES; i++) data_[i]=0; 00005 }
Definition at line 7 of file CaloSamples.cc.
References data_, i, and MAXSAMPLES.
00007 : id_(id), size_(size), presamples_(0) { 00008 for (int i=0; i<MAXSAMPLES; i++) data_[i]=0; 00009 }
get the (generic) id
Definition at line 21 of file CaloSamples.h.
References id_.
Referenced by CaloHitResponse::add(), HcalAmplifier::amplify(), EcalElectronicsSim::amplify(), CastorAmplifier::amplify(), EcalMixingModuleValidation::computeSDBunchDigi(), HcalElectronicsSim::convert(), CastorElectronicsSim::convert(), EcalCoder::encode(), HcalCoderDb::fC2adc_(), CastorCoderDb::fC2adc_(), HPDNoiseGenerator::fC2pe(), operator<<(), CastorNominalCoderTemplate::process(), and HcalNominalCoderTemplate::process().
00021 { return id_; }
CaloSamples& CaloSamples::operator *= | ( | double | value | ) | [inline] |
CaloSamples & CaloSamples::operator+= | ( | double | value | ) |
add a value to all samples
Definition at line 20 of file CaloSamples.cc.
References data_, i, and MAXSAMPLES.
double CaloSamples::operator[] | ( | int | i | ) | const [inline] |
double& CaloSamples::operator[] | ( | int | i | ) | [inline] |
int CaloSamples::presamples | ( | ) | const [inline] |
access presample information
Definition at line 31 of file CaloSamples.h.
References presamples_.
Referenced by CaloHitResponse::add(), HcalCoderDb::fC2adc_(), CastorCoderDb::fC2adc_(), CastorNominalCoderTemplate::process(), and HcalNominalCoderTemplate::process().
00031 { return presamples_; }
CaloSamples & CaloSamples::scale | ( | double | value | ) |
multiply each item by this value
Definition at line 15 of file CaloSamples.cc.
References data_, i, and MAXSAMPLES.
Referenced by operator *=().
set presample information
Definition at line 11 of file CaloSamples.cc.
References presamples_.
Referenced by CastorNominalCoder::adc2fC(), HcalNominalCoder::adc2fC(), HcalCoderDb::adc2fC_(), and CastorCoderDb::adc2fC_().
00011 { 00012 presamples_=pre; 00013 }
get the size
Definition at line 24 of file CaloSamples.h.
References size_.
Referenced by CaloHitResponse::add(), HcalAmplifier::amplify(), CastorAmplifier::amplify(), EcalCoder::analogToDigital(), ESElectronicsSim::analogToDigital(), ESElectronicsSimFast::analogToDigital(), HcalElectronicsSim::convert(), CastorElectronicsSim::convert(), HcalMTCCMonitor::dumpDigi(), ESElectronicsSim::encode(), EcalCoder::encode(), ESElectronicsSimFast::fastEncode(), HcalCoderDb::fC2adc_(), CastorCoderDb::fC2adc_(), GlobalDigisAnalyzer::fillHCal(), GlobalDigisProducer::fillHCal(), CaloHitResponse::makeAnalogSignal(), operator<<(), CastorNominalCoderTemplate::process(), HcalNominalCoderTemplate::process(), HcalMTCCMonitor::processEvent(), HcalDigiTester::reco(), HcalSimpleRecAlgoImpl::reco(), CastorSimpleRecAlgoImpl::reco(), HcalSimpleRecAlgo::reconstruct(), and ESElectronicsSimFast::standEncode().
00024 { return size_; }
double CaloSamples::data_[MAXSAMPLES] [private] |
Definition at line 46 of file CaloSamples.h.
Referenced by CaloSamples(), operator+=(), operator[](), and scale().
DetId CaloSamples::id_ [private] |
const int CaloSamples::MAXSAMPLES = 10 [static] |
Definition at line 43 of file CaloSamples.h.
Referenced by CaloSamples(), EcalMixingModuleValidation::computeSDBunchDigi(), EcalCorrelatedNoiseMatrix::EcalCorrelatedNoiseMatrix(), operator+=(), and scale().
int CaloSamples::presamples_ [private] |
int CaloSamples::size_ [private] |