ATLAS Offline Software
MuonCalib/CscCalib/CscCalibEvent/CscCalibEvent/CscCalibData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CSCCALIBEVENT_CSCCALIBDATA_H
6 #define CSCCALIBEVENT_CSCCALIBDATA_H
7 
8 /**************************************************************************
9 Package: MuonSpectrometer/MuonCalib/CscCalib/CscCalibEvent
10 Name: CscCalibdata.h
11 Author: Ketevi A. Assamagan
12 Date & Place: October 03, 2005, BNL
13 
14 Class to represent CSC pulser calibration data for one strip
15 ****************************************************************************/
16 
17 #include <vector>
18 
19 class CscCalibData {
20 
21 private:
22 
23  /* hash it of the the strip */
24  int m_idHash;
25 
26  /* strip calibration constants */
27  std::vector<float> m_calibConst;
28 
29 public:
30 
31  /* default constructor */
32  CscCalibData() : m_idHash(0) {}
33 
34  /* full constructor */
35  CscCalibData(int hashId, const std::vector<float>& calibConst) :
36  m_idHash(hashId), m_calibConst(calibConst) {}
37 
38  /* destructor */
39  virtual ~CscCalibData() {}
40 
41  /* set the identifier hash */
42  void set_idHash(const int idHash) { m_idHash = idHash; }
43 
44  /* set the calibration constants */
45  void set_calibConst (const std::vector<float>& calibConst) { m_calibConst = calibConst; }
46 
47  /* get the identifier hash */
48  int idHash() { return m_idHash; }
49 
50  /* get the calibration constants */
51  const std::vector<float> & calibConst() { return m_calibConst; }
52 
54  CscCalibData( const CscCalibData& rhs );
55 
57  CscCalibData& operator =( const CscCalibData& rhs );
58 
59 };
60 
61 #endif
CscCalibData
Definition: MuonCalib/CscCalib/CscCalibEvent/CscCalibEvent/CscCalibData.h:19
CscCalibData::calibConst
const std::vector< float > & calibConst()
Definition: MuonCalib/CscCalib/CscCalibEvent/CscCalibEvent/CscCalibData.h:58
CscCalibData::m_idHash
int m_idHash
Definition: MuonCalib/CscCalib/CscCalibEvent/CscCalibEvent/CscCalibData.h:31
CscCalibData::operator=
CscCalibData & operator=(const CscCalibData &rhs)
Assignement operator.
Definition: CscCalibData.cxx:20
CscCalibData::set_idHash
void set_idHash(const int idHash)
Definition: MuonCalib/CscCalib/CscCalibEvent/CscCalibEvent/CscCalibData.h:49
CscCalibData::idHash
int idHash()
Definition: MuonCalib/CscCalib/CscCalibEvent/CscCalibEvent/CscCalibData.h:55
CscCalibData::set_calibConst
void set_calibConst(const std::vector< float > &calibConst)
Definition: MuonCalib/CscCalib/CscCalibEvent/CscCalibEvent/CscCalibData.h:52
CscCalibData::m_calibConst
std::vector< float > m_calibConst
Definition: MuonCalib/CscCalib/CscCalibEvent/CscCalibEvent/CscCalibData.h:34
CscCalibData::~CscCalibData
virtual ~CscCalibData()
Definition: MuonCalib/CscCalib/CscCalibEvent/CscCalibEvent/CscCalibData.h:46
CscCalibData::CscCalibData
CscCalibData()
Definition: MuonCalib/CscCalib/CscCalibEvent/CscCalibEvent/CscCalibData.h:39