CMS 3D CMS Logo

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< L1DataEmulDigiL1DEDigiCollection
 

Public Member Functions

bool empty () const
 
bool get_isComp (int i) const
 
bool get_status () const
 
void get_status (bool result[]) const
 
bool get_status (int s) 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

◆ L1DEDigiCollection

Definition at line 19 of file L1DataEmulRecord.h.

Constructor & Destructor Documentation

◆ L1DataEmulRecord() [1/3]

L1DataEmulRecord::L1DataEmulRecord ( )

Definition at line 3 of file L1DataEmulRecord.cc.

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 }

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

◆ L1DataEmulRecord() [2/3]

L1DataEmulRecord::L1DataEmulRecord ( bool  evt_match,
bool  sys_comp[DEnsys],
bool  sys_match[DEnsys],
int  nCand[DEnsys][2],
const L1DEDigiCollection ,
const GltDEDigi  
)

◆ L1DataEmulRecord() [3/3]

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.

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 }

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

◆ ~L1DataEmulRecord()

L1DataEmulRecord::~L1DataEmulRecord ( )

Definition at line 45 of file L1DataEmulRecord.cc.

45 {}

Member Function Documentation

◆ empty()

bool L1DataEmulRecord::empty ( ) const
inline

Definition at line 49 of file L1DataEmulRecord.h.

49 { return deColl.empty(); }

References deColl.

◆ get_isComp()

bool L1DataEmulRecord::get_isComp ( int  i) const
inline

Definition at line 42 of file L1DataEmulRecord.h.

42 { return deSysCompared[i]; }

References deSysCompared, and mps_fire::i.

Referenced by L1TdeGCT::analyze(), and L1TDEMON::analyze().

◆ get_status() [1/3]

bool L1DataEmulRecord::get_status ( ) const
inline

Definition at line 36 of file L1DataEmulRecord.h.

36 { return deAgree; }

References deAgree.

Referenced by L1TDEMON::analyze(), and L1DEFilter::filter().

◆ get_status() [2/3]

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

Definition at line 47 of file L1DataEmulRecord.cc.

47  {
48  for (int i = 0; i < DEnsys; i++)
49  result[i] = deMatch[i];
50 }

References deMatch, DEnsys, mps_fire::i, and mps_fire::result.

◆ get_status() [3/3]

bool L1DataEmulRecord::get_status ( int  s) const
inline

Definition at line 37 of file L1DataEmulRecord.h.

37 { return deMatch[s]; }

References deMatch, and alignCSCRings::s.

◆ getColl()

L1DEDigiCollection L1DataEmulRecord::getColl ( ) const
inline

Definition at line 39 of file L1DataEmulRecord.h.

39 { return deColl; }

References deColl.

Referenced by L1TdeGCT::analyze(), and L1TDEMON::analyze().

◆ getGlt()

GltDEDigi L1DataEmulRecord::getGlt ( ) const
inline

Definition at line 40 of file L1DataEmulRecord.h.

40 { return deGlt; }

References deGlt.

◆ getNCand()

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

Definition at line 41 of file L1DataEmulRecord.h.

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

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

Referenced by L1TdeGCT::analyze(), and L1TDEMON::analyze().

◆ set_status() [1/2]

void L1DataEmulRecord::set_status ( const bool  result)

Definition at line 52 of file L1DataEmulRecord.cc.

52 { deAgree = result; }

References deAgree, and mps_fire::result.

◆ set_status() [2/2]

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

Definition at line 54 of file L1DataEmulRecord.cc.

54  {
55  for (int i = 0; i < DEnsys; i++)
56  deMatch[i] = result[i];
57 }

References deMatch, DEnsys, mps_fire::i, and mps_fire::result.

◆ setColl()

void L1DataEmulRecord::setColl ( const L1DEDigiCollection col)
inline

Definition at line 46 of file L1DataEmulRecord.h.

46 { deColl = col; }

References cuy::col, and deColl.

◆ setGlt()

void L1DataEmulRecord::setGlt ( const GltDEDigi glt)
inline

Definition at line 47 of file L1DataEmulRecord.h.

47 { deGlt = glt; }

References deGlt, and glt.

Member Data Documentation

◆ deAgree

bool L1DataEmulRecord::deAgree
private

Definition at line 52 of file L1DataEmulRecord.h.

Referenced by get_status(), and set_status().

◆ deColl

L1DEDigiCollection L1DataEmulRecord::deColl
private

Definition at line 56 of file L1DataEmulRecord.h.

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

◆ deGlt

GltDEDigi L1DataEmulRecord::deGlt
private

Definition at line 57 of file L1DataEmulRecord.h.

Referenced by getGlt(), and setGlt().

◆ deMatch

bool L1DataEmulRecord::deMatch[DEnsys]
private

Definition at line 54 of file L1DataEmulRecord.h.

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

◆ deNCand

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

Definition at line 55 of file L1DataEmulRecord.h.

Referenced by getNCand(), and L1DataEmulRecord().

◆ DEnsys

const int L1DataEmulRecord::DEnsys = 12
static

Definition at line 18 of file L1DataEmulRecord.h.

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

◆ deSysCompared

bool L1DataEmulRecord::deSysCompared[DEnsys]
private

Definition at line 53 of file L1DataEmulRecord.h.

Referenced by get_isComp(), and L1DataEmulRecord().

mps_fire.i
i
Definition: mps_fire.py:428
L1DataEmulRecord::deColl
L1DEDigiCollection deColl
Definition: L1DataEmulRecord.h:56
cuy.col
col
Definition: cuy.py:1010
L1DataEmulRecord::deAgree
bool deAgree
Definition: L1DataEmulRecord.h:52
alignCSCRings.s
s
Definition: alignCSCRings.py:92
L1DataEmulRecord::deSysCompared
bool deSysCompared[DEnsys]
Definition: L1DataEmulRecord.h:53
L1DataEmulRecord::DEnsys
static const int DEnsys
Definition: L1DataEmulRecord.h:18
glt
double glt
Definition: hdecay.h:102
mps_fire.result
result
Definition: mps_fire.py:311
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
L1DataEmulRecord::deMatch
bool deMatch[DEnsys]
Definition: L1DataEmulRecord.h:54
L1DataEmulRecord::deGlt
GltDEDigi deGlt
Definition: L1DataEmulRecord.h:57
L1DataEmulRecord::deNCand
int deNCand[DEnsys][2]
Definition: L1DataEmulRecord.h:55