CMS 3D CMS Logo

CSCALCTHeader2006 Struct Reference

ALCT Header consists of several modular units that are defined as structs below. More...

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

List of all members.

Public Member Functions

unsigned short int BXNCount () const
 CSCALCTHeader2006 (int chamberType)
 CSCALCTHeader2006 ()
 this struct contains all 2006 ALCT Header words except ALCTs
void init ()
unsigned short nLCTChipRead () const
void setDAV (int afebBoard)
 for packing
void setEventInformation (const CSCDMBHeader &)
short unsigned int sizeInWords () const

Public Attributes

unsigned activeFEBs: 7
 LCT chips with ADB hits.
unsigned boardID: 3
 ALCT2000 board ID.
unsigned bxnCount: 12
 full bunch crossing number
unsigned cscID: 4
 chamber ID number
unsigned extTrig: 1
 trigger source was external
unsigned fifoMode: 2
 see the FIFO_MODE enum
unsigned flag_0: 5
 should be '01100', so it'll be a 6xxx in the ASCII dump
unsigned flag_1: 2
 DDU+LCT special word flags.
unsigned flag_2: 2
 DDU+LCT special word flags.
unsigned flag_3: 2
 DDU+LCT special word flags.
unsigned l1Acc: 4
 l1 accept counter
unsigned l1aMatch: 1
 exteran L1A arrived in L1A window
unsigned lctChipRead: 7
 LCT chips read out in raw hit dump.
unsigned nTBins: 5
 # of 25 ns time bins in the raw dump
unsigned promote1: 1
 promotion bit for 1st LCT pattern
unsigned promote2: 1
 promotion bit for 2nd LCT pattern
unsigned reserved_1: 3
 reserved, set to 0
unsigned reserved_2: 2
 reserved, set to 0


Detailed Description

ALCT Header consists of several modular units that are defined as structs below.

Definition at line 9 of file CSCALCTHeader2006.h.


Constructor & Destructor Documentation

CSCALCTHeader2006::CSCALCTHeader2006 (  )  [inline]

this struct contains all 2006 ALCT Header words except ALCTs

Definition at line 10 of file CSCALCTHeader2006.h.

References init().

00010                        {
00011     init();
00012   }

CSCALCTHeader2006::CSCALCTHeader2006 ( int  chamberType  )  [explicit]

in order to be able to return header via data()

Definition at line 8 of file CSCALCTHeader2006.cc.

References activeFEBs, activeFEBsForChamberType, fifoMode, flag_0, flag_1, init(), l1aMatch, lctChipRead, nTBins, nTBinsForChamberType, and reserved_1.

00008                                                     { //constructor for digi->raw packing based on header2006
00009   // we count from 1 to 10, ME11, ME12, ME13, ME1A, ME21, ME22, ....
00010   init();
00011   flag_0 = 0xC;
00012   flag_1 = 0;
00013   reserved_1 = 0;
00014   fifoMode = 1;
00015   // examiner demands this
00016   l1aMatch = 1;
00017   lctChipRead = activeFEBsForChamberType[chamberType];
00018   activeFEBs = lctChipRead;
00019   nTBins = nTBinsForChamberType[chamberType];
00021   //memcpy(theOriginalBuffer, &header2006, header2006.sizeForPacking());
00022 
00023 }


Member Function Documentation

unsigned short int CSCALCTHeader2006::BXNCount (  )  const [inline]

Definition at line 24 of file CSCALCTHeader2006.h.

References bxnCount.

00024 { return bxnCount;}

void CSCALCTHeader2006::init ( void   )  [inline]

size of header w/o LCTs = 8 bytes

Definition at line 16 of file CSCALCTHeader2006.h.

References sizeInWords().

Referenced by CSCALCTHeader2006().

00016               {
00017      bzero(this,  sizeInWords()*2); 
00018   }

unsigned short CSCALCTHeader2006::nLCTChipRead (  )  const

header2006 method

Definition at line 35 of file CSCALCTHeader2006.cc.

References count, i, and lctChipRead.

Referenced by CSCALCTHeader::nLCTChipRead().

00035                                                      {
00036   int count = 0;
00037   for(int i=0; i<7; ++i) {
00038     if( (lctChipRead>>i) & 1) ++count;
00039   }
00040   return count;
00041 }

void CSCALCTHeader2006::setDAV ( int  afebBoard  )  [inline]

for packing

Definition at line 30 of file CSCALCTHeader2006.h.

References activeFEBs.

Referenced by CSCALCTHeader::setDAVForChannel().

00030 {activeFEBs |= 1 << afebBoard;}

void CSCALCTHeader2006::setEventInformation ( const CSCDMBHeader dmb  ) 

Definition at line 26 of file CSCALCTHeader2006.cc.

References CSCDMBHeader::bxn(), bxnCount, cscID, CSCDMBHeader::dmbID(), CSCDMBHeader::l1a(), l1Acc, and nTBins.

Referenced by CSCALCTHeader::setEventInformation().

00027 {
00028  l1Acc = dmb.l1a();
00029  cscID = dmb.dmbID();
00030  nTBins = 16;
00031  bxnCount = dmb.bxn();
00032 }

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

size of ALCT Header

Definition at line 20 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::CSCALCTHeader(), init(), and CSCALCTHeader::pack().

00020                                          { 
00021     return 4;
00022   }


Member Data Documentation

unsigned CSCALCTHeader2006::activeFEBs

LCT chips with ADB hits.

Definition at line 68 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::ActiveFEBs(), CSCALCTHeader2006(), and setDAV().

unsigned CSCALCTHeader2006::boardID

ALCT2000 board ID.

Definition at line 37 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::BoardID().

unsigned CSCALCTHeader2006::bxnCount

full bunch crossing number

Definition at line 59 of file CSCALCTHeader2006.h.

Referenced by BXNCount(), CSCALCTHeader::BXNCount(), and setEventInformation().

unsigned CSCALCTHeader2006::cscID

chamber ID number

Definition at line 35 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::CSCID(), and setEventInformation().

unsigned CSCALCTHeader2006::extTrig

trigger source was external

Definition at line 48 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::ExtTrig().

unsigned CSCALCTHeader2006::fifoMode

see the FIFO_MODE enum

Definition at line 42 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader2006(), and CSCALCTHeader::FIFOMode().

unsigned CSCALCTHeader2006::flag_0

should be '01100', so it'll be a 6xxx in the ASCII dump

Definition at line 39 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::check(), and CSCALCTHeader2006().

unsigned CSCALCTHeader2006::flag_1

DDU+LCT special word flags.

Definition at line 56 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader2006().

unsigned CSCALCTHeader2006::flag_2

DDU+LCT special word flags.

Definition at line 63 of file CSCALCTHeader2006.h.

unsigned CSCALCTHeader2006::flag_3

DDU+LCT special word flags.

Definition at line 70 of file CSCALCTHeader2006.h.

unsigned CSCALCTHeader2006::l1Acc

l1 accept counter

Definition at line 33 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::L1Acc(), and setEventInformation().

unsigned CSCALCTHeader2006::l1aMatch

exteran L1A arrived in L1A window

Definition at line 46 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader2006(), and CSCALCTHeader::L1AMatch().

unsigned CSCALCTHeader2006::lctChipRead

LCT chips read out in raw hit dump.

Definition at line 66 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader2006(), CSCALCTHeader::LCTChipRead(), and nLCTChipRead().

unsigned CSCALCTHeader2006::nTBins

# of 25 ns time bins in the raw dump

Definition at line 44 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader2006(), CSCALCTHeader::NTBins(), and setEventInformation().

unsigned CSCALCTHeader2006::promote1

promotion bit for 1st LCT pattern

Definition at line 50 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::Promote1().

unsigned CSCALCTHeader2006::promote2

promotion bit for 2nd LCT pattern

Definition at line 52 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::Promote2().

unsigned CSCALCTHeader2006::reserved_1

reserved, set to 0

Definition at line 54 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader2006().

unsigned CSCALCTHeader2006::reserved_2

reserved, set to 0

Definition at line 61 of file CSCALCTHeader2006.h.


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