Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DecoError.h
Go to the documentation of this file.
1 #ifndef __DECO_ERROR_H__
2 #define __DECO_ERROR_H__
3 #include <vector>
4 //#include "assert.h"
5 class DbSvc;
6 
14 class DecoError {
15  public:
16  typedef enum {
25  } TdcError_t;
26 
27  private:
28  static const int N_ROC = 33;
29 
30  int m_run_id;
31  int m_spill_id;
32  bool m_flush_has_error;
33 
34  int m_n_evt_all;
35  int m_n_evt_ng;
36  std::vector<int> m_n_err_tdc[N_ROC][N_TDC_ERROR];
37 
38  public:
39  DecoError();
40  ~DecoError() {;}
41 
42  void SetID(const int run_id, const int spill_id);
43  void SetFlushError(const bool val) { m_flush_has_error = val; }
44  bool GetFlushError() { return m_flush_has_error; }
45 
46  void InitData();
47  void CountFlush();
48  void AddTdcError(const int event, const int roc, const TdcError_t type);
49  void AggregateData();
50  void PrintData(std::ostream& os=std::cout);
51 
52  private:
53  void UpdateDbInfo(DbSvc* db);
54  void UpdateDbTdc (DbSvc* db);
55 };
56 
57 #endif // __DECO_ERROR_H__
bool GetFlushError()
Definition: DecoError.h:44
Definition: DbSvc.h:9
void AggregateData()
Definition: DecoError.cc:48
~DecoError()
Definition: DecoError.h:40
void PrintData(std::ostream &os=std::cout)
Definition: DecoError.cc:56
void CountFlush()
Definition: DecoError.cc:35
void SetID(const int run_id, const int spill_id)
Definition: DecoError.cc:18
void InitData()
Definition: DecoError.cc:24
void AddTdcError(const int event, const int roc, const TdcError_t type)
Definition: DecoError.cc:41
void SetFlushError(const bool val)
Definition: DecoError.h:43