CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1DataEmulRecord.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1DataEmulRecord_h
2 #define DataFormats_L1DataEmulRecord_h
3 
4 /*\class L1DataEmulRecord
5  *\description L1 trigger data|emulation event record
6  *\author Nuno Leonardo (CERN)
7  *\date 07.06
8  */
9 
10 #include <ostream>
11 #include <vector>
12 
14 
16 
17  public:
18 
19  static const int DEnsys = 12;
20  typedef std::vector<L1DataEmulDigi> L1DEDigiCollection;
21 
23  L1DataEmulRecord(bool evt_match, bool sys_comp[DEnsys], bool sys_match[DEnsys],
24  int nCand[DEnsys][2], L1DEDigiCollection, GltDEDigi);
26 
27  bool get_status() const { return deAgree; }
28  bool get_status(int s) const { return deMatch[s];}
29  void get_status(bool result[]) const;
30  L1DEDigiCollection getColl() const {return deColl;}
31  GltDEDigi getGlt() const {return deGlt;}
32  int getNCand(int i, int j) const {return deNCand[i][j];}
33  bool get_isComp(int i) const {return deSysCompared[i];}
34 
35  void set_status(const bool result);
36  void set_status(const bool result[]);
37  void setColl(const L1DEDigiCollection col) {deColl = col;}
39 
40  bool empty() const {return deColl.size()==0;}
41 
42  private:
43 
44  bool deAgree;
46  bool deMatch[DEnsys];
47  int deNCand[DEnsys][2];
50 
51 };
52 
53 std::ostream& operator<<(std::ostream&, const L1DataEmulRecord&);
54 
55 #endif
int i
Definition: DBlmapReader.cc:9
void set_status(const bool result)
bool empty() const
std::vector< L1DataEmulDigi > L1DEDigiCollection
static const int DEnsys
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
GltDEDigi getGlt() const
void setColl(const L1DEDigiCollection col)
tuple result
Definition: query.py:137
int j
Definition: DBlmapReader.cc:9
int deNCand[DEnsys][2]
bool get_status() const
int getNCand(int i, int j) const
bool deMatch[DEnsys]
bool get_status(int s) const
L1DEDigiCollection getColl() const
double glt
Definition: hdecay.h:104
L1DEDigiCollection deColl
bool deSysCompared[DEnsys]
bool get_isComp(int i) const
void setGlt(GltDEDigi glt)