CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 &)
 
 L1DataEmulRecord (bool evt_match, std::array< bool, DEnsys > const &sys_comp, std::array< bool, DEnsys > const &sys_match, std::array< std::array< int, 2 >, DEnsys > const &nCand, 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 16 of file L1DataEmulRecord.h.

Member Typedef Documentation

Definition at line 19 of file L1DataEmulRecord.h.

Constructor & Destructor Documentation

L1DataEmulRecord::L1DataEmulRecord ( )

Definition at line 3 of file L1DataEmulRecord.cc.

References deColl, deMatch, deNCand, DEnsys, deSysCompared, mps_fire::i, and dqmiolumiharvest::j.

3  : deAgree(false), deGlt() {
4  for (int i = 0; i < DEnsys; i++) {
5  deMatch[i] = false;
6  deSysCompared[i] = false;
7  for (int j = 0; j < 2; j++)
8  deNCand[i][j] = 0;
9  }
10  deColl.clear();
11 }
static const int DEnsys
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 ( bool  evt_match,
std::array< bool, DEnsys > const &  sys_comp,
std::array< bool, DEnsys > const &  sys_match,
std::array< std::array< int, 2 >, DEnsys > const &  nCand,
const L1DEDigiCollection coll,
const GltDEDigi glt 
)

Definition at line 29 of file L1DataEmulRecord.cc.

References deColl, deMatch, deNCand, DEnsys, deSysCompared, mps_fire::i, and dqmiolumiharvest::j.

35  : deAgree(evt_match), deGlt(glt) {
36  for (int i = 0; i < DEnsys; i++) {
37  deMatch[i] = sys_match[i];
38  deSysCompared[i] = sys_comp[i];
39  for (int j = 0; j < 2; j++)
40  deNCand[i][j] = nCand[i][j];
41  }
42  deColl = coll;
43 }
static const int DEnsys
int deNCand[DEnsys][2]
bool deMatch[DEnsys]
L1DEDigiCollection deColl
bool deSysCompared[DEnsys]
L1DataEmulRecord::~L1DataEmulRecord ( )

Definition at line 45 of file L1DataEmulRecord.cc.

45 {}

Member Function Documentation

bool L1DataEmulRecord::empty ( ) const
inline

Definition at line 49 of file L1DataEmulRecord.h.

References deColl.

49 { return deColl.empty(); }
L1DEDigiCollection deColl
bool L1DataEmulRecord::get_isComp ( int  i) const
inline

Definition at line 42 of file L1DataEmulRecord.h.

References deSysCompared, and mps_fire::i.

Referenced by operator<<().

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

Definition at line 36 of file L1DataEmulRecord.h.

References deAgree.

Referenced by operator<<().

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

Definition at line 37 of file L1DataEmulRecord.h.

References deMatch, and alignCSCRings::s.

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

Definition at line 47 of file L1DataEmulRecord.cc.

References deMatch, DEnsys, and mps_fire::i.

47  {
48  for (int i = 0; i < DEnsys; i++)
49  result[i] = deMatch[i];
50 }
static const int DEnsys
tuple result
Definition: mps_fire.py:311
bool deMatch[DEnsys]
L1DEDigiCollection L1DataEmulRecord::getColl ( ) const
inline

Definition at line 39 of file L1DataEmulRecord.h.

References deColl.

Referenced by operator<<().

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

Definition at line 40 of file L1DataEmulRecord.h.

References deGlt.

Referenced by operator<<().

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

Definition at line 41 of file L1DataEmulRecord.h.

References deNCand, mps_fire::i, and dqmiolumiharvest::j.

Referenced by operator<<().

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

Definition at line 52 of file L1DataEmulRecord.cc.

References deAgree, and mps_fire::result.

52 { deAgree = result; }
tuple result
Definition: mps_fire.py:311
void L1DataEmulRecord::set_status ( const bool  result[])

Definition at line 54 of file L1DataEmulRecord.cc.

References deMatch, DEnsys, and mps_fire::i.

54  {
55  for (int i = 0; i < DEnsys; i++)
56  deMatch[i] = result[i];
57 }
static const int DEnsys
tuple result
Definition: mps_fire.py:311
bool deMatch[DEnsys]
void L1DataEmulRecord::setColl ( const L1DEDigiCollection col)
inline

Definition at line 46 of file L1DataEmulRecord.h.

References cuy::col, and deColl.

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

Definition at line 47 of file L1DataEmulRecord.h.

References deGlt, and glt.

47 { deGlt = glt; }
double glt
Definition: hdecay.h:102

Member Data Documentation

bool L1DataEmulRecord::deAgree
private

Definition at line 52 of file L1DataEmulRecord.h.

Referenced by get_status(), and set_status().

L1DEDigiCollection L1DataEmulRecord::deColl
private

Definition at line 56 of file L1DataEmulRecord.h.

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

GltDEDigi L1DataEmulRecord::deGlt
private

Definition at line 57 of file L1DataEmulRecord.h.

Referenced by getGlt(), and setGlt().

bool L1DataEmulRecord::deMatch[DEnsys]
private

Definition at line 54 of file L1DataEmulRecord.h.

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

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

Definition at line 55 of file L1DataEmulRecord.h.

Referenced by getNCand(), and L1DataEmulRecord().

const int L1DataEmulRecord::DEnsys = 12
static

Definition at line 18 of file L1DataEmulRecord.h.

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

bool L1DataEmulRecord::deSysCompared[DEnsys]
private

Definition at line 53 of file L1DataEmulRecord.h.

Referenced by get_isComp(), and L1DataEmulRecord().