CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
CSCAnodeData Class Reference

#include <CSCAnodeData.h>

Public Member Functions

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

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.

13 {
14  if(firmwareVersion == 2006) {
15  theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2006(header));
16  } else {
17  theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2007(header));
18  }
19 }
int firmwareVersion
Definition: CSCAnodeData.h:33
unsigned short int alctFirmwareVersion() const
boost::shared_ptr< CSCAnodeDataFormat > theData
Definition: CSCAnodeData.h:32
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.

26 {
27  if(firmwareVersion == 2006) {
28  theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2006(header, buf));
29  } else {
30  theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2007(header, buf));
31  }
32 }
int firmwareVersion
Definition: CSCAnodeData.h:33
unsigned short int alctFirmwareVersion() const
boost::shared_ptr< CSCAnodeDataFormat > theData
Definition: CSCAnodeData.h:32

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(), and counter.Counter::register().

27 {theData->add(wireDigi, layer);}
boost::shared_ptr< CSCAnodeDataFormat > theData
Definition: CSCAnodeData.h:32
unsigned short* CSCAnodeData::data ( )
inline

Definition at line 19 of file CSCAnodeData.h.

References theData.

Referenced by cuy.FindIssue::__init__(), and CSCEventData::pack().

19 {return theData->data();}
boost::shared_ptr< CSCAnodeDataFormat > theData
Definition: CSCAnodeData.h:32
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::pack(), and CSCEventData::unpack_data().

21 {return theData->sizeInWords();}
boost::shared_ptr< CSCAnodeDataFormat > theData
Definition: CSCAnodeData.h:32
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().

24 {return theData->wireDigis(layer);}
boost::shared_ptr< CSCAnodeDataFormat > theData
Definition: CSCAnodeData.h:32
std::vector< std::vector< CSCWireDigi > > CSCAnodeData::wireDigis ( ) const

Definition at line 34 of file CSCAnodeData.cc.

References query::result.

35 {
36  std::vector < std::vector<CSCWireDigi> > result;
37  for (int layer = 1; layer <= 6; ++layer)
38  {
39  result.push_back(wireDigis(layer));
40  }
41  return result;
42 }
tuple result
Definition: query.py:137
std::vector< std::vector< CSCWireDigi > > wireDigis() const
Definition: CSCAnodeData.cc:34

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().