CMS 3D CMS Logo

Public Types | Public Member Functions | Static Public Attributes | Private Attributes

L1DataEmulRecord Class Reference

#include <L1DataEmulRecord.h>

List of all members.

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 (bool evt_match, bool sys_comp[DEnsys], bool sys_match[DEnsys], int nCand[DEnsys][2], L1DEDigiCollection, GltDEDigi)
 L1DataEmulRecord ()
void set_status (const bool result[])
void set_status (const bool result)
void setColl (const L1DEDigiCollection col)
void setGlt (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.

                                   : deAgree(0), deGlt() {
  for(int i=0; i<DEnsys; i++) {
    deMatch[i] = 0;
    deSysCompared[i] = 0;
    for(int j=0; j<2; j++) 
      deNCand[i][j] =  0;
  }
  deColl.clear();
}
L1DataEmulRecord::L1DataEmulRecord ( bool  evt_match,
bool  sys_comp[DEnsys],
bool  sys_match[DEnsys],
int  nCand[DEnsys][2],
L1DEDigiCollection  ,
GltDEDigi   
)
L1DataEmulRecord::~L1DataEmulRecord ( )

Definition at line 25 of file L1DataEmulRecord.cc.

{ } 

Member Function Documentation

bool L1DataEmulRecord::empty ( ) const [inline]

Definition at line 40 of file L1DataEmulRecord.h.

References deColl.

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

Definition at line 33 of file L1DataEmulRecord.h.

References deSysCompared, and i.

Referenced by operator<<().

{return deSysCompared[i];}
bool L1DataEmulRecord::get_status ( int  s) const [inline]

Definition at line 28 of file L1DataEmulRecord.h.

References deMatch, and alignCSCRings::s.

{ return deMatch[s];}
bool L1DataEmulRecord::get_status ( ) const [inline]

Definition at line 27 of file L1DataEmulRecord.h.

References deAgree.

Referenced by operator<<().

{ return deAgree; }
void L1DataEmulRecord::get_status ( bool  result[]) const

Definition at line 27 of file L1DataEmulRecord.cc.

References deMatch, DEnsys, and i.

                                                     {
  for(int i=0; i<DEnsys; i++)
    result[i] = deMatch[i];
}
L1DEDigiCollection L1DataEmulRecord::getColl ( ) const [inline]

Definition at line 30 of file L1DataEmulRecord.h.

References deColl.

Referenced by operator<<().

{return deColl;}
GltDEDigi L1DataEmulRecord::getGlt ( ) const [inline]

Definition at line 31 of file L1DataEmulRecord.h.

References deGlt.

Referenced by operator<<().

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

{return deNCand[i][j];}
void L1DataEmulRecord::set_status ( const bool  result)

Definition at line 32 of file L1DataEmulRecord.cc.

References deAgree, and query::result.

                                             { 
  deAgree = result; 
}
void L1DataEmulRecord::set_status ( const bool  result[])

Definition at line 36 of file L1DataEmulRecord.cc.

References deMatch, DEnsys, and i.

                                                     { 
  for(int i=0; i<DEnsys; i++)
    deMatch[i] = result[i]; 
}
void L1DataEmulRecord::setColl ( const L1DEDigiCollection  col) [inline]

Definition at line 37 of file L1DataEmulRecord.h.

References deColl.

{deColl = col;}
void L1DataEmulRecord::setGlt ( GltDEDigi  glt) [inline]

Definition at line 38 of file L1DataEmulRecord.h.

References deGlt, and glt.

{deGlt = glt;}

Member Data Documentation

bool L1DataEmulRecord::deAgree [private]

Definition at line 44 of file L1DataEmulRecord.h.

Referenced by get_status(), and set_status().

Definition at line 48 of file L1DataEmulRecord.h.

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

Definition at line 49 of file L1DataEmulRecord.h.

Referenced by getGlt(), and setGlt().

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

Definition at line 45 of file L1DataEmulRecord.h.

Referenced by get_isComp(), and L1DataEmulRecord().