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.

References reset().

86 { this->reset(); }
void 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); }

Member Function Documentation

◆ reset()

void GltDEDigi::reset ( void  )

Definition at line 88 of file L1DataEmulDigi.cc.

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

Referenced by GltDEDigi().

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 }
GltBits gltTchBits[2]
bool globalDBit[2]
GltBits gltDecBits[2]

◆ set()

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

Definition at line 104 of file L1DataEmulDigi.cc.

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

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 }
GltBits gltTchBits[2]
bool globalDBit[2]
GltBits gltDecBits[2]

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