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 
46 
47 
52  const EcalRecHitCollection& rhs) const;
53 
54 
57 
58 
61 
62 private:
63 
64 
66 
69  std::vector<uint32_t> flagMask_;
70 
71 
73 
76  std::vector<uint32_t> dbstatusMask_;
77 
78 
80  float timeThresh_;
81 
83 };
84 
85 
86 #endif // __EcalSeverityLevelAlgo_h_
87 
88 // Configure (x)emacs for this file ...
89 // Local Variables:
90 // mode:c++
91 // compile-command: "cd ..; scram b -k"
92 // 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&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.