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 | Static Public Attributes | Private Attributes
L1DataEmulRecord Class Reference

#include <L1DataEmulRecord.h>

Public Types

typedef std::vector
< L1DataEmulDigi
L1DEDigiCollection
 

Public Member Functions

bool empty () const
 
bool get_isComp (int i) const
 
bool get_status () const
 
bool get_status (int s) const
 
void get_status (bool result[]) const
 
L1DEDigiCollection getColl () const
 
GltDEDigi getGlt () const
 
int getNCand (int i, int j) const
 
 L1DataEmulRecord ()
 
 L1DataEmulRecord (bool evt_match, bool sys_comp[DEnsys], bool sys_match[DEnsys], int nCand[DEnsys][2], const L1DEDigiCollection &, const GltDEDigi &)
 
void set_status (const bool result)
 
void set_status (const bool result[])
 
void setColl (const L1DEDigiCollection &col)
 
void setGlt (const GltDEDigi &glt)
 
 ~L1DataEmulRecord ()
 

Static Public Attributes

static const int DEnsys = 12
 

Private Attributes

bool deAgree
 
L1DEDigiCollection deColl
 
GltDEDigi deGlt
 
bool deMatch [DEnsys]
 
int deNCand [DEnsys][2]
 
bool deSysCompared [DEnsys]
 

Detailed Description

Definition at line 15 of file L1DataEmulRecord.h.

Member Typedef Documentation

Definition at line 20 of file L1DataEmulRecord.h.

Constructor & Destructor Documentation

L1DataEmulRecord::L1DataEmulRecord ( )

Definition at line 3 of file L1DataEmulRecord.cc.

References deColl, deMatch, deNCand, DEnsys, deSysCompared, i, and j.

3  : deAgree(0), deGlt() {
4  for(int i=0; i<DEnsys; i++) {
5  deMatch[i] = 0;
6  deSysCompared[i] = 0;
7  for(int j=0; j<2; j++)
8  deNCand[i][j] = 0;
9  }
10  deColl.clear();
11 }
int i
Definition: DBlmapReader.cc:9
static const int DEnsys
int j
Definition: DBlmapReader.cc:9
int deNCand[DEnsys][2]
bool deMatch[DEnsys]
L1DEDigiCollection deColl
bool deSysCompared[DEnsys]
L1DataEmulRecord::L1DataEmulRecord ( bool  evt_match,
bool  sys_comp[DEnsys],
bool  sys_match[DEnsys],
int  nCand[DEnsys][2],
const L1DEDigiCollection ,
const GltDEDigi  
)
L1DataEmulRecord::~L1DataEmulRecord ( )

Definition at line 25 of file L1DataEmulRecord.cc.

25 { }

Member Function Documentation

bool L1DataEmulRecord::empty ( ) const
inline

Definition at line 40 of file L1DataEmulRecord.h.

References deColl.

Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().

40 {return deColl.size()==0;}
L1DEDigiCollection deColl
bool L1DataEmulRecord::get_isComp ( int  i) const
inline

Definition at line 33 of file L1DataEmulRecord.h.

References deSysCompared, and i.

Referenced by operator<<().

33 {return deSysCompared[i];}
int i
Definition: DBlmapReader.cc:9
bool deSysCompared[DEnsys]
bool L1DataEmulRecord::get_status ( ) const
inline

Definition at line 27 of file L1DataEmulRecord.h.

References deAgree.

Referenced by operator<<().

27 { return deAgree; }
bool L1DataEmulRecord::get_status ( int  s) const
inline

Definition at line 28 of file L1DataEmulRecord.h.

References deMatch, and alignCSCRings::s.

28 { return deMatch[s];}
bool deMatch[DEnsys]
void L1DataEmulRecord::get_status ( bool  result[]) const

Definition at line 27 of file L1DataEmulRecord.cc.

References deMatch, DEnsys, and i.

27  {
28  for(int i=0; i<DEnsys; i++)
29  result[i] = deMatch[i];
30 }
int i
Definition: DBlmapReader.cc:9
static const int DEnsys
tuple result
Definition: query.py:137
bool deMatch[DEnsys]
L1DEDigiCollection L1DataEmulRecord::getColl ( ) const
inline

Definition at line 30 of file L1DataEmulRecord.h.

References deColl.

Referenced by operator<<().

30 {return deColl;}
L1DEDigiCollection deColl
GltDEDigi L1DataEmulRecord::getGlt ( ) const
inline

Definition at line 31 of file L1DataEmulRecord.h.

References deGlt.

Referenced by operator<<().

31 {return deGlt;}
int L1DataEmulRecord::getNCand ( int  i,
int  j 
) const
inline

Definition at line 32 of file L1DataEmulRecord.h.

References deNCand, i, and j.

Referenced by operator<<().

32 {return deNCand[i][j];}
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9
int deNCand[DEnsys][2]
void L1DataEmulRecord::set_status ( const bool  result)

Definition at line 32 of file L1DataEmulRecord.cc.

References deAgree, and query::result.

32  {
33  deAgree = result;
34 }
tuple result
Definition: query.py:137
void L1DataEmulRecord::set_status ( const bool  result[])

Definition at line 36 of file L1DataEmulRecord.cc.

References deMatch, DEnsys, and i.

36  {
37  for(int i=0; i<DEnsys; i++)
38  deMatch[i] = result[i];
39 }
int i
Definition: DBlmapReader.cc:9
static const int DEnsys
tuple result
Definition: query.py:137
bool deMatch[DEnsys]
void L1DataEmulRecord::setColl ( const L1DEDigiCollection col)
inline

Definition at line 37 of file L1DataEmulRecord.h.

References cuy::col, and deColl.

37 {deColl = col;}
int col
Definition: cuy.py:1008
L1DEDigiCollection deColl
void L1DataEmulRecord::setGlt ( const GltDEDigi glt)
inline

Definition at line 38 of file L1DataEmulRecord.h.

References deGlt, and glt.

38 {deGlt = glt;}
double glt
Definition: hdecay.h:104

Member Data Documentation

bool L1DataEmulRecord::deAgree
private

Definition at line 44 of file L1DataEmulRecord.h.

Referenced by get_status(), and set_status().

L1DEDigiCollection L1DataEmulRecord::deColl
private

Definition at line 48 of file L1DataEmulRecord.h.

Referenced by empty(), getColl(), L1DataEmulRecord(), and setColl().

GltDEDigi L1DataEmulRecord::deGlt
private

Definition at line 49 of file L1DataEmulRecord.h.

Referenced by getGlt(), and setGlt().

bool L1DataEmulRecord::deMatch[DEnsys]
private

Definition at line 46 of file L1DataEmulRecord.h.

Referenced by get_status(), L1DataEmulRecord(), and set_status().

int L1DataEmulRecord::deNCand[DEnsys][2]
private

Definition at line 47 of file L1DataEmulRecord.h.

Referenced by getNCand(), and L1DataEmulRecord().

const int L1DataEmulRecord::DEnsys = 12
static

Definition at line 19 of file L1DataEmulRecord.h.

Referenced by get_status(), L1DataEmulRecord(), operator<<(), and set_status().

bool L1DataEmulRecord::deSysCompared[DEnsys]
private

Definition at line 45 of file L1DataEmulRecord.h.

Referenced by get_isComp(), and L1DataEmulRecord().