ATLAS Offline Software
CscStripStatus.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // CscClusterStatus.h
7 // Header file for class CscClusterStatus
9 // (c) ATLAS Detector software
11 // Class to implement ClusterStatus for Muon - CSC
13 // Woochun Park
15 
16 #ifndef MUONPREPRAWDATA_CSCSTRIPSTATUS_H
17 #define MUONPREPRAWDATA_CSCSTRIPSTATUS_H
18 
19 #include <string>
20 
21 namespace Muon {
24 
25  CscStrStatSuccess = 0, // succeeded parabola fit
26 
27  CscStrStatParabolaFailed = 1, // parabola fit failed aa>0
28 
29  CscStrStatHot = 2, // hot channel from DB.
30 
31  CscStrStatDead = 3, // dead channel from DB.
32 
33  CscStrStatSaturated = 4, // >4090 ADC
34 
35  CscStrStatStuckBit = 5, // from DB /STAT? What kind of values in STAT?
36 
37  CscStrStatNoBipolaShape = 6, // decided by chisquare with bipolar fit
38 
39  CscStrStatSomethingNew = 7, // decided by chisquare with bipolar fit
40 
41  // Do we need more??
42 
45  };
46 
48  inline std::string toString(CscStripStatus cstat) {
49  switch (cstat) {
50  case CscStrStatSuccess: return "unspoiled";
51  case CscStrStatParabolaFailed: return "parabolaFailed";
52  case CscStrStatHot: return "hotStrip";
53  case CscStrStatDead: return "deadStrip";
54  case CscStrStatSaturated: return "saturated";
55  case CscStrStatStuckBit: return "stuckbit";
56  case CscStrStatNoBipolaShape: return "nobipolarShape";
57  case CscStrStatSomethingNew: return "somethingNew";
58  case CscStrStatUndefined: return "undefined";
59  }
60  return "unknown";
61  }
62 
63 } // namespace Muon
64 
65 #endif
Muon::CscStrStatUndefined
@ CscStrStatUndefined
Undefined, should not happen, most likely indicates a problem.
Definition: CscStripStatus.h:44
Muon::CscStrStatSaturated
@ CscStrStatSaturated
Definition: CscStripStatus.h:33
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::CscStrStatHot
@ CscStrStatHot
Definition: CscStripStatus.h:29
Muon::CscStrStatDead
@ CscStrStatDead
Definition: CscStripStatus.h:31
Muon::toString
std::string toString(CscStripStatus cstat)
Return a string description of a CSC cluster status flag.
Definition: CscStripStatus.h:48
Muon::CscStrStatSuccess
@ CscStrStatSuccess
Definition: CscStripStatus.h:25
Muon::CscStrStatParabolaFailed
@ CscStrStatParabolaFailed
Definition: CscStripStatus.h:27
Muon::CscStripStatus
CscStripStatus
Enum to represent the strip status - see the specific enum values for more details.
Definition: CscStripStatus.h:23
Muon::CscStrStatStuckBit
@ CscStrStatStuckBit
Definition: CscStripStatus.h:35
Muon::CscStrStatSomethingNew
@ CscStrStatSomethingNew
Definition: CscStripStatus.h:39
Muon::CscStrStatNoBipolaShape
@ CscStrStatNoBipolaShape
Definition: CscStripStatus.h:37