CMS 3D CMS Logo

L1DataEmulRecord Class Reference

#include <DataFormats/L1Trigger/interface/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
void get_status (bool result[]) const
bool get_status (int s) const
bool get_status () 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

typedef std::vector<L1DataEmulDigi> L1DataEmulRecord::L1DEDigiCollection

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.

00003                                    : deAgree(0), deGlt() {
00004   for(int i=0; i<DEnsys; i++) {
00005     deMatch[i] = 0;
00006     deSysCompared[i] = 0;
00007     for(int j=0; j<2; j++) 
00008       deNCand[i][j] =  0;
00009   }
00010   deColl.clear();
00011 }

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.

00025 { } 


Member Function Documentation

bool L1DataEmulRecord::empty (  )  const [inline]

Definition at line 40 of file L1DataEmulRecord.h.

References deColl.

00040 {return deColl.size()==0;}

bool L1DataEmulRecord::get_isComp ( int  i  )  const [inline]

Definition at line 33 of file L1DataEmulRecord.h.

References deSysCompared.

Referenced by operator<<().

00033 {return deSysCompared[i];}

void L1DataEmulRecord::get_status ( bool  result[]  )  const

Definition at line 27 of file L1DataEmulRecord.cc.

References deMatch, and i.

00027                                                      {
00028   for(int i=0; i<DEnsys; i++)
00029     result[i] = deMatch[i];
00030 }

bool L1DataEmulRecord::get_status ( int  s  )  const [inline]

Definition at line 28 of file L1DataEmulRecord.h.

References deMatch.

00028 { return deMatch[s];}

bool L1DataEmulRecord::get_status (  )  const [inline]

Definition at line 27 of file L1DataEmulRecord.h.

References deAgree.

Referenced by operator<<().

00027 { return deAgree; }

L1DEDigiCollection L1DataEmulRecord::getColl (  )  const [inline]

Definition at line 30 of file L1DataEmulRecord.h.

References deColl.

Referenced by operator<<().

00030 {return deColl;}

GltDEDigi L1DataEmulRecord::getGlt (  )  const [inline]

Definition at line 31 of file L1DataEmulRecord.h.

References deGlt.

Referenced by operator<<().

00031 {return deGlt;}

int L1DataEmulRecord::getNCand ( int  i,
int  j 
) const [inline]

Definition at line 32 of file L1DataEmulRecord.h.

References deNCand.

Referenced by operator<<().

00032 {return deNCand[i][j];}

void L1DataEmulRecord::set_status ( const bool  result[]  ) 

Definition at line 36 of file L1DataEmulRecord.cc.

References deMatch, and i.

00036                                                      { 
00037   for(int i=0; i<DEnsys; i++)
00038     deMatch[i] = result[i]; 
00039 }

void L1DataEmulRecord::set_status ( const bool  result  ) 

Definition at line 32 of file L1DataEmulRecord.cc.

References deAgree.

00032                                              { 
00033   deAgree = result; 
00034 }

void L1DataEmulRecord::setColl ( const L1DEDigiCollection  col  )  [inline]

Definition at line 37 of file L1DataEmulRecord.h.

References deColl.

00037 {deColl = col;}

void L1DataEmulRecord::setGlt ( GltDEDigi  glt  )  [inline]

Definition at line 38 of file L1DataEmulRecord.h.

References deGlt.

00038 {deGlt = glt;}


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 L1DataEmulRecord(), and operator<<().

bool L1DataEmulRecord::deSysCompared[DEnsys] [private]

Definition at line 45 of file L1DataEmulRecord.h.

Referenced by get_isComp(), and L1DataEmulRecord().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:25 2009 for CMSSW by  doxygen 1.5.4