ATLAS Offline Software
CalibFrontEndInfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //***********************************************************************************************
6 // CalibFrontEndInfo - Class to store the calibration information
7 // ---------------------------------------
8 // begin : 01 11 2023
9 // email : sergi.rodriguez@cern.ch
10 //***********************************************************************************************
11 
12 #ifndef PIXCALIBFRONTENDINFO_H
13 #define PIXCALIBFRONTENDINFO_H
14 
15 
16 #include <sstream>
17 #include <iostream>
18 #include <string>
19 #include <vector>
20 
22  public:
24  CalibFrontEndInfo (int MODid, int FEid, const std::string & MODid_str, const std::string & RODid_str) :
26  m_RODid_str (RODid_str),
27  m_MODid (MODid),
28  m_FEid (FEid)
29  {}
31 
32  //Setters for the parameters
33  void set_MODid (int x){m_MODid = x;}
34  void set_FEid (int x){m_FEid = x;}
35 
37  void set_NormalRms (int x){m_NormalRms = x;}
40 
42  void set_LongRms (int x){m_LongRms = x;}
43  void set_LongNoise (int x){m_LongNoise = x;}
44  void set_LongIntime (int x){m_LongIntime = x;}
45 
47  void set_GangedRms (int x){m_GangedRms = x;}
50 
52 
53  //Setters for the fits
54  void set_NormalParams (const std::vector<float> & x){m_NormalFitParams = x; }
55  void set_LongParams (const std::vector<float> & x){m_LongFitParams = x; }
56  void set_SigParams (const std::vector<float> & x){m_SigFitParams = x; }
57 
58  void set_NormalParamsQuality (const std::vector<float> & x){m_NormalFitParamsQuality = x; }
59  void set_LongParamsQuality (const std::vector<float> & x){m_LongFitParamsQuality = x; }
60  void set_SigParamsQuality (const std::vector<float> & x){m_SigFitParamsQuality = x; }
61 
62 
63  //Getters for the parameters - coming soon
64  int MODid() const {return m_MODid; };
65  int FEid() const {return m_FEid; };
66  const std::string& MODid_str() const {return m_MODid_str; };
67  const std::string& FEid_str() const {return m_RODid_str; };
68 
69  int normThreshold() const {return m_NormalThreshold; };
70  int normRms() const {return m_NormalRms; };
71  int normNoise() const {return m_NormalNoise; };
72  int normIntime() const {return m_NormalIntime; };
73 
74  int longThreshold() const {return m_LongThreshold; };
75  int longRms() const {return m_LongRms; };
76  int longNoise() const {return m_LongNoise; };
77  int longIntime() const {return m_LongIntime; };
78 
79  int gangThreshold() const {return m_GangedThreshold; };
80  int gangRms() const {return m_GangedRms; };
81  int gangNoise() const {return m_GangedNoise; };
82  int gangIntime() const {return m_GangedIntime; };
83 
84 
85  //Prints the information stored in case of need.
86  std::stringstream printDBformat() const;
87  void printBeautyformat()const;
88  void printVals() const;
89 
90  //Prints the information stored in case of error - needs more implementation.
91  void printMODerr() const;
92 
93 
94  private:
95 
96 
97  std::string m_MODid_str = "";
98  std::string m_RODid_str = "";
99 
100  int m_MODid = -1;
101  int m_FEid = -1;
102 
104  int m_NormalRms = -1;
105  int m_NormalNoise = -1;
106  int m_NormalIntime = -1;
107 
108  int m_LongThreshold = -1;
109  int m_LongRms = -1;
110  int m_LongNoise = -1;
111  int m_LongIntime = -1;
112 
114  int m_GangedRms = -1;
115  int m_GangedNoise = -1;
116  int m_GangedIntime = -1;
117 
118  int m_times_fitted = -1;
119 
120  std::vector<float> m_NormalFitParams = {0,0,0};
121  std::vector<float> m_LongFitParams = {0,0,0};
122  std::vector<float> m_SigFitParams = {0,0};
123 
124  std::vector<float> m_NormalFitParamsQuality = {0,0};
125  std::vector<float> m_LongFitParamsQuality = {0,0};
126  std::vector<float> m_SigFitParamsQuality = {0,0};
127 
128 
129 };
130 
131 #endif
CalibFrontEndInfo::set_LongIntime
void set_LongIntime(int x)
Definition: CalibFrontEndInfo.h:44
CalibFrontEndInfo::printDBformat
std::stringstream printDBformat() const
Definition: CalibFrontEndInfo.cxx:14
CalibFrontEndInfo::m_NormalFitParams
std::vector< float > m_NormalFitParams
Definition: CalibFrontEndInfo.h:120
CalibFrontEndInfo::set_FEid
void set_FEid(int x)
Definition: CalibFrontEndInfo.h:34
CalibFrontEndInfo::m_MODid_str
std::string m_MODid_str
Definition: CalibFrontEndInfo.h:97
CalibFrontEndInfo::normNoise
int normNoise() const
Definition: CalibFrontEndInfo.h:71
CalibFrontEndInfo::printVals
void printVals() const
Definition: CalibFrontEndInfo.cxx:70
CalibFrontEndInfo::set_GangedIntime
void set_GangedIntime(int x)
Definition: CalibFrontEndInfo.h:49
CalibFrontEndInfo::set_times_fitted
void set_times_fitted(int x)
Definition: CalibFrontEndInfo.h:51
CalibFrontEndInfo::set_LongNoise
void set_LongNoise(int x)
Definition: CalibFrontEndInfo.h:43
CalibFrontEndInfo::FEid_str
const std::string & FEid_str() const
Definition: CalibFrontEndInfo.h:67
CalibFrontEndInfo::FEid
int FEid() const
Definition: CalibFrontEndInfo.h:65
CalibFrontEndInfo::longIntime
int longIntime() const
Definition: CalibFrontEndInfo.h:77
CalibFrontEndInfo::m_FEid
int m_FEid
Definition: CalibFrontEndInfo.h:101
CalibFrontEndInfo::set_GangedNoise
void set_GangedNoise(int x)
Definition: CalibFrontEndInfo.h:48
CalibFrontEndInfo::longNoise
int longNoise() const
Definition: CalibFrontEndInfo.h:76
CalibFrontEndInfo::m_LongFitParams
std::vector< float > m_LongFitParams
Definition: CalibFrontEndInfo.h:121
CalibFrontEndInfo::CalibFrontEndInfo
CalibFrontEndInfo(int MODid, int FEid, const std::string &MODid_str, const std::string &RODid_str)
Definition: CalibFrontEndInfo.h:24
CalibFrontEndInfo::gangThreshold
int gangThreshold() const
Definition: CalibFrontEndInfo.h:79
CalibFrontEndInfo::normThreshold
int normThreshold() const
Definition: CalibFrontEndInfo.h:69
CalibFrontEndInfo::gangIntime
int gangIntime() const
Definition: CalibFrontEndInfo.h:82
x
#define x
CalibFrontEndInfo::set_NormalParams
void set_NormalParams(const std::vector< float > &x)
Definition: CalibFrontEndInfo.h:54
CalibFrontEndInfo::printBeautyformat
void printBeautyformat() const
Definition: CalibFrontEndInfo.cxx:49
CalibFrontEndInfo::longThreshold
int longThreshold() const
Definition: CalibFrontEndInfo.h:74
CalibFrontEndInfo::normRms
int normRms() const
Definition: CalibFrontEndInfo.h:70
CalibFrontEndInfo::set_LongParamsQuality
void set_LongParamsQuality(const std::vector< float > &x)
Definition: CalibFrontEndInfo.h:59
CalibFrontEndInfo::set_NormalRms
void set_NormalRms(int x)
Definition: CalibFrontEndInfo.h:37
CalibFrontEndInfo::m_RODid_str
std::string m_RODid_str
Definition: CalibFrontEndInfo.h:98
CalibFrontEndInfo::set_NormalThreshold
void set_NormalThreshold(int x)
Definition: CalibFrontEndInfo.h:36
CalibFrontEndInfo::m_LongIntime
int m_LongIntime
Definition: CalibFrontEndInfo.h:111
CalibFrontEndInfo::set_NormalParamsQuality
void set_NormalParamsQuality(const std::vector< float > &x)
Definition: CalibFrontEndInfo.h:58
CalibFrontEndInfo::~ CalibFrontEndInfo
~ CalibFrontEndInfo()
Definition: CalibFrontEndInfo.h:30
CalibFrontEndInfo::m_LongNoise
int m_LongNoise
Definition: CalibFrontEndInfo.h:110
CalibFrontEndInfo::MODid_str
const std::string & MODid_str() const
Definition: CalibFrontEndInfo.h:66
CalibFrontEndInfo::printMODerr
void printMODerr() const
Definition: CalibFrontEndInfo.cxx:105
CalibFrontEndInfo::set_LongThreshold
void set_LongThreshold(int x)
Definition: CalibFrontEndInfo.h:41
CalibFrontEndInfo::m_NormalNoise
int m_NormalNoise
Definition: CalibFrontEndInfo.h:105
CalibFrontEndInfo::m_MODid
int m_MODid
Definition: CalibFrontEndInfo.h:100
CalibFrontEndInfo::m_NormalRms
int m_NormalRms
Definition: CalibFrontEndInfo.h:104
CalibFrontEndInfo::m_SigFitParams
std::vector< float > m_SigFitParams
Definition: CalibFrontEndInfo.h:122
CalibFrontEndInfo::m_SigFitParamsQuality
std::vector< float > m_SigFitParamsQuality
Definition: CalibFrontEndInfo.h:126
CalibFrontEndInfo::set_LongRms
void set_LongRms(int x)
Definition: CalibFrontEndInfo.h:42
CalibFrontEndInfo::m_LongThreshold
int m_LongThreshold
Definition: CalibFrontEndInfo.h:108
CalibFrontEndInfo::set_GangedThreshold
void set_GangedThreshold(int x)
Definition: CalibFrontEndInfo.h:46
CalibFrontEndInfo::set_NormalNoise
void set_NormalNoise(int x)
Definition: CalibFrontEndInfo.h:38
CalibFrontEndInfo::m_GangedNoise
int m_GangedNoise
Definition: CalibFrontEndInfo.h:115
CalibFrontEndInfo::MODid
int MODid() const
Definition: CalibFrontEndInfo.h:64
CalibFrontEndInfo::m_times_fitted
int m_times_fitted
Definition: CalibFrontEndInfo.h:118
CalibFrontEndInfo::m_GangedIntime
int m_GangedIntime
Definition: CalibFrontEndInfo.h:116
CalibFrontEndInfo::normIntime
int normIntime() const
Definition: CalibFrontEndInfo.h:72
CalibFrontEndInfo::set_SigParams
void set_SigParams(const std::vector< float > &x)
Definition: CalibFrontEndInfo.h:56
CalibFrontEndInfo::m_GangedRms
int m_GangedRms
Definition: CalibFrontEndInfo.h:114
CalibFrontEndInfo::set_GangedRms
void set_GangedRms(int x)
Definition: CalibFrontEndInfo.h:47
CalibFrontEndInfo::m_LongRms
int m_LongRms
Definition: CalibFrontEndInfo.h:109
CalibFrontEndInfo::gangRms
int gangRms() const
Definition: CalibFrontEndInfo.h:80
CalibFrontEndInfo::set_MODid
void set_MODid(int x)
Definition: CalibFrontEndInfo.h:33
CalibFrontEndInfo::m_NormalIntime
int m_NormalIntime
Definition: CalibFrontEndInfo.h:106
CalibFrontEndInfo::m_NormalThreshold
int m_NormalThreshold
Definition: CalibFrontEndInfo.h:103
CalibFrontEndInfo::CalibFrontEndInfo
CalibFrontEndInfo()
Definition: CalibFrontEndInfo.h:23
CalibFrontEndInfo
Definition: CalibFrontEndInfo.h:21
CalibFrontEndInfo::m_NormalFitParamsQuality
std::vector< float > m_NormalFitParamsQuality
Definition: CalibFrontEndInfo.h:124
CalibFrontEndInfo::set_NormalIntime
void set_NormalIntime(int x)
Definition: CalibFrontEndInfo.h:39
CalibFrontEndInfo::longRms
int longRms() const
Definition: CalibFrontEndInfo.h:75
CalibFrontEndInfo::m_GangedThreshold
int m_GangedThreshold
Definition: CalibFrontEndInfo.h:113
CalibFrontEndInfo::m_LongFitParamsQuality
std::vector< float > m_LongFitParamsQuality
Definition: CalibFrontEndInfo.h:125
CalibFrontEndInfo::gangNoise
int gangNoise() const
Definition: CalibFrontEndInfo.h:81
CalibFrontEndInfo::set_SigParamsQuality
void set_SigParamsQuality(const std::vector< float > &x)
Definition: CalibFrontEndInfo.h:60
CalibFrontEndInfo::set_LongParams
void set_LongParams(const std::vector< float > &x)
Definition: CalibFrontEndInfo.h:55