ATLAS Offline Software
RpcCalibData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 #include <stdlib.h>
9 #include <iostream>
10 
11 namespace MuonCalib{
12  //constructor
14  {
15  setId(-9999);
16  setEff(-9999);
17  setErrEff(-9999);
18  setRes1(-9999);
19  setRes2(-9999);
20  setResX(-9999);
21  setErrRes1(-9999);
22  setErrRes2(-9999);
23  setErrResX(-9999);
24  setTime(-9999);
25  setErrTime(-9999);
26  setNoise(-9999);
27  setNoiseC(-9999);
28  setErrNoise(-9999);
29  setErrNoiseC(-9999);
30  setCs(-9999);
31  setErrCs(-9999);
32  }
33 
34 
35  //specific set functions
36 
37  void RpcCalibData::setId(int stripId){m_id=stripId;}
38  void RpcCalibData::setEff(float theEff){m_eff=theEff;}
39  void RpcCalibData::setErrEff(float theErrEff){m_errEff=theErrEff;}
40  void RpcCalibData::setRes1(float theRes1){m_res1=theRes1;}
41  void RpcCalibData::setRes2(float theRes2){m_res2=theRes2;}
42  void RpcCalibData::setResX(float theResX){m_resX=theResX;}
43  void RpcCalibData::setErrRes1(float theErrRes1){m_errRes1=theErrRes1;}
44  void RpcCalibData::setErrRes2(float theErrRes2){m_errRes2=theErrRes2;}
45  void RpcCalibData::setErrResX(float theErrResX){m_errResX=theErrResX;}
46  void RpcCalibData::setTime(float theTime){m_time=theTime;}
47  void RpcCalibData::setErrTime(float theErrTime){m_errTime=theErrTime;}
48  void RpcCalibData::setNoise(float theNoise){m_noise=theNoise;}
49  void RpcCalibData::setNoiseC(float theNoiseC){m_noiseC=theNoiseC;}
50  void RpcCalibData::setErrNoise(float theErrNoise){m_errNoise=theErrNoise;}
51  void RpcCalibData::setErrNoiseC(float theErrNoiseC){m_errNoiseC=theErrNoiseC;}
52  void RpcCalibData::setCs(float theCs){m_cs=theCs;}
53  void RpcCalibData::setErrCs(float theErrCs){m_errCs=theErrCs;}
54 
55 
56  //Get a parameter
57  //They have defaults, but the other database can be requested
58 
59  int RpcCalibData::getId() const {return(m_id); }
60  float RpcCalibData::getEff() const {return m_eff;}
61  float RpcCalibData::getErrEff() const {return m_errEff;}
62  float RpcCalibData::getRes1() const {return m_res1;}
63  float RpcCalibData::getRes2() const {return m_res2;}
64  float RpcCalibData::getResX() const {return m_resX;}
65  float RpcCalibData::getErrRes1() const {return m_errRes1;}
66  float RpcCalibData::getErrRes2() const {return m_errRes2;}
67  float RpcCalibData::getErrResX() const {return m_errResX;}
68  float RpcCalibData::getTime() const {return m_time;}
69  float RpcCalibData::getErrTime() const {return m_errTime;}
70  float RpcCalibData::getNoise() const {return m_noise;}
71  float RpcCalibData::getNoiseC() const {return m_noiseC;}
72  float RpcCalibData::getErrNoise() const {return m_errNoise;}
73  float RpcCalibData::getErrNoiseC() const {return m_errNoiseC;}
74  float RpcCalibData::getCs() const {return m_cs;}
75  float RpcCalibData::getErrCs() const {return m_errCs;}
76 
78  {
79  if (parType == RpcCondParType::EFF)
80  return(m_eff);
81  else if(parType == RpcCondParType::ERREFF)
82  return(m_errEff);
83  else if(parType == RpcCondParType::RES1)
84  return(m_res1);
85  else if(parType == RpcCondParType::RES2)
86  return(m_res2);
87  else if (parType == RpcCondParType::RESX)
88  return(m_resX);
89  else if(parType == RpcCondParType::ERRRES1)
90  return(m_errRes1);
91  else if(parType == RpcCondParType::ERRRES2)
92  return(m_errRes2);
93  else if (parType == RpcCondParType::ERRRESX)
94  return(m_errResX);
95  else if(parType == RpcCondParType::TIME)
96  return(m_time);
97  else if(parType == RpcCondParType::ERRTIME)
98  return(m_errTime);
99  else if (parType == RpcCondParType::NOISE)
100  return(m_noise);
101  else if (parType == RpcCondParType::NOISEC)
102  return(m_noiseC);
103  else if (parType == RpcCondParType::ERRNOISE)
104  return(m_errNoise);
105  else if (parType == RpcCondParType::ERRNOISEC)
106  return(m_errNoiseC);
107  else if (parType == RpcCondParType::CS)
108  return(m_cs);
109  else if (parType == RpcCondParType::ERRCS)
110  return(m_errCs);
111 
112  return(-9999); //Didn't provide a valid parameter type
113  }
114 }// End namespace MuonCalib
MuonCalib::RpcCalibData::getErrNoiseC
float getErrNoiseC() const
Definition: RpcCalibData.cxx:73
MuonCalib::RpcCalibData::setRes1
void setRes1(float theRes1)
Definition: RpcCalibData.cxx:40
MuonCalib::RpcCalibData::getRes2
float getRes2() const
Definition: RpcCalibData.cxx:63
MuonCalib::RpcCalibData::m_errTime
float m_errTime
Definition: RpcCalibData.h:83
MuonCalib::RpcCondParType::RES2
@ RES2
Definition: RpcCondParType.h:14
MuonCalib::RpcCalibData::setErrEff
void setErrEff(float theErrEff)
Definition: RpcCalibData.cxx:39
MuonCalib::RpcCalibData::setNoiseC
void setNoiseC(float theNoiseC)
Definition: RpcCalibData.cxx:49
MuonCalib::RpcCalibData::getErrResX
float getErrResX() const
Definition: RpcCalibData.cxx:67
MuonCalib::RpcCalibData::getErrRes1
float getErrRes1() const
Definition: RpcCalibData.cxx:65
MuonCalib::RpcCondParType::NOISE
@ NOISE
Definition: RpcCondParType.h:17
MuonCalib::RpcCalibData::setErrTime
void setErrTime(float theErrTime)
Definition: RpcCalibData.cxx:47
MuonCalib::RpcCalibData::setEff
void setEff(float theEff)
Definition: RpcCalibData.cxx:38
MuonCalib::RpcCalibData::getErrRes2
float getErrRes2() const
Definition: RpcCalibData.cxx:66
MuonCalib::RpcCalibData::getTime
float getTime() const
Definition: RpcCalibData.cxx:68
MuonCalib::RpcCalibData::m_errNoise
float m_errNoise
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::getNoise
float getNoise() const
Definition: RpcCalibData.cxx:70
MuonCalib::RpcCalibData::RpcCalibData
RpcCalibData()
Definition: RpcCalibData.cxx:13
MuonCalib::RpcCondParType
Definition: RpcCondParType.h:9
MuonCalib::RpcCalibData::setTime
void setTime(float theTime)
Definition: RpcCalibData.cxx:46
MuonCalib::RpcCondParType::ERRNOISE
@ ERRNOISE
Definition: RpcCondParType.h:17
MuonCalib::RpcCalibData::getParameter
float getParameter(RpcCondParType parType) const
Definition: RpcCalibData.cxx:77
MuonCalib::RpcCalibData::getErrEff
float getErrEff() const
Definition: RpcCalibData.cxx:61
MuonCalib::RpcCalibData::setNoise
void setNoise(float theNoise)
Definition: RpcCalibData.cxx:48
MuonCalib::RpcCalibData::m_res2
float m_res2
Definition: RpcCalibData.h:83
MuonCalib::RpcCondParType::RESX
@ RESX
Definition: RpcCondParType.h:15
MuonCalib::RpcCalibData::m_eff
float m_eff
Definition: RpcCalibData.h:83
MuonCalib::RpcCondParType::CS
@ CS
Definition: RpcCondParType.h:19
MuonCalib::RpcCalibData::getId
int getId() const
Definition: RpcCalibData.cxx:59
MuonCalib::RpcCalibData::m_errRes2
float m_errRes2
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::setResX
void setResX(float theResX)
Definition: RpcCalibData.cxx:42
MuonCalib::RpcCalibData::getRes1
float getRes1() const
Definition: RpcCalibData.cxx:62
MuonCalib::RpcCondParType::NOISEC
@ NOISEC
Definition: RpcCondParType.h:18
MuonCalib::RpcCalibData::m_time
float m_time
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::setErrNoise
void setErrNoise(float theErrNoise)
Definition: RpcCalibData.cxx:50
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::RpcCalibData::m_errResX
float m_errResX
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::m_errCs
float m_errCs
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::m_errRes1
float m_errRes1
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::getEff
float getEff() const
Definition: RpcCalibData.cxx:60
RpcCondParType.h
MuonCalib::RpcCondParType::ERRNOISEC
@ ERRNOISEC
Definition: RpcCondParType.h:18
MuonCalib::RpcCondParType::ERRRES2
@ ERRRES2
Definition: RpcCondParType.h:14
MuonCalib::RpcCalibData::m_noiseC
float m_noiseC
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::m_cs
float m_cs
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::getResX
float getResX() const
Definition: RpcCalibData.cxx:64
MuonCalib::RpcCalibData::getErrCs
float getErrCs() const
Definition: RpcCalibData.cxx:75
MuonCalib::RpcCalibData::m_errNoiseC
float m_errNoiseC
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::m_id
int m_id
Definition: RpcCalibData.h:82
MuonCalib::RpcCalibData::setRes2
void setRes2(float theRes2)
Definition: RpcCalibData.cxx:41
MuonCalib::RpcCalibData::getErrNoise
float getErrNoise() const
Definition: RpcCalibData.cxx:72
MuonCalib::RpcCondParType::TIME
@ TIME
Definition: RpcCondParType.h:16
MuonCalib::RpcCalibData::setErrRes2
void setErrRes2(float theErrRes2)
Definition: RpcCalibData.cxx:44
MuonCalib::RpcCalibData::getCs
float getCs() const
Definition: RpcCalibData.cxx:74
MuonCalib::RpcCalibData::setErrResX
void setErrResX(float theErrResX)
Definition: RpcCalibData.cxx:45
MuonCalib::RpcCalibData::setErrNoiseC
void setErrNoiseC(float theErrNoiseC)
Definition: RpcCalibData.cxx:51
MuonCalib::RpcCondParType::ERRRESX
@ ERRRESX
Definition: RpcCondParType.h:15
RpcCalibData.h
MuonCalib::RpcCondParType::ERRCS
@ ERRCS
Definition: RpcCondParType.h:19
MuonCalib::RpcCalibData::getNoiseC
float getNoiseC() const
Definition: RpcCalibData.cxx:71
MuonCalib::RpcCondParType::ERREFF
@ ERREFF
Definition: RpcCondParType.h:12
MuonCalib::RpcCondParType::EFF
@ EFF
Definition: RpcCondParType.h:12
MuonCalib::RpcCalibData::m_resX
float m_resX
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::setCs
void setCs(float theCs)
Definition: RpcCalibData.cxx:52
MuonCalib::RpcCalibData::m_errEff
float m_errEff
Definition: RpcCalibData.h:83
MuonCalib::RpcCondParType::ERRTIME
@ ERRTIME
Definition: RpcCondParType.h:16
MuonCalib::RpcCalibData::setErrRes1
void setErrRes1(float theErrRes1)
Definition: RpcCalibData.cxx:43
MuonCalib::RpcCalibData::setId
void setId(int stripId)
Definition: RpcCalibData.cxx:37
MuonCalib::RpcCalibData::getErrTime
float getErrTime() const
Definition: RpcCalibData.cxx:69
MuonCalib::RpcCondParType::ERRRES1
@ ERRRES1
Definition: RpcCondParType.h:13
MuonCalib::RpcCalibData::m_res1
float m_res1
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::m_noise
float m_noise
Definition: RpcCalibData.h:83
MuonCalib::RpcCalibData::setErrCs
void setErrCs(float theErrCs)
Definition: RpcCalibData.cxx:53
MuonCalib::RpcCondParType::RES1
@ RES1
Definition: RpcCondParType.h:13