ATLAS Offline Software
Loading...
Searching...
No Matches
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 {}
30 ~ CalibFrontEndInfo (){};
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
40
42 void set_LongRms (int x){m_LongRms = x;}
45
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;
107
109 int m_LongRms = -1;
110 int m_LongNoise = -1;
111 int m_LongIntime = -1;
112
114 int m_GangedRms = -1;
117
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
#define x
void set_NormalThreshold(int x)
const std::string & FEid_str() const
void set_LongThreshold(int x)
std::vector< float > m_SigFitParams
void set_NormalParams(const std::vector< float > &x)
int longThreshold() const
void set_GangedNoise(int x)
std::vector< float > m_LongFitParams
void set_NormalIntime(int x)
void set_LongParams(const std::vector< float > &x)
std::vector< float > m_SigFitParamsQuality
void set_LongNoise(int x)
void set_times_fitted(int x)
int normThreshold() const
const std::string & MODid_str() const
void set_NormalParamsQuality(const std::vector< float > &x)
void set_LongIntime(int x)
std::vector< float > m_NormalFitParamsQuality
void set_GangedThreshold(int x)
void printBeautyformat() const
std::vector< float > m_LongFitParamsQuality
int gangThreshold() const
CalibFrontEndInfo(int MODid, int FEid, const std::string &MODid_str, const std::string &RODid_str)
void set_NormalNoise(int x)
void set_LongParamsQuality(const std::vector< float > &x)
std::stringstream printDBformat() const
std::vector< float > m_NormalFitParams
void set_GangedIntime(int x)
void set_SigParams(const std::vector< float > &x)
void set_SigParamsQuality(const std::vector< float > &x)
void set_NormalRms(int x)
void set_GangedRms(int x)