#include <DataFormats/CSCDigi/interface/CSCStripDigi.h>
Public Member Functions | |
float | amplitude () const |
CSCStripDigi () | |
CSCStripDigi (const int &strip, const std::vector< int > &ADCCounts) | |
CSCStripDigi (const int &strip, const std::vector< int > &ADCCounts, const std::vector< uint16_t > &ADCOverflow, const std::vector< uint16_t > &Overlap, const std::vector< uint16_t > &Errorstat) | |
std::vector< int > | getADCCounts () const |
std::vector< uint16_t > | getADCOverflow () const |
Other getters. | |
std::vector< uint16_t > | getErrorstat () const |
std::vector< uint16_t > | getOverlappedSample () const |
int | getStrip () const |
bool | operator== (const CSCStripDigi &digi) const |
float | pedestal () const |
methods for calibrations | |
void | print () const |
void | setADCCounts (std::vector< int > ADCCounts) |
void | setStrip (int istrip) |
Private Attributes | |
std::vector< int > | ADCCounts |
std::vector< uint16_t > | ADCOverflow |
std::vector< uint16_t > | Errorstat |
std::vector< uint16_t > | OverlappedSample |
uint16_t | strip |
Definition at line 17 of file CSCStripDigi.h.
CSCStripDigi::CSCStripDigi | ( | const int & | strip, | |
const std::vector< int > & | ADCCounts, | |||
const std::vector< uint16_t > & | ADCOverflow, | |||
const std::vector< uint16_t > & | Overlap, | |||
const std::vector< uint16_t > & | Errorstat | |||
) |
CSCStripDigi::CSCStripDigi | ( | ) |
Definition at line 33 of file CSCStripDigi.cc.
00033 : 00034 strip(0), 00035 ADCCounts(8,0), 00036 ADCOverflow(8,0), 00037 OverlappedSample(8,0), 00038 Errorstat(8,0) 00039 { 00040 }
float CSCStripDigi::amplitude | ( | ) | const [inline] |
std::vector< int > CSCStripDigi::getADCCounts | ( | ) | const |
Definition at line 42 of file CSCStripDigi.cc.
References ADCCounts.
Referenced by CSCCFEBData::add(), CSCEventData::add(), CSCPeakBinOfStripPulse::baseline(), CSCStripElectronicsSim::doSaturation(), CSCStripDigiValidation::fillPedestalPlots(), CSCStripDigiValidation::fillSignalPlots(), operator<<(), operator==(), CSCPeakBinOfStripPulse::peakAboveBaseline(), and print().
00042 { return ADCCounts; }
std::vector<uint16_t> CSCStripDigi::getADCOverflow | ( | ) | const [inline] |
std::vector<uint16_t> CSCStripDigi::getErrorstat | ( | ) | const [inline] |
std::vector<uint16_t> CSCStripDigi::getOverlappedSample | ( | ) | const [inline] |
Definition at line 44 of file CSCStripDigi.h.
References OverlappedSample.
00044 {return OverlappedSample;}
int CSCStripDigi::getStrip | ( | ) | const [inline] |
Definition at line 37 of file CSCStripDigi.h.
Referenced by CSCCFEBData::add(), CSCEventData::add(), CSCDigiToRaw::add(), MuonTruth::analyze(), operator<<(), operator==(), and print().
00037 { return strip;}
bool CSCStripDigi::operator== | ( | const CSCStripDigi & | digi | ) | const |
Definition at line 46 of file CSCStripDigi.cc.
References getADCCounts(), and getStrip().
00046 { 00047 if ( getStrip() != digi.getStrip() ) return false; 00048 if ( getADCCounts().size() != digi.getADCCounts().size() ) return false; 00049 if ( getADCCounts() != digi.getADCCounts() ) return false; 00050 return true; 00051 }
float CSCStripDigi::pedestal | ( | ) | const [inline] |
Definition at line 79 of file CSCStripDigi.cc.
References GenMuonPlsPt100GeV_cfg::cout, getADCCounts(), getStrip(), i, and int.
00079 { 00080 cout << "CSC Strip: " << getStrip() << " ADC Counts: "; 00081 for (int i=0; i<(int)getADCCounts().size(); i++) {cout << getADCCounts()[i] << " ";} 00082 cout << "\n"; 00083 }
Referenced by CSCStripElectronicsSim::doSaturation().
Definition at line 48 of file CSCStripDigi.h.
Referenced by CSCDigiToRaw::add().
00048 { strip = istrip; }
std::vector<int> CSCStripDigi::ADCCounts [private] |
std::vector<uint16_t> CSCStripDigi::ADCOverflow [private] |
Definition at line 64 of file CSCStripDigi.h.
std::vector<uint16_t> CSCStripDigi::Errorstat [private] |
Definition at line 66 of file CSCStripDigi.h.
std::vector<uint16_t> CSCStripDigi::OverlappedSample [private] |
uint16_t CSCStripDigi::strip [private] |
Definition at line 62 of file CSCStripDigi.h.