CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalSeverityLevelAlgo.h
Go to the documentation of this file.
1 
9 #ifndef __EcalSeverityLevelAlgo_h_
10 #define __EcalSeverityLevelAlgo_h_
11 
16 
17 
18 #include <vector>
19 
31 class EcalRecHit;
32 class DetId;
33 
34 
36 
37 
38 public:
39 
40 
41  explicit EcalSeverityLevelAlgo(const edm::ParameterSet& p);
42 
43 
45 
49  const EcalRecHitCollection& rhs) const;
50 
51 
54 
55 
58 
59 private:
60 
61 
63 
66  std::vector<uint32_t> flagMask_;
67 
68 
70 
73  std::vector<uint32_t> dbstatusMask_;
74 
75 
77  float timeThresh_;
78 
80 };
81 
82 
83 #endif // __EcalSeverityLevelAlgo_h_
84 
85 // Configure (x)emacs for this file ...
86 // Local Variables:
87 // mode:c++
88 // compile-command: "cd ..; scram b -k"
89 // End:
EcalSeverityLevelAlgo(const edm::ParameterSet &p)
float timeThresh_
Return kTime only if the rechit is flagged kOutOfTime and E&gt;timeThresh_.
void setChannelStatus(const EcalChannelStatus &chs)
Set the ChannelStatus record.
std::vector< uint32_t > flagMask_
Configure which EcalRecHit::Flag is mapped into which EcalSeverityLevel.
Definition: DetId.h:18
const EcalChannelStatus * chStatus_
std::vector< uint32_t > dbstatusMask_
Configure which DBStatus::Flag is mapped into which EcalSeverityLevel.
EcalSeverityLevel::SeverityLevel severityLevel(const DetId &id, const EcalRecHitCollection &rhs) const
Evaluate status from id.