CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::emtf::EventHeader Class Reference

#include <EventHeader.h>

Public Member Functions

void add_format_error ()
 
int BSY () const
 
uint64_t Dataword () const
 
int DDM () const
 
int Endcap () const
 
 EventHeader (uint64_t dataword)
 
 EventHeader ()
 
int Format_errors () const
 
int L1A () const
 
int L1A_BXN () const
 
int ME1a () const
 
int ME1b () const
 
int ME2 () const
 
int ME3 () const
 
int ME4 () const
 
int OSY () const
 
int Rdy () const
 
int RPCa () const
 
int Sector () const
 
void set_bsy (int bits)
 
void set_dataword (uint64_t bits)
 
void set_ddm (int bits)
 
void set_endcap (int bits)
 
void set_l1a (int bits)
 
void set_l1a_BXN (int bits)
 
void set_me1a (int bits)
 
void set_me1b (int bits)
 
void set_me2 (int bits)
 
void set_me3 (int bits)
 
void set_me4 (int bits)
 
void set_osy (int bits)
 
void set_rdy (int bits)
 
void set_rpca (int bits)
 
void set_sector (int bits)
 
void set_skip (int bits)
 
void set_sp_addr (int bits)
 
void set_sp_ersv (int bits)
 
void set_sp_TS (int bits)
 
void set_spa (int bits)
 
void set_tbin (int bits)
 
void set_wof (int bits)
 
int Skip () const
 
int SP_addr () const
 
int SP_ersv () const
 
int SP_TS () const
 
int SPa () const
 
int TBIN () const
 
int WOF () const
 
virtual ~EventHeader ()
 

Private Attributes

int bsy
 
uint64_t dataword
 
int ddm
 
int endcap
 
int format_errors
 
int l1a
 
int l1a_BXN
 
int me1a
 
int me1b
 
int me2
 
int me3
 
int me4
 
int osy
 
int rdy
 
int rpca
 
int sector
 
int skip
 
int sp_addr
 
int sp_ersv
 
int sp_TS
 
int spa
 
int tbin
 
int wof
 

Detailed Description

Definition at line 10 of file EventHeader.h.

Constructor & Destructor Documentation

l1t::emtf::EventHeader::EventHeader ( uint64_t  dataword)
explicit
l1t::emtf::EventHeader::EventHeader ( )
inline

Definition at line 15 of file EventHeader.h.

15  :
16  l1a(-99), l1a_BXN(-99), sp_TS(-99), endcap(-99), sector(-99), sp_ersv(-99), sp_addr(-99),
17  tbin(-99), ddm(-99), spa(-99), rpca(-99), skip(-99), rdy(-99), bsy(-99), osy(-99),
18  wof(-99), me1a(-99), me1b(-99), me2(-99), me3(-99), me4(-99), format_errors(0), dataword(-99)
19  {};
virtual l1t::emtf::EventHeader::~EventHeader ( )
inlinevirtual

Definition at line 21 of file EventHeader.h.

21 {};

Member Function Documentation

void l1t::emtf::EventHeader::add_format_error ( )
inline

Definition at line 44 of file EventHeader.h.

References format_errors.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

44 { format_errors += 1; }
int l1t::emtf::EventHeader::BSY ( ) const
inline

Definition at line 60 of file EventHeader.h.

References bsy.

60 { return bsy; }
uint64_t l1t::emtf::EventHeader::Dataword ( ) const
inline

Definition at line 69 of file EventHeader.h.

References dataword.

69 { return dataword; }
int l1t::emtf::EventHeader::DDM ( ) const
inline

Definition at line 55 of file EventHeader.h.

References ddm.

55 { return ddm; }
int l1t::emtf::EventHeader::Endcap ( ) const
inline

Definition at line 50 of file EventHeader.h.

References endcap.

Referenced by L1TStage2EMTF::analyze().

50 { return endcap; }
int l1t::emtf::EventHeader::Format_errors ( ) const
inline

Definition at line 68 of file EventHeader.h.

References format_errors.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

68 { return format_errors; }
int l1t::emtf::EventHeader::L1A ( ) const
inline

Definition at line 47 of file EventHeader.h.

References l1a.

47 { return l1a; }
int l1t::emtf::EventHeader::L1A_BXN ( ) const
inline

Definition at line 48 of file EventHeader.h.

References l1a_BXN.

48 { return l1a_BXN; }
int l1t::emtf::EventHeader::ME1a ( ) const
inline

Definition at line 63 of file EventHeader.h.

References me1a.

63 { return me1a; }
int l1t::emtf::EventHeader::ME1b ( ) const
inline

Definition at line 64 of file EventHeader.h.

References me1b.

64 { return me1b; }
int l1t::emtf::EventHeader::ME2 ( ) const
inline

Definition at line 65 of file EventHeader.h.

References me2.

65 { return me2; }
int l1t::emtf::EventHeader::ME3 ( ) const
inline

Definition at line 66 of file EventHeader.h.

References me3.

66 { return me3; }
int l1t::emtf::EventHeader::ME4 ( ) const
inline

Definition at line 67 of file EventHeader.h.

References me4.

67 { return me4; }
int l1t::emtf::EventHeader::OSY ( ) const
inline

Definition at line 61 of file EventHeader.h.

References osy.

61 { return osy; }
int l1t::emtf::EventHeader::Rdy ( ) const
inline

Definition at line 59 of file EventHeader.h.

References rdy.

Referenced by L1TStage2EMTF::analyze().

59 { return rdy; }
int l1t::emtf::EventHeader::RPCa ( ) const
inline

Definition at line 57 of file EventHeader.h.

References rpca.

57 { return rpca; }
int l1t::emtf::EventHeader::Sector ( ) const
inline

Definition at line 51 of file EventHeader.h.

References sector.

Referenced by L1TStage2EMTF::analyze().

51 { return sector; }
void l1t::emtf::EventHeader::set_bsy ( int  bits)
inline

Definition at line 36 of file EventHeader.h.

References bits, and bsy.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

36 { bsy = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_dataword ( uint64_t  bits)
inline

Definition at line 45 of file EventHeader.h.

References bits.

45 { dataword = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_ddm ( int  bits)
inline

Definition at line 31 of file EventHeader.h.

References bits, and ddm.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

31 { ddm = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_endcap ( int  bits)
inline

Definition at line 26 of file EventHeader.h.

References bits, and endcap.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

26 { endcap = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_l1a ( int  bits)
inline

Definition at line 23 of file EventHeader.h.

References bits, and l1a.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

23 { l1a = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_l1a_BXN ( int  bits)
inline

Definition at line 24 of file EventHeader.h.

References bits, and l1a_BXN.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

24 { l1a_BXN = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_me1a ( int  bits)
inline

Definition at line 39 of file EventHeader.h.

References bits, and me1a.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

39 { me1a = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_me1b ( int  bits)
inline

Definition at line 40 of file EventHeader.h.

References bits, and me1b.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

40 { me1b = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_me2 ( int  bits)
inline

Definition at line 41 of file EventHeader.h.

References bits, and me2.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

41 { me2 = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_me3 ( int  bits)
inline

Definition at line 42 of file EventHeader.h.

References bits, and me3.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

42 { me3 = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_me4 ( int  bits)
inline

Definition at line 43 of file EventHeader.h.

References bits, and me4.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

43 { me4 = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_osy ( int  bits)
inline

Definition at line 37 of file EventHeader.h.

References bits, and osy.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

37 { osy = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_rdy ( int  bits)
inline

Definition at line 35 of file EventHeader.h.

References bits, and rdy.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

35 { rdy = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_rpca ( int  bits)
inline

Definition at line 33 of file EventHeader.h.

References bits, and rpca.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

33 { rpca = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_sector ( int  bits)
inline

Definition at line 27 of file EventHeader.h.

References bits, and sector.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

27 { sector = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_skip ( int  bits)
inline

Definition at line 34 of file EventHeader.h.

References bits, and skip.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

34 { skip = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_sp_addr ( int  bits)
inline

Definition at line 29 of file EventHeader.h.

References bits, and sp_addr.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

29 { sp_addr = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_sp_ersv ( int  bits)
inline

Definition at line 28 of file EventHeader.h.

References bits, and sp_ersv.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

28 { sp_ersv = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_sp_TS ( int  bits)
inline

Definition at line 25 of file EventHeader.h.

References bits, and sp_TS.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

25 { sp_TS = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_spa ( int  bits)
inline

Definition at line 32 of file EventHeader.h.

References bits, and spa.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

32 { spa = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_tbin ( int  bits)
inline

Definition at line 30 of file EventHeader.h.

References bits, and tbin.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

30 { tbin = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void l1t::emtf::EventHeader::set_wof ( int  bits)
inline

Definition at line 38 of file EventHeader.h.

References bits, and wof.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

38 { wof = bits; }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
int l1t::emtf::EventHeader::Skip ( ) const
inline

Definition at line 58 of file EventHeader.h.

References skip.

58 { return skip; }
int l1t::emtf::EventHeader::SP_addr ( ) const
inline

Definition at line 53 of file EventHeader.h.

References sp_addr.

53 { return sp_addr; }
int l1t::emtf::EventHeader::SP_ersv ( ) const
inline

Definition at line 52 of file EventHeader.h.

References sp_ersv.

52 { return sp_ersv; }
int l1t::emtf::EventHeader::SP_TS ( ) const
inline

Definition at line 49 of file EventHeader.h.

References sp_TS.

49 { return sp_TS; }
int l1t::emtf::EventHeader::SPa ( ) const
inline

Definition at line 56 of file EventHeader.h.

References spa.

56 { return spa; }
int l1t::emtf::EventHeader::TBIN ( ) const
inline

Definition at line 54 of file EventHeader.h.

References tbin.

54 { return tbin; }
int l1t::emtf::EventHeader::WOF ( ) const
inline

Definition at line 62 of file EventHeader.h.

References wof.

62 { return wof; }

Member Data Documentation

int l1t::emtf::EventHeader::bsy
private

Definition at line 85 of file EventHeader.h.

Referenced by BSY(), and set_bsy().

uint64_t l1t::emtf::EventHeader::dataword
private

Definition at line 94 of file EventHeader.h.

Referenced by Dataword().

int l1t::emtf::EventHeader::ddm
private

Definition at line 80 of file EventHeader.h.

Referenced by DDM(), and set_ddm().

int l1t::emtf::EventHeader::endcap
private

Definition at line 75 of file EventHeader.h.

Referenced by Endcap(), geometryXMLparser.CSCAlignable::index(), and set_endcap().

int l1t::emtf::EventHeader::format_errors
private

Definition at line 93 of file EventHeader.h.

Referenced by add_format_error(), and Format_errors().

int l1t::emtf::EventHeader::l1a
private

Definition at line 72 of file EventHeader.h.

Referenced by L1A(), and set_l1a().

int l1t::emtf::EventHeader::l1a_BXN
private

Definition at line 73 of file EventHeader.h.

Referenced by L1A_BXN(), and set_l1a_BXN().

int l1t::emtf::EventHeader::me1a
private

Definition at line 88 of file EventHeader.h.

Referenced by ME1a(), and set_me1a().

int l1t::emtf::EventHeader::me1b
private

Definition at line 89 of file EventHeader.h.

Referenced by ME1b(), and set_me1b().

int l1t::emtf::EventHeader::me2
private

Definition at line 90 of file EventHeader.h.

Referenced by ME2(), and set_me2().

int l1t::emtf::EventHeader::me3
private

Definition at line 91 of file EventHeader.h.

Referenced by ME3(), and set_me3().

int l1t::emtf::EventHeader::me4
private

Definition at line 92 of file EventHeader.h.

Referenced by ME4(), and set_me4().

int l1t::emtf::EventHeader::osy
private

Definition at line 86 of file EventHeader.h.

Referenced by OSY(), and set_osy().

int l1t::emtf::EventHeader::rdy
private

Definition at line 84 of file EventHeader.h.

Referenced by Rdy(), and set_rdy().

int l1t::emtf::EventHeader::rpca
private

Definition at line 82 of file EventHeader.h.

Referenced by RPCa(), and set_rpca().

int l1t::emtf::EventHeader::sector
private
int l1t::emtf::EventHeader::skip
private

Definition at line 83 of file EventHeader.h.

Referenced by set_skip(), and Skip().

int l1t::emtf::EventHeader::sp_addr
private

Definition at line 78 of file EventHeader.h.

Referenced by set_sp_addr(), and SP_addr().

int l1t::emtf::EventHeader::sp_ersv
private

Definition at line 77 of file EventHeader.h.

Referenced by set_sp_ersv(), and SP_ersv().

int l1t::emtf::EventHeader::sp_TS
private

Definition at line 74 of file EventHeader.h.

Referenced by set_sp_TS(), and SP_TS().

int l1t::emtf::EventHeader::spa
private

Definition at line 81 of file EventHeader.h.

Referenced by set_spa(), and SPa().

int l1t::emtf::EventHeader::tbin
private

Definition at line 79 of file EventHeader.h.

Referenced by set_tbin(), and TBIN().

int l1t::emtf::EventHeader::wof
private

Definition at line 87 of file EventHeader.h.

Referenced by set_wof(), and WOF().