CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
GltDEDigi Struct Reference

#include <L1DataEmulDigi.h>

Public Types

typedef std::vector< bool > GltBits
 

Public Member Functions

 GltDEDigi ()
 
 GltDEDigi (bool glbit[], GltBits dbits[], GltBits tbits[])
 
void reset ()
 
void set (bool glbit[], GltBits dbits[], GltBits tbits[])
 

Public Attributes

bool globalDBit [2]
 
GltBits gltDecBits [2]
 
GltBits gltTchBits [2]
 

Detailed Description

Definition at line 89 of file L1DataEmulDigi.h.

Member Typedef Documentation

◆ GltBits

typedef std::vector<bool> GltDEDigi::GltBits

Definition at line 90 of file L1DataEmulDigi.h.

Constructor & Destructor Documentation

◆ GltDEDigi() [1/2]

GltDEDigi::GltDEDigi ( )

Definition at line 86 of file L1DataEmulDigi.cc.

86 { this->reset(); }

References reset().

◆ GltDEDigi() [2/2]

GltDEDigi::GltDEDigi ( bool  glbit[],
GltBits  dbits[],
GltBits  tbits[] 
)

Definition at line 102 of file L1DataEmulDigi.cc.

102 { this->set(glbit, dbits, tbits); }

References set().

Member Function Documentation

◆ reset()

void GltDEDigi::reset ( void  )

Definition at line 88 of file L1DataEmulDigi.cc.

88  {
89  const int w64 = 64;
90  for (int j = 0; j < 2; j++) {
91  globalDBit[j] = false;
92  gltDecBits[j].reserve(w64 * 2);
93  gltTchBits[j].reserve(w64);
94  for (int i = 0; i < w64; i++) {
95  gltDecBits[j][i] = false;
96  gltDecBits[j][i + w64] = false;
97  gltTchBits[j][i] = false;
98  }
99  }
100 }

References globalDBit, gltDecBits, gltTchBits, mps_fire::i, and dqmiolumiharvest::j.

Referenced by GltDEDigi().

◆ set()

void GltDEDigi::set ( bool  glbit[],
GltBits  dbits[],
GltBits  tbits[] 
)

Definition at line 104 of file L1DataEmulDigi.cc.

104  {
105  for (int i = 0; i < 2; i++) {
106  globalDBit[i] = glbit[i];
107  gltDecBits[i] = dbits[i];
108  gltTchBits[i] = tbits[i];
109  }
110 }

References globalDBit, gltDecBits, gltTchBits, and mps_fire::i.

Referenced by GltDEDigi().

Member Data Documentation

◆ globalDBit

bool GltDEDigi::globalDBit[2]

Definition at line 95 of file L1DataEmulDigi.h.

Referenced by reset(), and set().

◆ gltDecBits

GltBits GltDEDigi::gltDecBits[2]

Definition at line 96 of file L1DataEmulDigi.h.

Referenced by reset(), and set().

◆ gltTchBits

GltBits GltDEDigi::gltTchBits[2]

Definition at line 96 of file L1DataEmulDigi.h.

Referenced by reset(), and set().

mps_fire.i
i
Definition: mps_fire.py:355
GltDEDigi::reset
void reset()
Definition: L1DataEmulDigi.cc:88
GltDEDigi::gltDecBits
GltBits gltDecBits[2]
Definition: L1DataEmulDigi.h:96
GltDEDigi::globalDBit
bool globalDBit[2]
Definition: L1DataEmulDigi.h:95
GltDEDigi::set
void set(bool glbit[], GltBits dbits[], GltBits tbits[])
Definition: L1DataEmulDigi.cc:104
GltDEDigi::gltTchBits
GltBits gltTchBits[2]
Definition: L1DataEmulDigi.h:96
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66