CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 67 of file L1DataEmulDigi.h.

Member Typedef Documentation

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

Definition at line 68 of file L1DataEmulDigi.h.

Constructor & Destructor Documentation

GltDEDigi::GltDEDigi ( )

Definition at line 75 of file L1DataEmulDigi.cc.

References reset().

75  {
76  this->reset();
77 }
void reset()
GltDEDigi::GltDEDigi ( bool  glbit[],
GltBits  dbits[],
GltBits  tbits[] 
)

Definition at line 93 of file L1DataEmulDigi.cc.

References set().

93  {
94  this->set(glbit, dbits, tbits);
95 }
void set(bool glbit[], GltBits dbits[], GltBits tbits[])

Member Function Documentation

void GltDEDigi::reset ( void  )

Definition at line 79 of file L1DataEmulDigi.cc.

References globalDBit, gltDecBits, gltTchBits, i, and j.

Referenced by GltDEDigi().

79  {
80  const int w64 = 64;
81  for(int j=0; j<2; j++) {
82  globalDBit[j]=false;
83  gltDecBits[j].reserve(w64*2);
84  gltTchBits[j].reserve(w64 );
85  for(int i=0; i<w64; i++) {
86  gltDecBits[j][i] =false;
87  gltDecBits[j][i+w64]=false;
88  gltTchBits[j][i] =false;
89  }
90  }
91 }
int i
Definition: DBlmapReader.cc:9
GltBits gltTchBits[2]
int j
Definition: DBlmapReader.cc:9
bool globalDBit[2]
GltBits gltDecBits[2]
void GltDEDigi::set ( bool  glbit[],
GltBits  dbits[],
GltBits  tbits[] 
)

Definition at line 97 of file L1DataEmulDigi.cc.

References globalDBit, gltDecBits, gltTchBits, and i.

Referenced by GltDEDigi().

97  {
98  for(int i=0; i<2; i++) {
99  globalDBit[i]=glbit[i];
100  gltDecBits[i]=dbits[i];
101  gltTchBits[i]=tbits[i];
102  }
103 }
int i
Definition: DBlmapReader.cc:9
GltBits gltTchBits[2]
bool globalDBit[2]
GltBits gltDecBits[2]

Member Data Documentation

bool GltDEDigi::globalDBit[2]

Definition at line 73 of file L1DataEmulDigi.h.

Referenced by operator<<(), reset(), and set().

GltBits GltDEDigi::gltDecBits[2]

Definition at line 74 of file L1DataEmulDigi.h.

Referenced by operator<<(), reset(), and set().

GltBits GltDEDigi::gltTchBits[2]

Definition at line 74 of file L1DataEmulDigi.h.

Referenced by operator<<(), reset(), and set().