CalibMuon
DTCalibration
plugins
DTTPDeadWriter.h
Go to the documentation of this file.
1
#ifndef DTTPDeadWriter_H
2
#define DTTPDeadWriter_H
3
4
/* Class to find test-pulse dead channels from a t0 databases:
5
* wires without t0 value are tp-dead.
6
7
* \author S. Bolognesi
8
*/
9
10
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
11
#include "
Geometry/DTGeometry/interface/DTGeometry.h
"
12
#include "
FWCore/Framework/interface/ESHandle.h
"
13
14
#include <string>
15
16
namespace
edm
{
17
class
ParameterSet
;
18
class
Event
;
19
class
EventSetup
;
20
}
// namespace edm
21
22
class
DTT0
;
23
class
DTDeadFlag
;
24
25
class
DTTPDeadWriter
:
public
edm::EDAnalyzer
{
26
public
:
28
DTTPDeadWriter
(
const
edm::ParameterSet
&
pset
);
29
31
~DTTPDeadWriter
()
override
;
32
33
// Operations
34
36
void
beginRun
(
const
edm::Run
&,
const
edm::EventSetup
&
setup
)
override
;
37
39
void
analyze
(
const
edm::Event
&
event
,
const
edm::EventSetup
& eventSetup)
override
;
40
42
void
endJob
()
override
;
43
44
protected
:
45
private
:
46
// Debug flag
47
bool
debug
;
48
49
//The map of t0 to be read from event
50
const
DTT0
*
tZeroMap
;
51
52
// The object to be written to DB
53
DTDeadFlag
*
tpDeadList
;
54
55
//The DTGeometry
56
edm::ESHandle<DTGeometry>
muonGeom
;
57
};
58
#endif
DTTPDeadWriter::endJob
void endJob() override
Write ttrig in the DB.
Definition:
DTTPDeadWriter.cc:109
DTTPDeadWriter::debug
bool debug
Definition:
DTTPDeadWriter.h:47
ESHandle.h
DTTPDeadWriter
Definition:
DTTPDeadWriter.h:25
DTDeadFlag
Definition:
DTDeadFlag.h:66
edm::Run
Definition:
Run.h:45
edm
HLT enums.
Definition:
AlignableModifier.h:19
DTTPDeadWriter::~DTTPDeadWriter
~DTTPDeadWriter() override
Destructor.
Definition:
DTTPDeadWriter.cc:48
DTTPDeadWriter::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &setup) override
Read t0 map from event.
Definition:
DTTPDeadWriter.cc:53
EDAnalyzer.h
DTTPDeadWriter::tpDeadList
DTDeadFlag * tpDeadList
Definition:
DTTPDeadWriter.h:53
singleTopDQM_cfi.setup
setup
Definition:
singleTopDQM_cfi.py:37
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
DTTPDeadWriter::analyze
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Compute the ttrig by fiting the TB rising edge.
Definition:
DTTPDeadWriter.cc:64
edm::ESHandle< DTGeometry >
Event
DTGeometry.h
edm::ParameterSet
Definition:
ParameterSet.h:36
ParameterSet
Definition:
Functions.h:16
DTTPDeadWriter::DTTPDeadWriter
DTTPDeadWriter(const edm::ParameterSet &pset)
Constructor.
Definition:
DTTPDeadWriter.cc:36
edm::EventSetup
Definition:
EventSetup.h:57
DTT0
Definition:
DTT0.h:48
DTTPDeadWriter::muonGeom
edm::ESHandle< DTGeometry > muonGeom
Definition:
DTTPDeadWriter.h:56
EventSetup
event
Definition:
event.py:1
edm::Event
Definition:
Event.h:73
DTTPDeadWriter::tZeroMap
const DTT0 * tZeroMap
Definition:
DTTPDeadWriter.h:50
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
Generated for CMSSW Reference Manual by
1.8.16