CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
l1t::emtf::GEM Class Reference

#include <GEM.h>

Public Member Functions

void add_format_error ()
 
int BC0 () const
 Returns whether the cluster has BC0. More...
 
int ClusterID () const
 Returns the the cluster ID within the link. More...
 
int ClusterSize () const
 Returns the size (in pads) of the cluster. More...
 
uint64_t Dataword () const
 Returns the raw data word of the cluster. More...
 
int Format_errors () const
 Returns the format errors associated with the cluster. More...
 
 GEM (const uint64_t dataword)
 
 GEM ()
 
int GEM_BXN () const
 Returns the BX ID of the cluster. More...
 
int Link () const
 Returns the input link of the cluster. More...
 
int Pad () const
 Returns the lowest pad (strip pair, i.e., local phi) of the cluster. More...
 
int Partition () const
 Returns the eta partition (local eta) of the cluster. More...
 
void set_bc0 (const int bits)
 
void set_cluster_id (const int bits)
 
void set_cluster_size (const int bits)
 
void set_dataword (const uint64_t bits)
 
void set_gem_bxn (const int bits)
 
void set_link (const int bits)
 
void set_pad (const int bits)
 
void set_partition (const int bits)
 
void set_tbin (const int bits)
 
void set_vp (const int bits)
 
int TBIN () const
 Returns the time bin of the cluster. More...
 
int VP () const
 Returns the valid flag? of the cluster. More...
 
virtual ~GEM ()=default
 

Private Attributes

int bc0
 BC0 valid for the GEM cluster. More...
 
int cluster_id
 Cluster number of the GEM cluster. More...
 
int cluster_size
 Size (in pads) of the GEM cluster. More...
 
uint64_t dataword
 Raw EMTF DAQ word for the GEM cluster. More...
 
int format_errors
 Number of format errors for the GEM cluster. More...
 
int gem_bxn
 BX ID of the GEM cluster. More...
 
int link
 Input GEM link of the GEM cluster. More...
 
int pad
 Pad (strip pair, i.e., local phi) of the GEM cluster. More...
 
int partition
 Partition (local eta) of the GEM cluster. More...
 
int tbin
 Time bin of the GEM cluster. More...
 
int vp
 Valid status? of the GEM cluster. More...
 

Detailed Description

Definition at line 11 of file GEM.h.

Constructor & Destructor Documentation

l1t::emtf::GEM::GEM ( const uint64_t  dataword)
explicit
l1t::emtf::GEM::GEM ( )
inline

Definition at line 15 of file GEM.h.

16  : pad(-99),
17  partition(-99),
18  cluster_size(-99),
19  cluster_id(-99),
20  link(-99),
21  gem_bxn(-99),
22  bc0(-99),
23  tbin(-99),
24  vp(-99),
25  format_errors(0),
26  dataword(-99){};
int gem_bxn
BX ID of the GEM cluster.
Definition: GEM.h:71
int cluster_size
Size (in pads) of the GEM cluster.
Definition: GEM.h:68
int tbin
Time bin of the GEM cluster.
Definition: GEM.h:73
int cluster_id
Cluster number of the GEM cluster.
Definition: GEM.h:69
int format_errors
Number of format errors for the GEM cluster.
Definition: GEM.h:75
int pad
Pad (strip pair, i.e., local phi) of the GEM cluster.
Definition: GEM.h:66
uint64_t dataword
Raw EMTF DAQ word for the GEM cluster.
Definition: GEM.h:76
int bc0
BC0 valid for the GEM cluster.
Definition: GEM.h:72
int vp
Valid status? of the GEM cluster.
Definition: GEM.h:74
int link
Input GEM link of the GEM cluster.
Definition: GEM.h:70
int partition
Partition (local eta) of the GEM cluster.
Definition: GEM.h:67
virtual l1t::emtf::GEM::~GEM ( )
virtualdefault

Member Function Documentation

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

Definition at line 39 of file GEM.h.

References format_errors.

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

39 { format_errors += 1; }
int format_errors
Number of format errors for the GEM cluster.
Definition: GEM.h:75
int l1t::emtf::GEM::BC0 ( ) const
inline

Returns whether the cluster has BC0.

Definition at line 55 of file GEM.h.

References bc0.

Referenced by l1t::stage2::emtf::ImportGEM().

55 { return bc0; }
int bc0
BC0 valid for the GEM cluster.
Definition: GEM.h:72
int l1t::emtf::GEM::ClusterID ( ) const
inline

Returns the the cluster ID within the link.

Definition at line 49 of file GEM.h.

References cluster_id.

Referenced by l1t::stage2::emtf::ImportGEM(), and l1t::stage2::emtf::GEMBlockUnpacker::unpack().

49 { return cluster_id; }
int cluster_id
Cluster number of the GEM cluster.
Definition: GEM.h:69
int l1t::emtf::GEM::ClusterSize ( ) const
inline

Returns the size (in pads) of the cluster.

Definition at line 47 of file GEM.h.

References cluster_size.

Referenced by l1t::stage2::emtf::ImportGEM().

47 { return cluster_size; }
int cluster_size
Size (in pads) of the GEM cluster.
Definition: GEM.h:68
uint64_t l1t::emtf::GEM::Dataword ( ) const
inline

Returns the raw data word of the cluster.

Definition at line 63 of file GEM.h.

References dataword.

63 { return dataword; }
uint64_t dataword
Raw EMTF DAQ word for the GEM cluster.
Definition: GEM.h:76
int l1t::emtf::GEM::Format_errors ( ) const
inline

Returns the format errors associated with the cluster.

Definition at line 61 of file GEM.h.

References format_errors.

61 { return format_errors; }
int format_errors
Number of format errors for the GEM cluster.
Definition: GEM.h:75
int l1t::emtf::GEM::GEM_BXN ( ) const
inline

Returns the BX ID of the cluster.

Definition at line 53 of file GEM.h.

References gem_bxn.

53 { return gem_bxn; }
int gem_bxn
BX ID of the GEM cluster.
Definition: GEM.h:71
int l1t::emtf::GEM::Link ( ) const
inline

Returns the input link of the cluster.

Definition at line 51 of file GEM.h.

References link.

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

51 { return link; }
int link
Input GEM link of the GEM cluster.
Definition: GEM.h:70
int l1t::emtf::GEM::Pad ( ) const
inline

Returns the lowest pad (strip pair, i.e., local phi) of the cluster.

Definition at line 43 of file GEM.h.

References pad.

Referenced by l1t::stage2::emtf::ImportGEM().

43 { return pad; }
int pad
Pad (strip pair, i.e., local phi) of the GEM cluster.
Definition: GEM.h:66
int l1t::emtf::GEM::Partition ( ) const
inline

Returns the eta partition (local eta) of the cluster.

Definition at line 45 of file GEM.h.

References partition.

Referenced by l1t::stage2::emtf::ImportGEM().

45 { return partition; }
int partition
Partition (local eta) of the GEM cluster.
Definition: GEM.h:67
void l1t::emtf::GEM::set_bc0 ( const int  bits)
inline

Definition at line 36 of file GEM.h.

References bc0.

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

36 { bc0 = bits; }
int bc0
BC0 valid for the GEM cluster.
Definition: GEM.h:72
void l1t::emtf::GEM::set_cluster_id ( const int  bits)
inline

Definition at line 33 of file GEM.h.

References cluster_id.

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

33 { cluster_id = bits; }
int cluster_id
Cluster number of the GEM cluster.
Definition: GEM.h:69
void l1t::emtf::GEM::set_cluster_size ( const int  bits)
inline

Definition at line 32 of file GEM.h.

References cluster_size.

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

32 { cluster_size = bits; }
int cluster_size
Size (in pads) of the GEM cluster.
Definition: GEM.h:68
void l1t::emtf::GEM::set_dataword ( const uint64_t  bits)
inline

Definition at line 40 of file GEM.h.

40 { dataword = bits; }
uint64_t dataword
Raw EMTF DAQ word for the GEM cluster.
Definition: GEM.h:76
void l1t::emtf::GEM::set_gem_bxn ( const int  bits)
inline

Definition at line 35 of file GEM.h.

References gem_bxn.

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

35 { gem_bxn = bits; }
int gem_bxn
BX ID of the GEM cluster.
Definition: GEM.h:71
void l1t::emtf::GEM::set_link ( const int  bits)
inline

Definition at line 34 of file GEM.h.

References link.

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

34 { link = bits; }
int link
Input GEM link of the GEM cluster.
Definition: GEM.h:70
void l1t::emtf::GEM::set_pad ( const int  bits)
inline

Definition at line 30 of file GEM.h.

References pad.

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

30 { pad = bits; }
int pad
Pad (strip pair, i.e., local phi) of the GEM cluster.
Definition: GEM.h:66
void l1t::emtf::GEM::set_partition ( const int  bits)
inline

Definition at line 31 of file GEM.h.

References partition.

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

31 { partition = bits; }
int partition
Partition (local eta) of the GEM cluster.
Definition: GEM.h:67
void l1t::emtf::GEM::set_tbin ( const int  bits)
inline

Definition at line 37 of file GEM.h.

References tbin.

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

37 { tbin = bits; }
int tbin
Time bin of the GEM cluster.
Definition: GEM.h:73
void l1t::emtf::GEM::set_vp ( const int  bits)
inline

Definition at line 38 of file GEM.h.

References vp.

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

38 { vp = bits; }
int vp
Valid status? of the GEM cluster.
Definition: GEM.h:74
int l1t::emtf::GEM::TBIN ( ) const
inline

Returns the time bin of the cluster.

Definition at line 57 of file GEM.h.

References tbin.

Referenced by l1t::stage2::emtf::ImportGEM().

57 { return tbin; }
int tbin
Time bin of the GEM cluster.
Definition: GEM.h:73
int l1t::emtf::GEM::VP ( ) const
inline

Returns the valid flag? of the cluster.

Definition at line 59 of file GEM.h.

References vp.

Referenced by l1t::stage2::emtf::ImportGEM().

59 { return vp; }
int vp
Valid status? of the GEM cluster.
Definition: GEM.h:74

Member Data Documentation

int l1t::emtf::GEM::bc0
private

BC0 valid for the GEM cluster.

Definition at line 72 of file GEM.h.

Referenced by BC0(), and set_bc0().

int l1t::emtf::GEM::cluster_id
private

Cluster number of the GEM cluster.

Definition at line 69 of file GEM.h.

Referenced by ClusterID(), and set_cluster_id().

int l1t::emtf::GEM::cluster_size
private

Size (in pads) of the GEM cluster.

Definition at line 68 of file GEM.h.

Referenced by ClusterSize(), and set_cluster_size().

uint64_t l1t::emtf::GEM::dataword
private

Raw EMTF DAQ word for the GEM cluster.

Definition at line 76 of file GEM.h.

Referenced by Dataword().

int l1t::emtf::GEM::format_errors
private

Number of format errors for the GEM cluster.

Definition at line 75 of file GEM.h.

Referenced by add_format_error(), and Format_errors().

int l1t::emtf::GEM::gem_bxn
private

BX ID of the GEM cluster.

Definition at line 71 of file GEM.h.

Referenced by GEM_BXN(), and set_gem_bxn().

int l1t::emtf::GEM::link
private

Input GEM link of the GEM cluster.

Definition at line 70 of file GEM.h.

Referenced by Link(), and set_link().

int l1t::emtf::GEM::pad
private

Pad (strip pair, i.e., local phi) of the GEM cluster.

Definition at line 66 of file GEM.h.

Referenced by Pad(), and set_pad().

int l1t::emtf::GEM::partition
private

Partition (local eta) of the GEM cluster.

Definition at line 67 of file GEM.h.

Referenced by Partition(), and set_partition().

int l1t::emtf::GEM::tbin
private

Time bin of the GEM cluster.

Definition at line 73 of file GEM.h.

Referenced by set_tbin(), and TBIN().

int l1t::emtf::GEM::vp
private

Valid status? of the GEM cluster.

Definition at line 74 of file GEM.h.

Referenced by set_vp(), and VP().