ATLAS Offline Software
Loading...
Searching...
No Matches
CalibFrontEndInfo Class Reference

#include <CalibFrontEndInfo.h>

Collaboration diagram for CalibFrontEndInfo:

Public Member Functions

 CalibFrontEndInfo ()
 CalibFrontEndInfo (int MODid, int FEid, const std::string &MODid_str, const std::string &RODid_str)
 ~CalibFrontEndInfo ()
void set_MODid (int x)
void set_FEid (int x)
void set_NormalThreshold (int x)
void set_NormalRms (int x)
void set_NormalNoise (int x)
void set_NormalIntime (int x)
void set_LongThreshold (int x)
void set_LongRms (int x)
void set_LongNoise (int x)
void set_LongIntime (int x)
void set_GangedThreshold (int x)
void set_GangedRms (int x)
void set_GangedNoise (int x)
void set_GangedIntime (int x)
void set_times_fitted (int x)
void set_NormalParams (const std::vector< float > &x)
void set_LongParams (const std::vector< float > &x)
void set_SigParams (const std::vector< float > &x)
void set_NormalParamsQuality (const std::vector< float > &x)
void set_LongParamsQuality (const std::vector< float > &x)
void set_SigParamsQuality (const std::vector< float > &x)
int MODid () const
int FEid () const
const std::string & MODid_str () const
const std::string & FEid_str () const
int normThreshold () const
int normRms () const
int normNoise () const
int normIntime () const
int longThreshold () const
int longRms () const
int longNoise () const
int longIntime () const
int gangThreshold () const
int gangRms () const
int gangNoise () const
int gangIntime () const
std::stringstream printDBformat () const
void printBeautyformat () const
void printVals () const
void printMODerr () const

Private Attributes

std::string m_MODid_str = ""
std::string m_RODid_str = ""
int m_MODid = -1
int m_FEid = -1
int m_NormalThreshold = -1
int m_NormalRms = -1
int m_NormalNoise = -1
int m_NormalIntime = -1
int m_LongThreshold = -1
int m_LongRms = -1
int m_LongNoise = -1
int m_LongIntime = -1
int m_GangedThreshold = -1
int m_GangedRms = -1
int m_GangedNoise = -1
int m_GangedIntime = -1
int m_times_fitted = -1
std::vector< float > m_NormalFitParams = {0,0,0}
std::vector< float > m_LongFitParams = {0,0,0}
std::vector< float > m_SigFitParams = {0,0}
std::vector< float > m_NormalFitParamsQuality = {0,0}
std::vector< float > m_LongFitParamsQuality = {0,0}
std::vector< float > m_SigFitParamsQuality = {0,0}

Detailed Description

Definition at line 21 of file CalibFrontEndInfo.h.

Constructor & Destructor Documentation

◆ CalibFrontEndInfo() [1/2]

CalibFrontEndInfo::CalibFrontEndInfo ( )
inline

Definition at line 23 of file CalibFrontEndInfo.h.

23{};

◆ CalibFrontEndInfo() [2/2]

CalibFrontEndInfo::CalibFrontEndInfo ( int MODid,
int FEid,
const std::string & MODid_str,
const std::string & RODid_str )
inline

Definition at line 24 of file CalibFrontEndInfo.h.

24 :
26 m_RODid_str (RODid_str),
27 m_MODid (MODid),
28 m_FEid (FEid)
29 {}
const std::string & MODid_str() const

◆ ~CalibFrontEndInfo()

CalibFrontEndInfo::~CalibFrontEndInfo ( )
inline

Definition at line 30 of file CalibFrontEndInfo.h.

30{};

Member Function Documentation

◆ FEid()

int CalibFrontEndInfo::FEid ( ) const
inline

Definition at line 65 of file CalibFrontEndInfo.h.

65{return m_FEid; };

◆ FEid_str()

const std::string & CalibFrontEndInfo::FEid_str ( ) const
inline

Definition at line 67 of file CalibFrontEndInfo.h.

67{return m_RODid_str; };

◆ gangIntime()

int CalibFrontEndInfo::gangIntime ( ) const
inline

Definition at line 82 of file CalibFrontEndInfo.h.

◆ gangNoise()

int CalibFrontEndInfo::gangNoise ( ) const
inline

Definition at line 81 of file CalibFrontEndInfo.h.

◆ gangRms()

int CalibFrontEndInfo::gangRms ( ) const
inline

Definition at line 80 of file CalibFrontEndInfo.h.

80{return m_GangedRms; };

◆ gangThreshold()

int CalibFrontEndInfo::gangThreshold ( ) const
inline

Definition at line 79 of file CalibFrontEndInfo.h.

◆ longIntime()

int CalibFrontEndInfo::longIntime ( ) const
inline

Definition at line 77 of file CalibFrontEndInfo.h.

77{return m_LongIntime; };

◆ longNoise()

int CalibFrontEndInfo::longNoise ( ) const
inline

Definition at line 76 of file CalibFrontEndInfo.h.

76{return m_LongNoise; };

◆ longRms()

int CalibFrontEndInfo::longRms ( ) const
inline

Definition at line 75 of file CalibFrontEndInfo.h.

75{return m_LongRms; };

◆ longThreshold()

int CalibFrontEndInfo::longThreshold ( ) const
inline

Definition at line 74 of file CalibFrontEndInfo.h.

◆ MODid()

int CalibFrontEndInfo::MODid ( ) const
inline

Definition at line 64 of file CalibFrontEndInfo.h.

64{return m_MODid; };

◆ MODid_str()

const std::string & CalibFrontEndInfo::MODid_str ( ) const
inline

Definition at line 66 of file CalibFrontEndInfo.h.

66{return m_MODid_str; };

◆ normIntime()

int CalibFrontEndInfo::normIntime ( ) const
inline

Definition at line 72 of file CalibFrontEndInfo.h.

◆ normNoise()

int CalibFrontEndInfo::normNoise ( ) const
inline

Definition at line 71 of file CalibFrontEndInfo.h.

◆ normRms()

int CalibFrontEndInfo::normRms ( ) const
inline

Definition at line 70 of file CalibFrontEndInfo.h.

70{return m_NormalRms; };

◆ normThreshold()

int CalibFrontEndInfo::normThreshold ( ) const
inline

Definition at line 69 of file CalibFrontEndInfo.h.

◆ printBeautyformat()

void CalibFrontEndInfo::printBeautyformat ( ) const

Definition at line 49 of file CalibFrontEndInfo.cxx.

49 {
50
51 if(m_FEid == 0) printf("ROD: %s -> MOD: %s\n",m_RODid_str.c_str(),m_MODid_str.c_str());
52 printf("I%02d | %4d %3d %3d %4d | %4d %3d %3d %4d | %4d %3d %3d %4d | %11.4e %11.4e %11.4e (%6.1f/%6.1f) | %11.4e %11.4e %11.4e (%6.1f/%6.1f) | %11.4e %11.4e (%6.1f/%6.1f) ---> %d\n",
53
54 m_FEid,
55
59
62
65 );
66 return;
67};
std::vector< float > m_SigFitParams
std::vector< float > m_LongFitParams
std::vector< float > m_SigFitParamsQuality
std::vector< float > m_NormalFitParamsQuality
std::vector< float > m_LongFitParamsQuality
std::vector< float > m_NormalFitParams

◆ printDBformat()

std::stringstream CalibFrontEndInfo::printDBformat ( ) const

Definition at line 14 of file CalibFrontEndInfo.cxx.

14 {
15
16 std::stringstream mytext;
17
18 if(m_FEid == 0) mytext << m_MODid_str << " " << m_MODid << "\n";
19
20 if(m_NormalFitParams.size() == 3 && m_LongFitParams.size() == 3 && m_SigFitParams.size() == 2){
21 mytext << "I" << m_FEid
22 << " " << m_NormalThreshold << " " << m_NormalRms << " " << m_NormalNoise << " " << m_NormalIntime
23 << " " << m_LongThreshold << " " << m_LongRms << " " << m_LongNoise << " " << m_LongIntime
24 << " " << m_GangedThreshold << " " << m_GangedRms << " " << m_GangedNoise << " " << m_GangedIntime
25
26 << " " << m_NormalFitParams.at(0) << " " << m_NormalFitParams.at(1) << " " << m_NormalFitParams.at(2)
27 << " " << m_LongFitParams.at(0) << " " << m_LongFitParams.at(1) << " " << m_LongFitParams.at(2)
28 << " " << m_SigFitParams.at(0) << " " << m_SigFitParams.at(1) ;
29 }
30 else{
31 printf( " ERROR - Is the module disabled for TOT Scan? - m_NormalFitParams.size = %2zu , m_LongFitParams.size = %2zu, m_SigFitParams.size = %2zu \n",m_NormalFitParams.size() ,m_LongFitParams.size(),m_SigFitParams.size());
32 mytext << "I" << m_FEid
33 << " " << m_NormalThreshold << " " << m_NormalRms << " " << m_NormalNoise << " " << m_NormalIntime
34 << " " << m_LongThreshold << " " << m_LongRms << " " << m_LongNoise << " " << m_LongIntime
35 << " " << m_GangedThreshold << " " << m_GangedRms << " " << m_GangedNoise << " " << m_GangedIntime
36
37 << " " << 0 << " " << 0 << " " << 0
38 << " " << 0 << " " << 0 << " " << 0
39 << " " << 0 << " " << 0 ;
40 }
41
42
43
44
45 return mytext;
46
47};

◆ printMODerr()

void CalibFrontEndInfo::printMODerr ( ) const

Definition at line 105 of file CalibFrontEndInfo.cxx.

105 {
106
107 bool error = false;
108
112 };
113
114 for(const auto &val : vals) {
115 if(val <= 0) error = true;
116 }
117
118 if(error) printVals();
119
120 return;
121};

◆ printVals()

void CalibFrontEndInfo::printVals ( ) const

Definition at line 70 of file CalibFrontEndInfo.cxx.

70 {
71
72 printf("******************************************************************************************************\n");
73 printf("%-6s: %s - %-9s:%5d / %s - %-12s:%3d\n", "ROD ID", m_RODid_str.c_str(), "Module ID", m_MODid,m_MODid_str.c_str(), "Front End ID", m_FEid);
74
75 printf("-----------------------------------------------------------------------\n");
76 printf("| %-9s | %9s | %9s | %9s | %9s |\n","", "Threshold", " RMS", " Noise", " Intime" );
77 printf("-----------------------------------------------------------------------\n");
78 printf("| %-9s | %9d | %9d | %9d | %9d |\n","Normal", m_NormalThreshold, m_NormalRms, m_NormalNoise, m_NormalIntime);
79 printf("| %-9s | %9d | %9d | %9d | %9d |\n","Long" , m_LongThreshold , m_LongRms , m_LongNoise , m_LongIntime );
80 printf("| %-9s | %9d | %9d | %9d | %9d |\n","Ganged", m_GangedThreshold, m_GangedRms, m_GangedNoise, m_GangedIntime);
81 printf("-----------------------------------------------------------------------\n\n");
82
83 if(m_NormalFitParams.size() == 3 ) {
84 printf("%-40s: %11.2f / %11.2f / %11.2f\n","Fitting parameters for normal pixel",m_NormalFitParams.at(0),m_NormalFitParams.at(1),m_NormalFitParams.at(2));
85 }
86 else {
87 printf("%-40s: %11s / %11s / %11s\n","Fitting parameters for normal pixel","not set","not set","not set");
88 }
89 if(m_LongFitParams.size() == 3 ) {
90 printf("%-40s: %11.2f / %11.2f / %11.2f\n","Fitting parameters for long pixel",m_LongFitParams.at(0),m_LongFitParams.at(1),m_LongFitParams.at(2));
91 }
92 else {
93 printf("%-40s: %11s / %11s / %11s\n","Fitting parameters for long pixel","not set","not set","not set");
94 }
95 if(m_SigFitParams.size() == 2 ) {
96 printf("%-40s: %11.7f / %.5e\n\n","Fitting parameters for sig (linear fit)",m_SigFitParams.at(0),m_SigFitParams.at(1));
97 }
98 else {
99 printf("%-40s: %11s / %11s\n\n","Fitting parameters for sig (linear fit)","not set","not set");
100 }
101 return;
102};

◆ set_FEid()

void CalibFrontEndInfo::set_FEid ( int x)
inline

Definition at line 34 of file CalibFrontEndInfo.h.

34{m_FEid = x;}
#define x

◆ set_GangedIntime()

void CalibFrontEndInfo::set_GangedIntime ( int x)
inline

Definition at line 49 of file CalibFrontEndInfo.h.

◆ set_GangedNoise()

void CalibFrontEndInfo::set_GangedNoise ( int x)
inline

Definition at line 48 of file CalibFrontEndInfo.h.

◆ set_GangedRms()

void CalibFrontEndInfo::set_GangedRms ( int x)
inline

Definition at line 47 of file CalibFrontEndInfo.h.

47{m_GangedRms = x;}

◆ set_GangedThreshold()

void CalibFrontEndInfo::set_GangedThreshold ( int x)
inline

Definition at line 46 of file CalibFrontEndInfo.h.

◆ set_LongIntime()

void CalibFrontEndInfo::set_LongIntime ( int x)
inline

Definition at line 44 of file CalibFrontEndInfo.h.

44{m_LongIntime = x;}

◆ set_LongNoise()

void CalibFrontEndInfo::set_LongNoise ( int x)
inline

Definition at line 43 of file CalibFrontEndInfo.h.

43{m_LongNoise = x;}

◆ set_LongParams()

void CalibFrontEndInfo::set_LongParams ( const std::vector< float > & x)
inline

Definition at line 55 of file CalibFrontEndInfo.h.

◆ set_LongParamsQuality()

void CalibFrontEndInfo::set_LongParamsQuality ( const std::vector< float > & x)
inline

Definition at line 59 of file CalibFrontEndInfo.h.

◆ set_LongRms()

void CalibFrontEndInfo::set_LongRms ( int x)
inline

Definition at line 42 of file CalibFrontEndInfo.h.

42{m_LongRms = x;}

◆ set_LongThreshold()

void CalibFrontEndInfo::set_LongThreshold ( int x)
inline

Definition at line 41 of file CalibFrontEndInfo.h.

◆ set_MODid()

void CalibFrontEndInfo::set_MODid ( int x)
inline

Definition at line 33 of file CalibFrontEndInfo.h.

33{m_MODid = x;}

◆ set_NormalIntime()

void CalibFrontEndInfo::set_NormalIntime ( int x)
inline

Definition at line 39 of file CalibFrontEndInfo.h.

◆ set_NormalNoise()

void CalibFrontEndInfo::set_NormalNoise ( int x)
inline

Definition at line 38 of file CalibFrontEndInfo.h.

◆ set_NormalParams()

void CalibFrontEndInfo::set_NormalParams ( const std::vector< float > & x)
inline

Definition at line 54 of file CalibFrontEndInfo.h.

◆ set_NormalParamsQuality()

void CalibFrontEndInfo::set_NormalParamsQuality ( const std::vector< float > & x)
inline

Definition at line 58 of file CalibFrontEndInfo.h.

◆ set_NormalRms()

void CalibFrontEndInfo::set_NormalRms ( int x)
inline

Definition at line 37 of file CalibFrontEndInfo.h.

37{m_NormalRms = x;}

◆ set_NormalThreshold()

void CalibFrontEndInfo::set_NormalThreshold ( int x)
inline

Definition at line 36 of file CalibFrontEndInfo.h.

◆ set_SigParams()

void CalibFrontEndInfo::set_SigParams ( const std::vector< float > & x)
inline

Definition at line 56 of file CalibFrontEndInfo.h.

56{m_SigFitParams = x; }

◆ set_SigParamsQuality()

void CalibFrontEndInfo::set_SigParamsQuality ( const std::vector< float > & x)
inline

Definition at line 60 of file CalibFrontEndInfo.h.

◆ set_times_fitted()

void CalibFrontEndInfo::set_times_fitted ( int x)
inline

Definition at line 51 of file CalibFrontEndInfo.h.

Member Data Documentation

◆ m_FEid

int CalibFrontEndInfo::m_FEid = -1
private

Definition at line 101 of file CalibFrontEndInfo.h.

◆ m_GangedIntime

int CalibFrontEndInfo::m_GangedIntime = -1
private

Definition at line 116 of file CalibFrontEndInfo.h.

◆ m_GangedNoise

int CalibFrontEndInfo::m_GangedNoise = -1
private

Definition at line 115 of file CalibFrontEndInfo.h.

◆ m_GangedRms

int CalibFrontEndInfo::m_GangedRms = -1
private

Definition at line 114 of file CalibFrontEndInfo.h.

◆ m_GangedThreshold

int CalibFrontEndInfo::m_GangedThreshold = -1
private

Definition at line 113 of file CalibFrontEndInfo.h.

◆ m_LongFitParams

std::vector<float> CalibFrontEndInfo::m_LongFitParams = {0,0,0}
private

Definition at line 121 of file CalibFrontEndInfo.h.

121{0,0,0};

◆ m_LongFitParamsQuality

std::vector<float> CalibFrontEndInfo::m_LongFitParamsQuality = {0,0}
private

Definition at line 125 of file CalibFrontEndInfo.h.

125{0,0};

◆ m_LongIntime

int CalibFrontEndInfo::m_LongIntime = -1
private

Definition at line 111 of file CalibFrontEndInfo.h.

◆ m_LongNoise

int CalibFrontEndInfo::m_LongNoise = -1
private

Definition at line 110 of file CalibFrontEndInfo.h.

◆ m_LongRms

int CalibFrontEndInfo::m_LongRms = -1
private

Definition at line 109 of file CalibFrontEndInfo.h.

◆ m_LongThreshold

int CalibFrontEndInfo::m_LongThreshold = -1
private

Definition at line 108 of file CalibFrontEndInfo.h.

◆ m_MODid

int CalibFrontEndInfo::m_MODid = -1
private

Definition at line 100 of file CalibFrontEndInfo.h.

◆ m_MODid_str

std::string CalibFrontEndInfo::m_MODid_str = ""
private

Definition at line 97 of file CalibFrontEndInfo.h.

◆ m_NormalFitParams

std::vector<float> CalibFrontEndInfo::m_NormalFitParams = {0,0,0}
private

Definition at line 120 of file CalibFrontEndInfo.h.

120{0,0,0};

◆ m_NormalFitParamsQuality

std::vector<float> CalibFrontEndInfo::m_NormalFitParamsQuality = {0,0}
private

Definition at line 124 of file CalibFrontEndInfo.h.

124{0,0};

◆ m_NormalIntime

int CalibFrontEndInfo::m_NormalIntime = -1
private

Definition at line 106 of file CalibFrontEndInfo.h.

◆ m_NormalNoise

int CalibFrontEndInfo::m_NormalNoise = -1
private

Definition at line 105 of file CalibFrontEndInfo.h.

◆ m_NormalRms

int CalibFrontEndInfo::m_NormalRms = -1
private

Definition at line 104 of file CalibFrontEndInfo.h.

◆ m_NormalThreshold

int CalibFrontEndInfo::m_NormalThreshold = -1
private

Definition at line 103 of file CalibFrontEndInfo.h.

◆ m_RODid_str

std::string CalibFrontEndInfo::m_RODid_str = ""
private

Definition at line 98 of file CalibFrontEndInfo.h.

◆ m_SigFitParams

std::vector<float> CalibFrontEndInfo::m_SigFitParams = {0,0}
private

Definition at line 122 of file CalibFrontEndInfo.h.

122{0,0};

◆ m_SigFitParamsQuality

std::vector<float> CalibFrontEndInfo::m_SigFitParamsQuality = {0,0}
private

Definition at line 126 of file CalibFrontEndInfo.h.

126{0,0};

◆ m_times_fitted

int CalibFrontEndInfo::m_times_fitted = -1
private

Definition at line 118 of file CalibFrontEndInfo.h.


The documentation for this class was generated from the following files: