RecoLocalCalo
EcalRecAlgos
interface
EcalSeverityLevelAlgo.h
Go to the documentation of this file.
1
9
#ifndef __EcalSeverityLevelAlgo_h_
10
#define __EcalSeverityLevelAlgo_h_
11
12
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
13
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
14
#include "
DataFormats/EcalRecHit/interface/EcalSeverityLevel.h
"
15
#include "
CondFormats/EcalObjects/interface/EcalChannelStatus.h
"
16
17
#include <vector>
18
30
class
EcalRecHit
;
31
class
DetId
;
32
33
class
EcalSeverityLevelAlgo
{
34
public
:
35
explicit
EcalSeverityLevelAlgo
(
const
edm::ParameterSet
&
p
);
36
38
EcalSeverityLevel::SeverityLevel
severityLevel
(
const
DetId
&
id
)
const
;
39
43
EcalSeverityLevel::SeverityLevel
severityLevel
(
const
DetId
&
id
,
const
EcalRecHitCollection
& rhs)
const
;
44
46
EcalSeverityLevel::SeverityLevel
severityLevel
(
const
EcalRecHit
& rh)
const
;
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
67
const
EcalChannelStatus
*
chStatus_
;
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
edm::SortedCollection< EcalRecHit >
EcalCondObjectContainer
Definition:
EcalCondObjectContainer.h:13
EcalRecHitCollections.h
EcalSeverityLevel.h
DetId
Definition:
DetId.h:17
edm::ParameterSet
Definition:
ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
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
Generated for CMSSW Reference Manual by
1.8.16