CMS 3D CMS Logo

CSCStripDigi Class Reference

Digi for CSC Cathode Strips. More...

#include <DataFormats/CSCDigi/interface/CSCStripDigi.h>

List of all members.

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< intgetADCCounts () 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< intADCCounts
std::vector< uint16_t > ADCOverflow
std::vector< uint16_t > Errorstat
std::vector< uint16_t > OverlappedSample
uint16_t strip


Detailed Description

Digi for CSC Cathode Strips.

Date
2008/03/03 17:54:33
Revision
1.19

Author:
M. Schmitt, Northwestern

Definition at line 17 of file CSCStripDigi.h.


Constructor & Destructor Documentation

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 ( const int strip,
const std::vector< int > &  ADCCounts 
)

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 }


Member Function Documentation

float CSCStripDigi::amplitude (  )  const [inline]

Definition at line 58 of file CSCStripDigi.h.

References pedestal().

00058 {return ADCCounts[4]-pedestal();}

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]

Other getters.

Definition at line 43 of file CSCStripDigi.h.

00043 {return ADCOverflow;}

std::vector<uint16_t> CSCStripDigi::getErrorstat (  )  const [inline]

Definition at line 45 of file CSCStripDigi.h.

00045 {return Errorstat;}

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]

methods for calibrations

Definition at line 57 of file CSCStripDigi.h.

Referenced by amplitude().

00057 {return 0.5*(ADCCounts[0]+ADCCounts[1]);}

void CSCStripDigi::print ( void   )  const

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 }

void CSCStripDigi::setADCCounts ( std::vector< int ADCCounts  ) 

Referenced by CSCStripElectronicsSim::doSaturation().

void CSCStripDigi::setStrip ( int  istrip  )  [inline]

Definition at line 48 of file CSCStripDigi.h.

Referenced by CSCDigiToRaw::add().

00048 { strip = istrip; }


Member Data Documentation

std::vector<int> CSCStripDigi::ADCCounts [private]

Definition at line 63 of file CSCStripDigi.h.

Referenced by getADCCounts().

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]

Definition at line 65 of file CSCStripDigi.h.

Referenced by getOverlappedSample().

uint16_t CSCStripDigi::strip [private]

Definition at line 62 of file CSCStripDigi.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:17:29 2009 for CMSSW by  doxygen 1.5.4