ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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  {}

◆ ~ 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.

82 {return m_GangedIntime; };

◆ gangNoise()

int CalibFrontEndInfo::gangNoise ( ) const
inline

Definition at line 81 of file CalibFrontEndInfo.h.

81 {return m_GangedNoise; };

◆ 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.

79 {return m_GangedThreshold; };

◆ 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.

74 {return m_LongThreshold; };

◆ 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.

72 {return m_NormalIntime; };

◆ normNoise()

int CalibFrontEndInfo::normNoise ( ) const
inline

Definition at line 71 of file CalibFrontEndInfo.h.

71 {return m_NormalNoise; };

◆ 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.

69 {return m_NormalThreshold; };

◆ 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 };

◆ 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;}

◆ set_GangedIntime()

void CalibFrontEndInfo::set_GangedIntime ( int  x)
inline

Definition at line 49 of file CalibFrontEndInfo.h.

49 {m_GangedIntime = x;}

◆ set_GangedNoise()

void CalibFrontEndInfo::set_GangedNoise ( int  x)
inline

Definition at line 48 of file CalibFrontEndInfo.h.

48 {m_GangedNoise = x;}

◆ 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.

55 {m_LongFitParams = x; }

◆ 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.

41 {m_LongThreshold = x;}

◆ 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.

39 {m_NormalIntime = x;}

◆ set_NormalNoise()

void CalibFrontEndInfo::set_NormalNoise ( int  x)
inline

Definition at line 38 of file CalibFrontEndInfo.h.

38 {m_NormalNoise = x;}

◆ set_NormalParams()

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

Definition at line 54 of file CalibFrontEndInfo.h.

54 {m_NormalFitParams = x; }

◆ 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.

51 {m_times_fitted = x;}

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.

◆ m_LongFitParamsQuality

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

Definition at line 125 of file CalibFrontEndInfo.h.

◆ 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.

◆ m_NormalFitParamsQuality

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

Definition at line 124 of file CalibFrontEndInfo.h.

◆ 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.

◆ m_SigFitParamsQuality

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

Definition at line 126 of file CalibFrontEndInfo.h.

◆ 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:
CalibFrontEndInfo::m_NormalFitParams
std::vector< float > m_NormalFitParams
Definition: CalibFrontEndInfo.h:120
CalibFrontEndInfo::m_MODid_str
std::string m_MODid_str
Definition: CalibFrontEndInfo.h:97
CalibFrontEndInfo::printVals
void printVals() const
Definition: CalibFrontEndInfo.cxx:70
CalibFrontEndInfo::FEid
int FEid() const
Definition: CalibFrontEndInfo.h:65
CalibFrontEndInfo::m_FEid
int m_FEid
Definition: CalibFrontEndInfo.h:101
CalibFrontEndInfo::m_LongFitParams
std::vector< float > m_LongFitParams
Definition: CalibFrontEndInfo.h:121
x
#define x
CalibFrontEndInfo::m_RODid_str
std::string m_RODid_str
Definition: CalibFrontEndInfo.h:98
CalibFrontEndInfo::m_LongIntime
int m_LongIntime
Definition: CalibFrontEndInfo.h:111
CalibFrontEndInfo::m_LongNoise
int m_LongNoise
Definition: CalibFrontEndInfo.h:110
CalibFrontEndInfo::MODid_str
const std::string & MODid_str() const
Definition: CalibFrontEndInfo.h:66
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::m_LongThreshold
int m_LongThreshold
Definition: CalibFrontEndInfo.h:108
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::m_GangedRms
int m_GangedRms
Definition: CalibFrontEndInfo.h:114
CalibFrontEndInfo::m_LongRms
int m_LongRms
Definition: CalibFrontEndInfo.h:109
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
CalibFrontEndInfo::m_NormalIntime
int m_NormalIntime
Definition: CalibFrontEndInfo.h:106
CalibFrontEndInfo::m_NormalThreshold
int m_NormalThreshold
Definition: CalibFrontEndInfo.h:103
CalibFrontEndInfo::m_NormalFitParamsQuality
std::vector< float > m_NormalFitParamsQuality
Definition: CalibFrontEndInfo.h:124
error
Definition: IImpactPoint3dEstimator.h:70
CalibFrontEndInfo::m_GangedThreshold
int m_GangedThreshold
Definition: CalibFrontEndInfo.h:113
CalibFrontEndInfo::m_LongFitParamsQuality
std::vector< float > m_LongFitParamsQuality
Definition: CalibFrontEndInfo.h:125
PlotCalibFromCool.vals
vals
Definition: PlotCalibFromCool.py:474