ATLAS Offline Software
CscCondParType.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 CSCCONDPARTYPE_H
6 #define CSCCONDPARTYPE_H
7 
8 namespace MuonCalib {
9  class CscCondParType {
10  public:
11  //Note that some software expects all flags STAT to be status flag related
12  enum {
13  GAIN, //Gas gain
14  PULSE_SLOPE, //relative strip fc/ADC gain determined from pulser
15  RUN_SLOPE, //relative strip fc/AD gain determined from normal data run
16  PED, //Pedestal mean
17  NOISE, //Pedestal sigma
18  THOLD, //Threshold
19  PEAKT, //Peaking time
20  WIDTH, //Bipolar shape width
21  SAT1, //Saturation parameter 1
22  SAT2, //Saturation parameter 2
23  PEAKC, //Peak charge
24  SAMPLE_TIME_RATIO, //Boolean info
25  OCCUPANCY, //integer occupancy
26  STAT, //Status Flag. Partial status flag bits must be higher than this
27  HOT_STAT, //Hot channel
28  DEAD_STAT, //Dead channel
29  PULSE_STAT, //pulser problem
30  CALIB_STAT, //calibration problem
31  SAT_STAT //sturation problem
32  };
34  CscCondParType(const unsigned int & t);
36 
37  CscCondParType& operator=(unsigned int t);
39 
40  operator unsigned int() const;
41 
42  private:
43  int m_type;
44 
45  };
46 
48 
49  inline CscCondParType::CscCondParType(const unsigned int & t) {
50  m_type = t;
51  }
52 
54  m_type = t;
55  }
56 
57  inline CscCondParType & CscCondParType::operator=(unsigned int t) {
58  m_type = t;
59  return *this;
60  }
61 
63  m_type = t;
64  return *this;
65  }
66 
67  inline CscCondParType::operator unsigned int() const {
68  return m_type;
69  }
70 
71  inline std::ostream & operator<< (std::ostream& s , const CscCondParType& type) {
72  switch(type) {
73 
74  case CscCondParType::GAIN :
75  return s << "GAIN";
77  return s << "PULSE_SLOPE";
79  return s << "RUN_SLOPE";
80  case CscCondParType::PED :
81  return s << "PED";
82  case CscCondParType::NOISE :
83  return s << "NOISE";
84  case CscCondParType::THOLD :
85  return s << "THOLD";
87  return s << "PEAKT";
89  return s << "WIDTH";
91  return s << "SAT1";
93  return s << "SAT2";
94  case CscCondParType::PEAKC :
95  return s << "PEAKC";
97  return s << "SAMPLE_TIME_RATIO";
99  return s << "OCCUPANCY";
100  case CscCondParType::STAT :
101  return s << "STAT";
103  return s << "HOT_STAT";
105  return s << "DEAD_STAT";
107  return s << "PULSE_STAT";
109  return s << "SAT_STAT";
110  default:
111  return s << "UNKNOWN";
112  };
113  }
114 }
115 #endif
MuonCalib::CscCondParType::HOT_STAT
@ HOT_STAT
Definition: CscCondParType.h:27
MuonCalib::CscCondParType::CALIB_STAT
@ CALIB_STAT
Definition: CscCondParType.h:30
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
MuonCalib::CscCondParType::PULSE_SLOPE
@ PULSE_SLOPE
Definition: CscCondParType.h:14
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
MuonCalib::CscCondParType::WIDTH
@ WIDTH
Definition: CscCondParType.h:20
MuonCalib::CscCondParType::PULSE_STAT
@ PULSE_STAT
Definition: CscCondParType.h:29
MuonCalib::CscCondParType::NOISE
@ NOISE
Definition: CscCondParType.h:17
MuonCalib::CscCondParType::OCCUPANCY
@ OCCUPANCY
Definition: CscCondParType.h:25
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
MuonCalib::CscCondParType::CscCondParType
CscCondParType()
Definition: CscCondParType.h:47
m_type
TokenType m_type
the type
Definition: TProperty.cxx:44
MuonCalib::CscCondParType::GAIN
@ GAIN
Definition: CscCondParType.h:13
MuonCalib::CscCondParType::RUN_SLOPE
@ RUN_SLOPE
Definition: CscCondParType.h:15
MuonCalib::operator<<
std::ostream & operator<<(std::ostream &os, const RtFullInfo &data)
Definition: RtFullInfo.cxx:13
MuonCalib::CscCondParType::SAT2
@ SAT2
Definition: CscCondParType.h:22
MuonCalib::CscCondParType::PEAKT
@ PEAKT
Definition: CscCondParType.h:19
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::CscCondParType::PEAKC
@ PEAKC
Definition: CscCondParType.h:23
MuonCalib::CscCondParType::operator=
CscCondParType & operator=(unsigned int t)
Definition: CscCondParType.h:57
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MuonCalib::CscCondParType::m_type
int m_type
Definition: CscCondParType.h:43
MuonCalib::CscCondParType::STAT
@ STAT
Definition: CscCondParType.h:26
MuonCalib::CscCondParType::DEAD_STAT
@ DEAD_STAT
Definition: CscCondParType.h:28
MuonCalib::CscCondParType::SAMPLE_TIME_RATIO
@ SAMPLE_TIME_RATIO
Definition: CscCondParType.h:24
MuonCalib::CscCondParType::PED
@ PED
Definition: CscCondParType.h:16
MuonCalib::CscCondParType::SAT1
@ SAT1
Definition: CscCondParType.h:21
MuonCalib::CscCondParType
Definition: CscCondParType.h:9
MuonCalib::CscCondParType::SAT_STAT
@ SAT_STAT
Definition: CscCondParType.h:31
MuonCalib::CscCondParType::THOLD
@ THOLD
Definition: CscCondParType.h:18