CMS 3D CMS Logo

CSCAnodeData Class Reference

#include <EventFilter/CSCRawToDigi/interface/CSCAnodeData.h>

List of all members.

Public Member Functions

void add (const CSCWireDigi &wireDigi, int layer)
 CSCAnodeData (const CSCALCTHeader &, const unsigned short *buf)
 fill from a real datastream
 CSCAnodeData (const CSCALCTHeader &)
 a blank one, for Monte Carlo
unsigned short * data ()
unsigned short int sizeInWords () const
 the amount of the input binary buffer read, in 16-bit words
std::vector< std::vector
< CSCWireDigi > > 
wireDigis () const
std::vector< CSCWireDigiwireDigis (int layer) const
 input layer is from 1 to 6

Static Public Member Functions

static bool selfTest ()

Private Attributes

int firmwareVersion
boost::shared_ptr
< CSCAnodeDataFormat
theData


Detailed Description

Definition at line 11 of file CSCAnodeData.h.


Constructor & Destructor Documentation

CSCAnodeData::CSCAnodeData ( const CSCALCTHeader header  ) 

a blank one, for Monte Carlo

for digi->raw packing

Definition at line 11 of file CSCAnodeData.cc.

References firmwareVersion, and theData.

00012 :  firmwareVersion(header.alctFirmwareVersion())
00013 {
00014   if(firmwareVersion == 2006) {
00015     theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2006(header));
00016   } else {
00017     theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2007(header));
00018   }
00019 }

CSCAnodeData::CSCAnodeData ( const CSCALCTHeader header,
const unsigned short *  buf 
)

fill from a real datastream

Definition at line 23 of file CSCAnodeData.cc.

References firmwareVersion, and theData.

00025 :  firmwareVersion(header.alctFirmwareVersion())
00026 {
00027   if(firmwareVersion == 2006) {
00028     theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2006(header, buf));
00029   } else {
00030     theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2007(header, buf));
00031   }
00032 }


Member Function Documentation

void CSCAnodeData::add ( const CSCWireDigi wireDigi,
int  layer 
) [inline]

Definition at line 27 of file CSCAnodeData.h.

References theData.

Referenced by CSCEventData::add().

00027 {theData->add(wireDigi, layer);}

unsigned short* CSCAnodeData::data (  )  [inline]

Definition at line 19 of file CSCAnodeData.h.

References theData.

Referenced by CSCEventData::pack().

00019 {return theData->data();}

static bool CSCAnodeData::selfTest (  )  [static]

unsigned short int CSCAnodeData::sizeInWords (  )  const [inline]

the amount of the input binary buffer read, in 16-bit words

Definition at line 21 of file CSCAnodeData.h.

References theData.

Referenced by CSCEventData::checkALCTClasses(), CSCEventData::CSCEventData(), and CSCEventData::pack().

00021 {return theData->sizeInWords();}

std::vector< std::vector< CSCWireDigi > > CSCAnodeData::wireDigis (  )  const

Definition at line 34 of file CSCAnodeData.cc.

References HLT_VtxMuL3::result.

00035 {
00036   std::vector < std::vector<CSCWireDigi> > result;
00037   for (int layer = 1; layer <= 6; ++layer) 
00038     {
00039       result.push_back(wireDigis(layer));
00040     }
00041   return result;
00042 }

std::vector<CSCWireDigi> CSCAnodeData::wireDigis ( int  layer  )  const [inline]

input layer is from 1 to 6

Definition at line 24 of file CSCAnodeData.h.

References theData.

Referenced by cscdqm::EventProcessor::processCSC(), and CSCEventData::wireDigis().

00024 {return theData->wireDigis(layer);}


Member Data Documentation

int CSCAnodeData::firmwareVersion [private]

Definition at line 33 of file CSCAnodeData.h.

Referenced by CSCAnodeData().

boost::shared_ptr<CSCAnodeDataFormat> CSCAnodeData::theData [private]

Definition at line 32 of file CSCAnodeData.h.

Referenced by add(), CSCAnodeData(), data(), sizeInWords(), and wireDigis().


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