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 | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes
CSCDDUEventData Class Reference

#include <CSCDDUEventData.h>

Public Member Functions

void add (CSCEventData &, int dmbId, int dduInput, unsigned int format_version=2005)
 for making events. Sets the bxnum and lvl1num inside the chamber event More...
 
bool check () const
 
const std::vector< CSCEventData > & cscData () const
 accessor to data More...
 
 CSCDDUEventData (const CSCDDUHeader &)
 
 CSCDDUEventData (unsigned short *buf, CSCDCCExaminer *examiner=NULL)
 
CSCDCCHeader dccHeader () const
 
CSCDCCTrailer dccTrailer () const
 
void decodeStatus (int status) const
 
void decodeStatus () const
 
CSCDDUHeader header () const
 
boost::dynamic_bitset pack ()
 Alex check this 16 or 64. More...
 
int size () const
 
int sizeInWords () const
 
CSCDDUTrailer trailer () const
 
uint16_t trailer0 () const
 
 ~CSCDDUEventData ()
 

Static Public Member Functions

static void setDebug (bool value)
 
static void setErrorMask (unsigned int value)
 

Public Attributes

long unsigned int errorstat
 trailer info More...
 

Static Public Attributes

static std::atomic< bool > debug {false}
 
static std::atomic< unsigned int > errMask {0xFFFFFFFF}
 

Protected Member Functions

void unpack_data (unsigned short *buf, CSCDCCExaminer *examiner=NULL)
 a good test routine would be to unpack data, then pack it again. More...
 

Protected Attributes

std::vector< CSCEventDatatheData
 
CSCDCCHeader theDCCHeader
 
CSCDCCTrailer theDCCTrailer
 
CSCDDUHeader theDDUHeader
 
CSCDDUTrailer theDDUTrailer
 
uint16_t theDDUTrailer0
 
uint16_t theFormatVersion
 
int theSizeInWords
 

Detailed Description

Author
Rick Wilkinson
A. Tumanov

Definition at line 19 of file CSCDDUEventData.h.

Constructor & Destructor Documentation

CSCDDUEventData::CSCDDUEventData ( const CSCDDUHeader header)
explicit

Definition at line 26 of file CSCDDUEventData.cc.

CSCDDUEventData::CSCDDUEventData ( unsigned short *  buf,
CSCDCCExaminer examiner = NULL 
)
explicit
CSCDDUEventData::~CSCDDUEventData ( )

Definition at line 37 of file CSCDDUEventData.cc.

Member Function Documentation

void CSCDDUEventData::add ( CSCEventData ,
int  dmbId,
int  dduInput,
unsigned int  format_version = 2005 
)

for making events. Sets the bxnum and lvl1num inside the chamber event

Definition at line 42 of file CSCDDUEventData.cc.

Referenced by counter.Counter::register().

bool CSCDDUEventData::check ( ) const

Definition at line 335 of file CSCDDUEventData.cc.

Referenced by CSCDCCEventData::unpack_data().

const std::vector<CSCEventData>& CSCDDUEventData::cscData ( ) const
inline

accessor to data

Definition at line 34 of file CSCDDUEventData.h.

References theData.

Referenced by CSCDDUDataItr::CSCDDUDataItr(), and CSCDDUDataItr::operator*().

34 {return theData;}
std::vector< CSCEventData > theData
CSCDCCHeader CSCDDUEventData::dccHeader ( ) const
inline

Definition at line 40 of file CSCDDUEventData.h.

References theDCCHeader.

40 {return theDCCHeader;}
CSCDCCHeader theDCCHeader
CSCDCCTrailer CSCDDUEventData::dccTrailer ( ) const
inline

Definition at line 41 of file CSCDDUEventData.h.

References theDCCTrailer.

41 {return theDCCTrailer;}
CSCDCCTrailer theDCCTrailer
void CSCDDUEventData::decodeStatus ( int  status) const

prints out the error associated with this status from the header or trailer

this is a mask for printing out errors

Definition at line 59 of file CSCDDUEventData.cc.

void CSCDDUEventData::decodeStatus ( ) const

Definition at line 54 of file CSCDDUEventData.cc.

CSCDDUHeader CSCDDUEventData::header ( ) const
inline

Definition at line 36 of file CSCDDUEventData.h.

References theDDUHeader.

36 {return theDDUHeader;}
CSCDDUHeader theDDUHeader
boost::dynamic_bitset CSCDDUEventData::pack ( )

Alex check this 16 or 64.

returns packed event data

Definition at line 347 of file CSCDDUEventData.cc.

Referenced by pyrootRender.interactiveRender::draw().

static void CSCDDUEventData::setDebug ( bool  value)
inlinestatic

Definition at line 30 of file CSCDDUEventData.h.

References debug, and relativeConstraints::value.

30 {debug = value;}
static std::atomic< bool > debug
static void CSCDDUEventData::setErrorMask ( unsigned int  value)
inlinestatic

Definition at line 31 of file CSCDDUEventData.h.

References errMask, and relativeConstraints::value.

31 {errMask = value;}
static std::atomic< unsigned int > errMask
int CSCDDUEventData::size ( void  ) const
inline

Definition at line 57 of file CSCDDUEventData.h.

References theSizeInWords.

57 {return theSizeInWords*16;}
int CSCDDUEventData::sizeInWords ( ) const
inline

Definition at line 56 of file CSCDDUEventData.h.

References theSizeInWords.

Referenced by CSCDCCEventData::unpack_data().

56 {return theSizeInWords;}
CSCDDUTrailer CSCDDUEventData::trailer ( ) const
inline

Definition at line 37 of file CSCDDUEventData.h.

References theDDUTrailer.

37 {return theDDUTrailer;}
CSCDDUTrailer theDDUTrailer
uint16_t CSCDDUEventData::trailer0 ( ) const
inline

Definition at line 38 of file CSCDDUEventData.h.

References theDDUTrailer0.

38 {return theDDUTrailer0;}
uint16_t theDDUTrailer0
void CSCDDUEventData::unpack_data ( unsigned short *  buf,
CSCDCCExaminer examiner = NULL 
)
protected

a good test routine would be to unpack data, then pack it again.

To pack trailer 0

New Data Format 2013

Older Data format before 2013

Pack Trailer 0 (to access TTS)

Definition at line 160 of file CSCDDUEventData.cc.

Member Data Documentation

std::atomic< bool > CSCDDUEventData::debug {false}
static

Definition at line 66 of file CSCDDUEventData.h.

Referenced by setDebug().

std::atomic< uint32_t > CSCDDUEventData::errMask {0xFFFFFFFF}
static

Definition at line 67 of file CSCDDUEventData.h.

Referenced by setErrorMask().

long unsigned int CSCDDUEventData::errorstat

trailer info

Definition at line 48 of file CSCDDUEventData.h.

std::vector<CSCEventData> CSCDDUEventData::theData
protected

Definition at line 76 of file CSCDDUEventData.h.

Referenced by cscData().

CSCDCCHeader CSCDDUEventData::theDCCHeader
protected

Definition at line 73 of file CSCDDUEventData.h.

Referenced by dccHeader().

CSCDCCTrailer CSCDDUEventData::theDCCTrailer
protected

Definition at line 78 of file CSCDDUEventData.h.

Referenced by dccTrailer().

CSCDDUHeader CSCDDUEventData::theDDUHeader
protected

Definition at line 74 of file CSCDDUEventData.h.

Referenced by header().

CSCDDUTrailer CSCDDUEventData::theDDUTrailer
protected

Definition at line 77 of file CSCDDUEventData.h.

Referenced by trailer().

uint16_t CSCDDUEventData::theDDUTrailer0
protected

Definition at line 79 of file CSCDDUEventData.h.

Referenced by trailer0().

uint16_t CSCDDUEventData::theFormatVersion
protected

Definition at line 81 of file CSCDDUEventData.h.

int CSCDDUEventData::theSizeInWords
protected

Definition at line 80 of file CSCDDUEventData.h.

Referenced by size(), and sizeInWords().