CMS 3D CMS Logo

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

◆ GEM() [1/2]

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

◆ GEM() [2/2]

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

◆ ~GEM()

virtual l1t::emtf::GEM::~GEM ( )
virtualdefault

Member Function Documentation

◆ add_format_error()

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

◆ BC0()

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

◆ ClusterID()

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

◆ ClusterSize()

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

◆ Dataword()

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

◆ Format_errors()

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

◆ GEM_BXN()

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

◆ Link()

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

◆ Pad()

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

◆ Partition()

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

◆ set_bc0()

void l1t::emtf::GEM::set_bc0 ( const int  bits)
inline

Definition at line 36 of file GEM.h.

References bc0, and ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits.

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

36 { bc0 = bits; }
int bc0
BC0 valid for the GEM cluster.
Definition: GEM.h:72

◆ set_cluster_id()

void l1t::emtf::GEM::set_cluster_id ( const int  bits)
inline

Definition at line 33 of file GEM.h.

References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, and 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

◆ set_cluster_size()

void l1t::emtf::GEM::set_cluster_size ( const int  bits)
inline

Definition at line 32 of file GEM.h.

References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, and 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

◆ set_dataword()

void l1t::emtf::GEM::set_dataword ( const uint64_t  bits)
inline

Definition at line 40 of file GEM.h.

References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, and dataword.

40 { dataword = bits; }
uint64_t dataword
Raw EMTF DAQ word for the GEM cluster.
Definition: GEM.h:76

◆ set_gem_bxn()

void l1t::emtf::GEM::set_gem_bxn ( const int  bits)
inline

◆ set_link()

void l1t::emtf::GEM::set_link ( const int  bits)
inline

Definition at line 34 of file GEM.h.

References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, and link.

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

34 { link = bits; }
int link
Input GEM link of the GEM cluster.
Definition: GEM.h:70

◆ set_pad()

void l1t::emtf::GEM::set_pad ( const int  bits)
inline

Definition at line 30 of file GEM.h.

References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, and 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

◆ set_partition()

void l1t::emtf::GEM::set_partition ( const int  bits)
inline

Definition at line 31 of file GEM.h.

References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, and partition.

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

31 { partition = bits; }
int partition
Partition (local eta) of the GEM cluster.
Definition: GEM.h:67

◆ set_tbin()

void l1t::emtf::GEM::set_tbin ( const int  bits)
inline

Definition at line 37 of file GEM.h.

References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, and tbin.

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

37 { tbin = bits; }
int tbin
Time bin of the GEM cluster.
Definition: GEM.h:73

◆ set_vp()

void l1t::emtf::GEM::set_vp ( const int  bits)
inline

Definition at line 38 of file GEM.h.

References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, and vp.

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

38 { vp = bits; }
int vp
Valid status? of the GEM cluster.
Definition: GEM.h:74

◆ TBIN()

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

◆ VP()

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

◆ bc0

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().

◆ cluster_id

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().

◆ cluster_size

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().

◆ dataword

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(), and set_dataword().

◆ format_errors

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().

◆ gem_bxn

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().

◆ link

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().

◆ pad

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().

◆ partition

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().

◆ tbin

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().

◆ vp

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().