CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CSCALCTHeader2006 Struct Reference

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

#include <CSCALCTHeader2006.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

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

Definition at line 11 of file CSCALCTHeader2006.h.

Constructor & Destructor Documentation

◆ CSCALCTHeader2006() [1/2]

CSCALCTHeader2006::CSCALCTHeader2006 ( )
inline

this struct contains all 2006 ALCT Header words except ALCTs

Definition at line 12 of file CSCALCTHeader2006.h.

12 { init(); }

References init().

◆ CSCALCTHeader2006() [2/2]

CSCALCTHeader2006::CSCALCTHeader2006 ( int  chamberType)
explicit

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

Definition at line 12 of file CSCALCTHeader2006.cc.

12  { //constructor for digi->raw packing based on header2006
13  // we count from 1 to 10, ME11, ME12, ME13, ME1A, ME21, ME22, ....
14  init();
15  flag_0 = 0xC;
16  flag_1 = 0;
17  reserved_1 = 0;
18  fifoMode = 1;
19  // examiner demands this
20  l1aMatch = 1;
23  nTBins = nTBinsForChamberType[chamberType];
25  //memcpy(theOriginalBuffer, &header2006, header2006.sizeForPacking());
26 }

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

Member Function Documentation

◆ BXNCount()

unsigned short int CSCALCTHeader2006::BXNCount ( ) const
inline

Definition at line 26 of file CSCALCTHeader2006.h.

26 { return bxnCount; }

References bxnCount.

◆ init()

void CSCALCTHeader2006::init ( void  )
inline

size of header w/o LCTs = 8 bytes

Definition at line 18 of file CSCALCTHeader2006.h.

18  {
19  bzero(this, sizeInWords() * 2);
20  }

References sizeInWords().

Referenced by CSCALCTHeader2006().

◆ nLCTChipRead()

unsigned short CSCALCTHeader2006::nLCTChipRead ( ) const

header2006 method

Definition at line 35 of file CSCALCTHeader2006.cc.

35  {
36  int count = 0;
37  for (int i = 0; i < 7; ++i) {
38  if ((lctChipRead >> i) & 1)
39  ++count;
40  }
41  return count;
42 }

References KineDebug3::count(), mps_fire::i, and lctChipRead.

Referenced by CSCALCTHeader::nLCTChipRead().

◆ setDAV()

void CSCALCTHeader2006::setDAV ( int  afebBoard)
inline

for packing

Definition at line 32 of file CSCALCTHeader2006.h.

32 { activeFEBs |= 1 << afebBoard; }

References activeFEBs.

Referenced by CSCALCTHeader::setDAVForChannel().

◆ setEventInformation()

void CSCALCTHeader2006::setEventInformation ( const CSCDMBHeader dmb)

Definition at line 28 of file CSCALCTHeader2006.cc.

28  {
29  l1Acc = dmb.l1a();
30  cscID = dmb.dmbID();
31  nTBins = 16;
32  bxnCount = dmb.bxn();
33 }

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

Referenced by CSCALCTHeader::setEventInformation().

◆ setFromBuffer()

void CSCALCTHeader2006::setFromBuffer ( unsigned short const *  buf)
inline

Definition at line 16 of file CSCALCTHeader2006.h.

16 { memcpy(this, buf, sizeInWords() * 2); }

References visDQMUpload::buf, and sizeInWords().

Referenced by CSCALCTHeader::CSCALCTHeader().

◆ sizeInWords()

short unsigned int CSCALCTHeader2006::sizeInWords ( ) const
inline

size of ALCT Header

Definition at line 22 of file CSCALCTHeader2006.h.

22  {
23  return 4;
24  }

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

Member Data Documentation

◆ activeFEBs

unsigned CSCALCTHeader2006::activeFEBs

LCT chips with ADB hits.

Definition at line 70 of file CSCALCTHeader2006.h.

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

◆ boardID

unsigned CSCALCTHeader2006::boardID

ALCT2000 board ID.

Definition at line 39 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::BoardID().

◆ bxnCount

unsigned CSCALCTHeader2006::bxnCount

full bunch crossing number

Definition at line 61 of file CSCALCTHeader2006.h.

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

◆ cscID

unsigned CSCALCTHeader2006::cscID

chamber ID number

Definition at line 37 of file CSCALCTHeader2006.h.

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

◆ extTrig

unsigned CSCALCTHeader2006::extTrig

trigger source was external

Definition at line 50 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::ExtTrig().

◆ fifoMode

unsigned CSCALCTHeader2006::fifoMode

see the FIFO_MODE enum

Definition at line 44 of file CSCALCTHeader2006.h.

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

◆ flag_0

unsigned CSCALCTHeader2006::flag_0

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

Definition at line 41 of file CSCALCTHeader2006.h.

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

◆ flag_1

unsigned CSCALCTHeader2006::flag_1

DDU+LCT special word flags.

Definition at line 58 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader2006().

◆ flag_2

unsigned CSCALCTHeader2006::flag_2

DDU+LCT special word flags.

Definition at line 65 of file CSCALCTHeader2006.h.

◆ flag_3

unsigned CSCALCTHeader2006::flag_3

DDU+LCT special word flags.

Definition at line 72 of file CSCALCTHeader2006.h.

◆ l1Acc

unsigned CSCALCTHeader2006::l1Acc

l1 accept counter

Definition at line 35 of file CSCALCTHeader2006.h.

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

◆ l1aMatch

unsigned CSCALCTHeader2006::l1aMatch

exteran L1A arrived in L1A window

Definition at line 48 of file CSCALCTHeader2006.h.

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

◆ lctChipRead

unsigned CSCALCTHeader2006::lctChipRead

LCT chips read out in raw hit dump.

Definition at line 68 of file CSCALCTHeader2006.h.

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

◆ nTBins

unsigned CSCALCTHeader2006::nTBins

of 25 ns time bins in the raw dump

Definition at line 46 of file CSCALCTHeader2006.h.

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

◆ promote1

unsigned CSCALCTHeader2006::promote1

promotion bit for 1st LCT pattern

Definition at line 52 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::Promote1().

◆ promote2

unsigned CSCALCTHeader2006::promote2

promotion bit for 2nd LCT pattern

Definition at line 54 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader::Promote2().

◆ reserved_1

unsigned CSCALCTHeader2006::reserved_1

reserved, set to 0

Definition at line 56 of file CSCALCTHeader2006.h.

Referenced by CSCALCTHeader2006().

◆ reserved_2

unsigned CSCALCTHeader2006::reserved_2

reserved, set to 0

Definition at line 63 of file CSCALCTHeader2006.h.

mps_fire.i
i
Definition: mps_fire.py:355
CSCALCTHeader2006::cscID
unsigned cscID
chamber ID number
Definition: CSCALCTHeader2006.h:37
CSCALCTHeader2006::fifoMode
unsigned fifoMode
see the FIFO_MODE enum
Definition: CSCALCTHeader2006.h:44
nTBinsForChamberType
constexpr int nTBinsForChamberType[11]
Definition: CSCALCTHeader2006.cc:9
CSCDMBHeader::l1a
unsigned l1a() const
Definition: CSCDMBHeader.h:39
CSCALCTHeader2006::lctChipRead
unsigned lctChipRead
LCT chips read out in raw hit dump.
Definition: CSCALCTHeader2006.h:68
CSCALCTHeader2006::l1Acc
unsigned l1Acc
l1 accept counter
Definition: CSCALCTHeader2006.h:35
CSCALCTHeader2006::bxnCount
unsigned bxnCount
full bunch crossing number
Definition: CSCALCTHeader2006.h:61
CSCALCTHeader2006::activeFEBs
unsigned activeFEBs
LCT chips with ADB hits.
Definition: CSCALCTHeader2006.h:70
CSCALCTHeader2006::flag_0
unsigned flag_0
should be '01100', so it'll be a 6xxx in the ASCII dump
Definition: CSCALCTHeader2006.h:41
KineDebug3::count
void count()
Definition: KinematicConstrainedVertexUpdatorT.h:21
CSCALCTHeader2006::init
void init()
Definition: CSCALCTHeader2006.h:18
CSCDMBHeader::bxn
unsigned bxn() const
Definition: CSCDMBHeader.h:37
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
CSCALCTHeader2006::reserved_1
unsigned reserved_1
reserved, set to 0
Definition: CSCALCTHeader2006.h:56
CSCALCTHeader2006::nTBins
unsigned nTBins
Definition: CSCALCTHeader2006.h:46
CSCALCTHeader2006::sizeInWords
short unsigned int sizeInWords() const
Definition: CSCALCTHeader2006.h:22
CSCALCTHeader2006::l1aMatch
unsigned l1aMatch
exteran L1A arrived in L1A window
Definition: CSCALCTHeader2006.h:48
CSCALCTHeader2006::flag_1
unsigned flag_1
DDU+LCT special word flags.
Definition: CSCALCTHeader2006.h:58
activeFEBsForChamberType
constexpr int activeFEBsForChamberType[11]
Definition: CSCALCTHeader2006.cc:8
CSCDMBHeader::dmbID
unsigned dmbID() const
Definition: CSCDMBHeader.h:36