ATLAS Offline Software
RpcCondParType.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 RPCCONDPARTYPE_H
6 #define RPCCONDPARTYPE_H
7 
8 namespace MuonCalib {
9  class RpcCondParType {
10  public:
11  enum {
12  EFF,ERREFF, // strip efficiency
13  RES1,ERRRES1, // residuals of clusters with size 1
14  RES2,ERRRES2, // residuals of clusters with size 2
15  RESX,ERRRESX, // residuals of clusters with other sizes
16  TIME,ERRTIME, // time of clusters
17  NOISE,ERRNOISE, // noise
18  NOISEC,ERRNOISEC, // correlated noise
19  CS,ERRCS // cluster size
20  };
21 
23  RpcCondParType(const unsigned int & t);
25 
26  RpcCondParType& operator=(unsigned int t);
28 
29  operator unsigned int() const;
30 
31  private:
32  int m_type;
33 
34  };
35 
37 
38  inline RpcCondParType::RpcCondParType(const unsigned int & t) {
39  m_type = t;
40  }
41 
43  m_type = t;
44  }
45 
46  inline RpcCondParType & RpcCondParType::operator=(unsigned int t) {
47  m_type = t;
48  return *this;
49  }
50 
52  m_type = t;
53  return *this;
54  }
55 
56  inline RpcCondParType::operator unsigned int() const {
57  return m_type;
58  }
59 
60  inline std::ostream & operator<< (std::ostream& s , const RpcCondParType& type) {
61  switch(type) {
62 
63  case RpcCondParType::EFF :
64  return s << "EFF";
66  return s << "ERREFF";
67  case RpcCondParType::RES1 :
68  return s << "RES1";
69  case RpcCondParType::RES2 :
70  return s << "RES2";
71  case RpcCondParType::RESX :
72  return s << "RESX";
74  return s << "ERRRES1";
76  return s << "ERRRES2";
78  return s << "ERRRESX";
80  return s << "TIME";
82  return s << "ERRTIME";
84  return s << "NOISE";
86  return s << "NOISEC";
88  return s << "ERRNOISE";
90  return s << "ERRNOISEC";
91  default:
92  return s << "UNKNOWN";
93  };
94  }
95 }
96 #endif
MuonCalib::RpcCondParType::m_type
int m_type
Definition: RpcCondParType.h:32
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
MuonCalib::RpcCondParType::RES2
@ RES2
Definition: RpcCondParType.h:14
MuonCalib::RpcCondParType::RpcCondParType
RpcCondParType()
Definition: RpcCondParType.h:36
MuonCalib::RpcCondParType::NOISE
@ NOISE
Definition: RpcCondParType.h:17
MuonCalib::RpcCondParType
Definition: RpcCondParType.h:9
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
MuonCalib::RpcCondParType::ERRNOISE
@ ERRNOISE
Definition: RpcCondParType.h:17
m_type
TokenType m_type
the type
Definition: TProperty.cxx:44
MuonCalib::RpcCondParType::RESX
@ RESX
Definition: RpcCondParType.h:15
MuonCalib::RpcCondParType::CS
@ CS
Definition: RpcCondParType.h:19
MuonCalib::RpcCondParType::NOISEC
@ NOISEC
Definition: RpcCondParType.h:18
MuonCalib::operator<<
std::ostream & operator<<(std::ostream &os, const RtFullInfo &data)
Definition: RtFullInfo.cxx:13
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::RpcCondParType::ERRNOISEC
@ ERRNOISEC
Definition: RpcCondParType.h:18
MuonCalib::RpcCondParType::ERRRES2
@ ERRRES2
Definition: RpcCondParType.h:14
MuonCalib::RpcCondParType::TIME
@ TIME
Definition: RpcCondParType.h:16
MuonCalib::RpcCondParType::ERRRESX
@ ERRRESX
Definition: RpcCondParType.h:15
MuonCalib::RpcCondParType::ERRCS
@ ERRCS
Definition: RpcCondParType.h:19
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MuonCalib::RpcCondParType::ERREFF
@ ERREFF
Definition: RpcCondParType.h:12
MuonCalib::RpcCondParType::EFF
@ EFF
Definition: RpcCondParType.h:12
MuonCalib::RpcCondParType::ERRTIME
@ ERRTIME
Definition: RpcCondParType.h:16
MuonCalib::RpcCondParType::ERRRES1
@ ERRRES1
Definition: RpcCondParType.h:13
MuonCalib::RpcCondParType::RES1
@ RES1
Definition: RpcCondParType.h:13
MuonCalib::RpcCondParType::operator=
RpcCondParType & operator=(unsigned int t)
Definition: RpcCondParType.h:46