#include <CSCDMBHeader.h>
Public Member Functions | |
unsigned | activeDavMismatch () const |
void | addCFEB (int icfeb) |
void | addNALCT () |
void | addNCLCT () |
unsigned | bxn () const |
unsigned | bxn12 () const |
unsigned | cfebActive () const |
bool | cfebAvailable (unsigned icfeb) |
counts from zero | |
unsigned | cfebAvailable () const |
unsigned | cfebMovlp () const |
bool | check () const |
unsigned | crateID () const |
CSCDMBHeader (unsigned short *buf) | |
CSCDMBHeader () | |
CSCDMBHeader (const CSCDMBStatusDigi &digi) | |
unsigned short * | data () const |
unsigned short * | data () |
unsigned | dmbCfebSync () const |
unsigned | dmbID () const |
unsigned | l1a () const |
unsigned | nalct () const |
unsigned | nclct () const |
void | setBXN (int bxn) |
void | setCrateAddress (int crate, int dmbId) |
void | setdmbID (int newDMBID) |
void | setL1A (int l1a) |
unsigned | sizeInWords () const |
Private Attributes | |
unsigned | active_dav_mismatch: 1 |
unsigned | active_dav_mismatch_2: 1 |
unsigned | active_dav_mismatch_3: 1 |
unsigned | alct_dav_1: 1 |
unsigned | alct_dav_2: 1 |
unsigned | alct_dav_4: 1 |
unsigned | cfeb_active: 5 |
unsigned | cfeb_dav: 5 |
unsigned | cfeb_dav_1: 5 |
unsigned | cfeb_movlp: 5 |
unsigned | ddu_code_1: 4 |
constant, should be '1010' | |
unsigned | ddu_code_2: 4 |
constant, should be '1010' | |
unsigned | ddu_code_3: 4 |
constant, should be '1010' | |
unsigned | ddu_code_4: 4 |
constant, should be '1010' | |
unsigned | dmb_bxn: 7 |
unsigned | dmb_bxn1: 12 |
unsigned | dmb_cfeb_sync: 4 |
unsigned | dmb_crate: 8 |
unsigned | dmb_id: 4 |
unsigned | dmb_l1a: 8 |
unsigned | dmb_l1a_copy1: 12 |
unsigned | dmb_l1a_copy2: 12 |
unsigned | newddu_code_1: 4 |
constant, should be 1001 | |
unsigned | newddu_code_2: 4 |
constant, should be 1001 | |
unsigned | newddu_code_3: 4 |
constant, should be 1001 | |
unsigned | newddu_code_4: 4 |
constant, should be 1001 | |
unsigned | tmb_dav_1: 1 |
unsigned | tmb_dav_2: 1 |
unsigned | tmb_dav_4: 1 |
Definition at line 9 of file CSCDMBHeader.h.
CSCDMBHeader::CSCDMBHeader | ( | ) |
Definition at line 5 of file CSCDMBHeader.cc.
References ddu_code_1, ddu_code_2, ddu_code_3, ddu_code_4, newddu_code_1, newddu_code_2, newddu_code_3, newddu_code_4, and sizeInWords().
{ bzero(this, sizeInWords()*2); ddu_code_1 = ddu_code_2 = ddu_code_3 = ddu_code_4 = 0xA; newddu_code_1 = newddu_code_2 = newddu_code_3 = newddu_code_4 = 0x9; }
CSCDMBHeader::CSCDMBHeader | ( | unsigned short * | buf | ) |
Definition at line 12 of file CSCDMBHeader.cc.
References sizeInWords().
{ memcpy(this, buf, sizeInWords()*2); }
CSCDMBHeader::CSCDMBHeader | ( | const CSCDMBStatusDigi & | digi | ) | [inline] |
Definition at line 16 of file CSCDMBHeader.h.
References CSCDMBStatusDigi::header(), and sizeInWords().
{ memcpy(this, digi.header(), sizeInWords()*2); }
unsigned CSCDMBHeader::activeDavMismatch | ( | ) | const |
Definition at line 29 of file CSCDMBHeader.cc.
References active_dav_mismatch.
{ return active_dav_mismatch; }
void CSCDMBHeader::addCFEB | ( | int | icfeb | ) |
Definition at line 109 of file CSCDMBHeader.cc.
References cfeb_dav.
Referenced by CSCEventData::add().
{ assert(icfeb < 5); cfeb_dav |= (1 << icfeb); }
void CSCDMBHeader::addNALCT | ( | ) |
Definition at line 120 of file CSCDMBHeader.cc.
References alct_dav_1, alct_dav_2, and alct_dav_4.
Referenced by CSCEventData::checkALCTClasses().
{ alct_dav_1 = alct_dav_2 = alct_dav_4 = 1; }
void CSCDMBHeader::addNCLCT | ( | ) |
Definition at line 115 of file CSCDMBHeader.cc.
References tmb_dav_1, tmb_dav_2, and tmb_dav_4.
Referenced by CSCEventData::checkTMBClasses().
unsigned CSCDMBHeader::bxn | ( | ) | const |
Definition at line 61 of file CSCDMBHeader.cc.
References dmb_bxn.
Referenced by setBXN(), CSCTMBHeader2006::setEventInformation(), CSCTMBHeader2007::setEventInformation(), CSCALCTHeader2007::setEventInformation(), CSCTMBHeader2007_rev0x50c3::setEventInformation(), and CSCALCTHeader2006::setEventInformation().
{ return dmb_bxn; }
unsigned CSCDMBHeader::bxn12 | ( | ) | const |
Definition at line 66 of file CSCDMBHeader.cc.
References dmb_bxn1.
Referenced by cscdqm::EventProcessor::processCSC().
{ return dmb_bxn1; }
unsigned CSCDMBHeader::cfebActive | ( | ) | const [inline] |
Definition at line 31 of file CSCDMBHeader.h.
References cfeb_active.
Referenced by cscdqm::EventProcessor::processCSC().
{return cfeb_active;}
bool CSCDMBHeader::cfebAvailable | ( | unsigned | icfeb | ) |
counts from zero
Definition at line 103 of file CSCDMBHeader.cc.
References cfebAvailable().
Referenced by cscdqm::EventProcessor::processCSC().
{ assert (icfeb < 5); return (cfebAvailable() >> icfeb) & 1; }
unsigned CSCDMBHeader::cfebAvailable | ( | ) | const |
Definition at line 35 of file CSCDMBHeader.cc.
References cfeb_dav.
Referenced by cfebAvailable().
{ return cfeb_dav; }
unsigned CSCDMBHeader::cfebMovlp | ( | ) | const |
Definition at line 18 of file CSCDMBHeader.cc.
References cfeb_movlp.
Referenced by cscdqm::EventProcessor::processCSC().
{ return cfeb_movlp; }
bool CSCDMBHeader::check | ( | ) | const |
Definition at line 126 of file CSCDMBHeader.cc.
References ddu_code_1, ddu_code_2, ddu_code_3, ddu_code_4, newddu_code_1, newddu_code_2, newddu_code_3, and newddu_code_4.
{ return (ddu_code_1==0xA && ddu_code_2==0xA && ddu_code_3==0xA && ddu_code_4==0xA && newddu_code_1==0x9 && newddu_code_2==0x9 && newddu_code_3==0x9 && newddu_code_4==0x9); }
unsigned CSCDMBHeader::crateID | ( | ) | const |
Definition at line 51 of file CSCDMBHeader.cc.
References dmb_crate.
Referenced by cscdqm::EventProcessor::processCSC().
{ return dmb_crate; }
unsigned short* CSCDMBHeader::data | ( | ) | [inline] |
Definition at line 48 of file CSCDMBHeader.h.
Referenced by CSCEventData::pack().
{return (unsigned short *) this;}
unsigned short* CSCDMBHeader::data | ( | ) | const [inline] |
Definition at line 49 of file CSCDMBHeader.h.
{return (unsigned short *) this;}
unsigned CSCDMBHeader::dmbCfebSync | ( | ) | const |
Definition at line 24 of file CSCDMBHeader.cc.
References dmb_cfeb_sync.
Referenced by cscdqm::EventProcessor::processCSC().
{ return dmb_cfeb_sync; }
unsigned CSCDMBHeader::dmbID | ( | ) | const |
Definition at line 56 of file CSCDMBHeader.cc.
References dmb_id.
Referenced by cscdqm::EventProcessor::processCSC(), CSCTMBHeader2006::setEventInformation(), CSCTMBHeader2007::setEventInformation(), CSCALCTHeader2006::setEventInformation(), and CSCTMBHeader2007_rev0x50c3::setEventInformation().
{ return dmb_id; }
unsigned CSCDMBHeader::l1a | ( | ) | const |
Definition at line 74 of file CSCDMBHeader.cc.
References dmb_l1a.
Referenced by cscdqm::EventProcessor::processCSC(), CSCTMBHeader2006::setEventInformation(), CSCTMBHeader2007::setEventInformation(), CSCALCTHeader2007::setEventInformation(), CSCALCTHeader2006::setEventInformation(), CSCTMBHeader2007_rev0x50c3::setEventInformation(), and setL1A().
{ return dmb_l1a; }
unsigned CSCDMBHeader::nalct | ( | ) | const |
Definition at line 41 of file CSCDMBHeader.cc.
References alct_dav_1.
Referenced by CSCEventData::nalct(), and cscdqm::EventProcessor::processCSC().
{ return alct_dav_1; }
unsigned CSCDMBHeader::nclct | ( | ) | const |
Definition at line 46 of file CSCDMBHeader.cc.
References tmb_dav_1.
Referenced by CSCEventData::nclct(), and cscdqm::EventProcessor::processCSC().
{ return tmb_dav_1; }
void CSCDMBHeader::setBXN | ( | int | bxn | ) |
Definition at line 85 of file CSCDMBHeader.cc.
References bxn(), and dmb_bxn.
Referenced by CSCEventData::setEventInformation().
void CSCDMBHeader::setCrateAddress | ( | int | crate, |
int | dmbId | ||
) |
Definition at line 91 of file CSCDMBHeader.cc.
References dmb_crate, and dmb_id.
Referenced by CSCDigiToRaw::findEventData().
void CSCDMBHeader::setdmbID | ( | int | newDMBID | ) | [inline] |
Definition at line 29 of file CSCDMBHeader.h.
References dmb_id.
Referenced by CSCDDUEventData::add().
{dmb_id = newDMBID;}
void CSCDMBHeader::setL1A | ( | int | l1a | ) |
Definition at line 80 of file CSCDMBHeader.cc.
References dmb_l1a, and l1a().
Referenced by CSCEventData::setEventInformation().
unsigned CSCDMBHeader::sizeInWords | ( | ) | const |
Definition at line 97 of file CSCDMBHeader.cc.
Referenced by CSCDMBHeader(), and CSCEventData::pack().
{
return 8;
}
unsigned CSCDMBHeader::active_dav_mismatch [private] |
Definition at line 78 of file CSCDMBHeader.h.
Referenced by activeDavMismatch().
unsigned CSCDMBHeader::active_dav_mismatch_2 [private] |
Definition at line 80 of file CSCDMBHeader.h.
unsigned CSCDMBHeader::active_dav_mismatch_3 [private] |
Definition at line 82 of file CSCDMBHeader.h.
unsigned CSCDMBHeader::alct_dav_1 [private] |
Definition at line 77 of file CSCDMBHeader.h.
Referenced by addNALCT(), and nalct().
unsigned CSCDMBHeader::alct_dav_2 [private] |
Definition at line 81 of file CSCDMBHeader.h.
Referenced by addNALCT().
unsigned CSCDMBHeader::alct_dav_4 [private] |
Definition at line 66 of file CSCDMBHeader.h.
Referenced by addNALCT().
unsigned CSCDMBHeader::cfeb_active [private] |
Definition at line 65 of file CSCDMBHeader.h.
Referenced by cfebActive().
unsigned CSCDMBHeader::cfeb_dav [private] |
Definition at line 76 of file CSCDMBHeader.h.
Referenced by addCFEB(), and cfebAvailable().
unsigned CSCDMBHeader::cfeb_dav_1 [private] |
Definition at line 64 of file CSCDMBHeader.h.
unsigned CSCDMBHeader::cfeb_movlp [private] |
the time sample for this event has multiple overlaps with samples from previous events
Definition at line 98 of file CSCDMBHeader.h.
Referenced by cfebMovlp().
unsigned CSCDMBHeader::ddu_code_1 [private] |
constant, should be '1010'
Definition at line 85 of file CSCDMBHeader.h.
Referenced by check(), and CSCDMBHeader().
unsigned CSCDMBHeader::ddu_code_2 [private] |
constant, should be '1010'
Definition at line 90 of file CSCDMBHeader.h.
Referenced by check(), and CSCDMBHeader().
unsigned CSCDMBHeader::ddu_code_3 [private] |
constant, should be '1010'
Definition at line 100 of file CSCDMBHeader.h.
Referenced by check(), and CSCDMBHeader().
unsigned CSCDMBHeader::ddu_code_4 [private] |
constant, should be '1010'
Definition at line 105 of file CSCDMBHeader.h.
Referenced by check(), and CSCDMBHeader().
unsigned CSCDMBHeader::dmb_bxn [private] |
Definition at line 95 of file CSCDMBHeader.h.
unsigned CSCDMBHeader::dmb_bxn1 [private] |
Definition at line 72 of file CSCDMBHeader.h.
Referenced by bxn12().
unsigned CSCDMBHeader::dmb_cfeb_sync [private] |
Definition at line 103 of file CSCDMBHeader.h.
Referenced by dmbCfebSync().
unsigned CSCDMBHeader::dmb_crate [private] |
Definition at line 88 of file CSCDMBHeader.h.
Referenced by crateID(), and setCrateAddress().
unsigned CSCDMBHeader::dmb_id [private] |
Definition at line 87 of file CSCDMBHeader.h.
Referenced by dmbID(), setCrateAddress(), and setdmbID().
unsigned CSCDMBHeader::dmb_l1a [private] |
Definition at line 102 of file CSCDMBHeader.h.
unsigned CSCDMBHeader::dmb_l1a_copy1 [private] |
Definition at line 60 of file CSCDMBHeader.h.
unsigned CSCDMBHeader::dmb_l1a_copy2 [private] |
Definition at line 56 of file CSCDMBHeader.h.
unsigned CSCDMBHeader::newddu_code_1 [private] |
constant, should be 1001
Definition at line 58 of file CSCDMBHeader.h.
Referenced by check(), and CSCDMBHeader().
unsigned CSCDMBHeader::newddu_code_2 [private] |
constant, should be 1001
Definition at line 62 of file CSCDMBHeader.h.
Referenced by check(), and CSCDMBHeader().
unsigned CSCDMBHeader::newddu_code_3 [private] |
constant, should be 1001
Definition at line 69 of file CSCDMBHeader.h.
Referenced by check(), and CSCDMBHeader().
unsigned CSCDMBHeader::newddu_code_4 [private] |
constant, should be 1001
Definition at line 74 of file CSCDMBHeader.h.
Referenced by check(), and CSCDMBHeader().
unsigned CSCDMBHeader::tmb_dav_1 [private] |
Definition at line 79 of file CSCDMBHeader.h.
Referenced by addNCLCT(), and nclct().
unsigned CSCDMBHeader::tmb_dav_2 [private] |
Definition at line 83 of file CSCDMBHeader.h.
Referenced by addNCLCT().
unsigned CSCDMBHeader::tmb_dav_4 [private] |
Definition at line 67 of file CSCDMBHeader.h.
Referenced by addNCLCT().