CMS 3D CMS Logo

EcalSeverityLevelAlgo.h
Go to the documentation of this file.
1 
9 #ifndef __EcalSeverityLevelAlgo_h_
10 #define __EcalSeverityLevelAlgo_h_
11 
16 
17 #include <vector>
18 
30 class EcalRecHit;
31 class DetId;
32 
34 public:
35  explicit EcalSeverityLevelAlgo(const edm::ParameterSet& p);
36 
39 
44 
47 
49  void setChannelStatus(const EcalChannelStatus& chs) { chStatus_ = &chs; }
50 
51 private:
53 
56  std::vector<uint32_t> flagMask_;
57 
59 
62  std::vector<uint32_t> dbstatusMask_;
63 
65  float timeThresh_;
66 
68 };
69 
70 #endif // __EcalSeverityLevelAlgo_h_
71 
72 // Configure (x)emacs for this file ...
73 // Local Variables:
74 // mode:c++
75 // compile-command: "cd ..; scram b -k"
76 // End:
EcalSeverityLevelAlgo(const edm::ParameterSet &p)
EcalSeverityLevel::SeverityLevel severityLevel(const DetId &id) const
Evaluate status from id use channelStatus from DB.
float timeThresh_
Return kTime only if the rechit is flagged kOutOfTime and E>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:17
const EcalChannelStatus * chStatus_
std::vector< uint32_t > dbstatusMask_
Configure which DBStatus::Flag is mapped into which EcalSeverityLevel.