CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
 EventHeader (int int_l1a, int int_l1a_BXN, int int_sp_TS, int int_endcap, int int_sector, int int_sp_ersv, int int_sp_addr, int int_tbin, int int_ddm, int int_spa, int int_rpca, int int_skip, int int_rdy, int int_bsy, int int_osy, int int_wof, int int_me1a, int int_me1b, int int_me2, int int_me3, int int_me4)
 
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  {};
l1t::emtf::EventHeader::EventHeader ( int  int_l1a,
int  int_l1a_BXN,
int  int_sp_TS,
int  int_endcap,
int  int_sector,
int  int_sp_ersv,
int  int_sp_addr,
int  int_tbin,
int  int_ddm,
int  int_spa,
int  int_rpca,
int  int_skip,
int  int_rdy,
int  int_bsy,
int  int_osy,
int  int_wof,
int  int_me1a,
int  int_me1b,
int  int_me2,
int  int_me3,
int  int_me4 
)
inline

Definition at line 21 of file EventHeader.h.

23  :
24  l1a(int_l1a), l1a_BXN(int_l1a_BXN), sp_TS(int_sp_TS), endcap(int_endcap), sector(int_sector), sp_ersv(int_sp_ersv), sp_addr(int_sp_addr),
25  tbin(int_tbin), ddm(int_ddm), spa(int_spa), rpca(int_rpca), skip(int_skip), rdy(int_rdy), bsy(int_bsy), osy(int_osy),
26  wof(int_wof), me1a(int_me1a), me1b(int_me1b), me2(int_me2), me3(int_me3), me4(int_me4), format_errors(0), dataword(-99)
27  {};
virtual l1t::emtf::EventHeader::~EventHeader ( )
inlinevirtual

Definition at line 29 of file EventHeader.h.

29 {};

Member Function Documentation

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

Definition at line 52 of file EventHeader.h.

References format_errors.

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

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

Definition at line 68 of file EventHeader.h.

References bsy.

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

Definition at line 77 of file EventHeader.h.

References dataword.

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

Definition at line 63 of file EventHeader.h.

References ddm.

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

Definition at line 58 of file EventHeader.h.

References endcap.

Referenced by L1TStage2EMTF::analyze().

58 { return endcap; }
int l1t::emtf::EventHeader::Format_Errors ( ) const
inline

Definition at line 76 of file EventHeader.h.

References format_errors.

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

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

Definition at line 55 of file EventHeader.h.

References l1a.

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

Definition at line 56 of file EventHeader.h.

References l1a_BXN.

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

Definition at line 71 of file EventHeader.h.

References me1a.

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

Definition at line 72 of file EventHeader.h.

References me1b.

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

Definition at line 73 of file EventHeader.h.

References me2.

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

Definition at line 74 of file EventHeader.h.

References me3.

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

Definition at line 75 of file EventHeader.h.

References me4.

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

Definition at line 69 of file EventHeader.h.

References osy.

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

Definition at line 67 of file EventHeader.h.

References rdy.

Referenced by L1TStage2EMTF::analyze().

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

Definition at line 65 of file EventHeader.h.

References rpca.

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

Definition at line 59 of file EventHeader.h.

References sector.

Referenced by L1TStage2EMTF::analyze().

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

Definition at line 44 of file EventHeader.h.

References bits, and bsy.

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

44 { 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 53 of file EventHeader.h.

References bits.

53 { 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 39 of file EventHeader.h.

References bits, and ddm.

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

39 { 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 34 of file EventHeader.h.

References bits, and endcap.

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

34 { 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 31 of file EventHeader.h.

References bits, and l1a.

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

31 { 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 32 of file EventHeader.h.

References bits, and l1a_BXN.

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

32 { 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 47 of file EventHeader.h.

References bits, and me1a.

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

47 { 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 48 of file EventHeader.h.

References bits, and me1b.

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

48 { 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 49 of file EventHeader.h.

References bits, and me2.

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

49 { 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 50 of file EventHeader.h.

References bits, and me3.

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

50 { 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 51 of file EventHeader.h.

References bits, and me4.

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

51 { 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 45 of file EventHeader.h.

References bits, and osy.

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

45 { 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 43 of file EventHeader.h.

References bits, and rdy.

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

43 { 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 41 of file EventHeader.h.

References bits, and rpca.

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

41 { 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 35 of file EventHeader.h.

References bits, and sector.

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

35 { 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 42 of file EventHeader.h.

References bits, and skip.

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

42 { 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 37 of file EventHeader.h.

References bits, and sp_addr.

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

37 { 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 36 of file EventHeader.h.

References bits, and sp_ersv.

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

36 { 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 33 of file EventHeader.h.

References bits, and sp_TS.

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

33 { 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 40 of file EventHeader.h.

References bits, and spa.

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

40 { 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 38 of file EventHeader.h.

References bits, and tbin.

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

38 { 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 46 of file EventHeader.h.

References bits, and wof.

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

46 { 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 66 of file EventHeader.h.

References skip.

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

Definition at line 61 of file EventHeader.h.

References sp_addr.

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

Definition at line 60 of file EventHeader.h.

References sp_ersv.

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

Definition at line 57 of file EventHeader.h.

References sp_TS.

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

Definition at line 64 of file EventHeader.h.

References spa.

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

Definition at line 62 of file EventHeader.h.

References tbin.

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

Definition at line 70 of file EventHeader.h.

References wof.

70 { return wof; }

Member Data Documentation

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

Definition at line 93 of file EventHeader.h.

Referenced by BSY(), and set_bsy().

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

Definition at line 102 of file EventHeader.h.

Referenced by Dataword().

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

Definition at line 88 of file EventHeader.h.

Referenced by DDM(), and set_ddm().

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

Definition at line 83 of file EventHeader.h.

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

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

Definition at line 101 of file EventHeader.h.

Referenced by add_format_error(), and Format_Errors().

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

Definition at line 80 of file EventHeader.h.

Referenced by L1A(), and set_l1a().

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

Definition at line 81 of file EventHeader.h.

Referenced by L1A_BXN(), and set_l1a_BXN().

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

Definition at line 96 of file EventHeader.h.

Referenced by ME1a(), and set_me1a().

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

Definition at line 97 of file EventHeader.h.

Referenced by ME1b(), and set_me1b().

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

Definition at line 98 of file EventHeader.h.

Referenced by ME2(), and set_me2().

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

Definition at line 99 of file EventHeader.h.

Referenced by ME3(), and set_me3().

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

Definition at line 100 of file EventHeader.h.

Referenced by ME4(), and set_me4().

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

Definition at line 94 of file EventHeader.h.

Referenced by OSY(), and set_osy().

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

Definition at line 92 of file EventHeader.h.

Referenced by Rdy(), and set_rdy().

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

Definition at line 90 of file EventHeader.h.

Referenced by RPCa(), and set_rpca().

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

Definition at line 84 of file EventHeader.h.

Referenced by geometryXMLparser.DTAlignable::index(), Sector(), and set_sector().

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

Definition at line 91 of file EventHeader.h.

Referenced by set_skip(), and Skip().

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

Definition at line 86 of file EventHeader.h.

Referenced by set_sp_addr(), and SP_addr().

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

Definition at line 85 of file EventHeader.h.

Referenced by set_sp_ersv(), and SP_ersv().

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

Definition at line 82 of file EventHeader.h.

Referenced by set_sp_TS(), and SP_TS().

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

Definition at line 89 of file EventHeader.h.

Referenced by set_spa(), and SPa().

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

Definition at line 87 of file EventHeader.h.

Referenced by set_tbin(), and TBIN().

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

Definition at line 95 of file EventHeader.h.

Referenced by set_wof(), and WOF().