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::setChannelStatus
void setChannelStatus(const EcalChannelStatus &chs)
Set the ChannelStatus record.
Definition: EcalSeverityLevelAlgo.h:49
EcalSeverityLevelAlgo
Definition: EcalSeverityLevelAlgo.h:33
EcalRecHit
Definition: EcalRecHit.h:15
EcalSeverityLevelAlgo::dbstatusMask_
std::vector< uint32_t > dbstatusMask_
Configure which DBStatus::Flag is mapped into which EcalSeverityLevel.
Definition: EcalSeverityLevelAlgo.h:62
EcalSeverityLevelAlgo::severityLevel
EcalSeverityLevel::SeverityLevel severityLevel(const DetId &id) const
Evaluate status from id use channelStatus from DB.
Definition: EcalSeverityLevelAlgo.cc:85
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::SortedCollection< EcalRecHit >
EcalCondObjectContainer< EcalChannelStatusCode >
EcalRecHitCollections.h
EcalSeverityLevel.h
DetId
Definition: DetId.h:17
edm::ParameterSet
Definition: ParameterSet.h:36
EcalSeverityLevelAlgo::flagMask_
std::vector< uint32_t > flagMask_
Configure which EcalRecHit::Flag is mapped into which EcalSeverityLevel.
Definition: EcalSeverityLevelAlgo.h:56
EcalSeverityLevelAlgo::timeThresh_
float timeThresh_
Return kTime only if the rechit is flagged kOutOfTime and E>timeThresh_.
Definition: EcalSeverityLevelAlgo.h:65
EcalSeverityLevel::SeverityLevel
SeverityLevel
Definition: EcalSeverityLevel.h:18
EcalSeverityLevelAlgo::EcalSeverityLevelAlgo
EcalSeverityLevelAlgo(const edm::ParameterSet &p)
Definition: EcalSeverityLevelAlgo.cc:21
Frameworkfwd.h
EcalSeverityLevelAlgo::chStatus_
const EcalChannelStatus * chStatus_
Definition: EcalSeverityLevelAlgo.h:67
EcalChannelStatus.h