ATLAS Offline Software
CscCalibResult.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CSCCALIBDATA_CSCCALIBRESULT_H
6 #define CSCCALIBDATA_CSCCALIBRESULT_H
7 
8 /**************************************************************************
9 Package: MuonSpectrometer/MuonCalib/CscCalib/CscCalibData
10 Name: CscCalibData.h
11 Author: Caleb Parnell-Lampen
12 Date & Place: April 30, 2008, University of Arizona
13 
14 Class to represent CSC calibration results
15  ****************************************************************************/
16 
17 
19 {
20  private:
21 
22  /* hash it of the the strip */
23  int m_hashId;
24 
25  /* strip calibration constants */
26  float m_value, m_error, m_chi2;
27  int m_ndf;
28 
29  public:
30 
31  /* default constructor */
32  CscCalibResult() { }
33 
34  /* full constructor */
35  CscCalibResult(int hashId, float value, float error = -9999, float chi2 = -9999, int ndf = -9999) :
37 
38  /* destructor */
39  virtual ~CscCalibResult() {}
40 
41 
42  /* set the calibration constants */
43  void setValue (const float value);
44  void setError (const float error);
45  void setChi2 (const float chi2) ;
46  void setNdf (const int ndf);
47  void setHashId(const int hashId);
48 
49  /* get the identifier hash */
50  int hashId() const;
51 
52  /* get the calibration constants */
53  float value() const;
54  float error() const;
55  float chi2() const;
56  int ndf() const;
57 };
58 
59 #endif
CscCalibResult::setNdf
void setNdf(const int ndf)
Definition: CscCalibResult.cxx:35
CscCalibResult::setHashId
void setHashId(const int hashId)
Definition: CscCalibResult.cxx:36
CscCalibResult
Definition: CscCalibResult.h:19
CscCalibResult::error
float error() const
Definition: CscCalibResult.cxx:43
CscCalibResult::m_ndf
int m_ndf
Definition: CscCalibResult.h:34
CscCalibResult::setValue
void setValue(const float value)
Definition: CscCalibResult.cxx:32
CscCalibResult::m_error
float m_error
Definition: CscCalibResult.h:33
CscCalibResult::m_hashId
int m_hashId
Definition: CscCalibResult.h:30
CscCalibResult::ndf
int ndf() const
Definition: CscCalibResult.cxx:45
CscCalibResult::setError
void setError(const float error)
Definition: CscCalibResult.cxx:33
CscCalibResult::m_value
float m_value
Definition: CscCalibResult.h:33
CscCalibResult::setChi2
void setChi2(const float chi2)
Definition: CscCalibResult.cxx:34
CscCalibResult::m_chi2
float m_chi2
Definition: CscCalibResult.h:33
CscCalibResult::CscCalibResult
CscCalibResult()
Definition: CscCalibResult.h:39
CscCalibResult::hashId
int hashId() const
Definition: CscCalibResult.cxx:39
CscCalibResult::chi2
float chi2() const
Definition: CscCalibResult.cxx:44
error
Definition: IImpactPoint3dEstimator.h:70
CscCalibResult::~CscCalibResult
virtual ~CscCalibResult()
Definition: CscCalibResult.h:46
CscCalibResult::value
float value() const
Definition: CscCalibResult.cxx:42