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 
10 #ifndef __EcalSeverityLevelAlgo_h_
11 #define __EcalSeverityLevelAlgo_h_
12 
17 
18 
19 #include <vector>
20 
32 class EcalRecHit;
33 class DetId;
34 
35 
37 
38 
39 public:
40 
41 
42  explicit EcalSeverityLevelAlgo(const edm::ParameterSet& p);
43 
44 
46 
50  const EcalRecHitCollection& rhs) const;
51 
52 
55 
56 
59 
60 private:
61 
62 
64 
67  std::vector<uint32_t> flagMask_;
68 
69 
71 
74  std::vector<uint32_t> dbstatusMask_;
75 
76 
78  float timeThresh_;
79 
81 };
82 
83 
84 #endif // __EcalSeverityLevelAlgo_h_
85 
86 // Configure (x)emacs for this file ...
87 // Local Variables:
88 // mode:c++
89 // compile-command: "cd ..; scram b -k"
90 // 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:20
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.