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

◆ 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.

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

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]
double glt
Definition: hdecay.h:102
L1DEDigiCollection deColl
bool deSysCompared[DEnsys]

◆ ~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.

References deColl.

49 { return deColl.empty(); }
L1DEDigiCollection deColl

◆ get_isComp()

bool L1DataEmulRecord::get_isComp ( int  i) const
inline

Definition at line 42 of file L1DataEmulRecord.h.

References deSysCompared, and mps_fire::i.

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

42 { return deSysCompared[i]; }
bool deSysCompared[DEnsys]

◆ get_status() [1/3]

bool L1DataEmulRecord::get_status ( ) const
inline

Definition at line 36 of file L1DataEmulRecord.h.

References deAgree.

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

36 { return deAgree; }

◆ get_status() [2/3]

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]

◆ get_status() [3/3]

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

Definition at line 47 of file L1DataEmulRecord.cc.

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

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

◆ getColl()

L1DEDigiCollection L1DataEmulRecord::getColl ( ) const
inline

Definition at line 39 of file L1DataEmulRecord.h.

References deColl.

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

39 { return deColl; }
L1DEDigiCollection deColl

◆ getGlt()

GltDEDigi L1DataEmulRecord::getGlt ( ) const
inline

Definition at line 40 of file L1DataEmulRecord.h.

References deGlt.

40 { return deGlt; }

◆ getNCand()

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 L1TdeGCT::analyze(), and L1TDEMON::analyze().

41 { return deNCand[i][j]; }
int deNCand[DEnsys][2]

◆ set_status() [1/2]

void L1DataEmulRecord::set_status ( const bool  result)

Definition at line 52 of file L1DataEmulRecord.cc.

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.

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

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

◆ setColl()

void L1DataEmulRecord::setColl ( const L1DEDigiCollection col)
inline

Definition at line 46 of file L1DataEmulRecord.h.

References cuy::col, and deColl.

46 { deColl = col; }
col
Definition: cuy.py:1009
L1DEDigiCollection deColl

◆ setGlt()

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

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