Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
#include "
Geometry/Records/interface/MuonGeometryRecord.h
"
14
#include "
CondFormats/DTObjects/interface/DTT0.h
"
15
#include "
CondFormats/DataRecord/interface/DTT0Rcd.h
"
16
17
#include <string>
18
19
namespace
edm {
20
class
ParameterSet
;
21
class
Event
;
22
class
EventSetup
;
23
}
// namespace edm
24
25
class
DTT0
;
26
class
DTDeadFlag
;
27
28
class
DTTPDeadWriter
:
public
edm::EDAnalyzer
{
29
public
:
31
DTTPDeadWriter
(
const
edm::ParameterSet
&
pset
);
32
34
~DTTPDeadWriter
()
override
;
35
36
// Operations
37
39
void
beginRun
(
const
edm::Run
&,
const
edm::EventSetup
&
setup
)
override
;
40
42
void
analyze
(
const
edm::Event
&
event
,
const
edm::EventSetup
& eventSetup)
override
;
43
45
void
endJob
()
override
;
46
47
protected
:
48
private
:
49
// Debug flag
50
bool
debug
;
51
52
//The map of t0 to be read from event
53
const
DTT0
*
tZeroMap
;
54
edm::ESGetToken<DTT0, DTT0Rcd>
t0Token_
;
55
56
// The object to be written to DB
57
DTDeadFlag
*
tpDeadList
;
58
59
//The DTGeometry
60
edm::ESHandle<DTGeometry>
muonGeom
;
61
const
edm::ESGetToken<DTGeometry, MuonGeometryRecord>
dtGeomToken_
;
62
};
63
#endif
DTTPDeadWriter::tZeroMap
const DTT0 * tZeroMap
Definition:
DTTPDeadWriter.h:53
DTTPDeadWriter::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &setup) override
Read t0 map from event.
Definition:
DTTPDeadWriter.cc:54
DTGeometry.h
edmPickEvents.event
tuple event
Definition:
edmPickEvents.py:273
ParameterSet
Definition:
Functions.h:16
DTTPDeadWriter::tpDeadList
DTDeadFlag * tpDeadList
Definition:
DTTPDeadWriter.h:57
MuonGeometryRecord.h
TrackValidation_cff.pset
tuple pset
Definition:
TrackValidation_cff.py:591
DTTPDeadWriter::~DTTPDeadWriter
~DTTPDeadWriter() override
Destructor.
Definition:
DTTPDeadWriter.cc:49
DTTPDeadWriter::debug
bool debug
Definition:
DTTPDeadWriter.h:50
DTT0Rcd.h
DTT0
Definition:
DTT0.h:48
edm::ESGetToken< DTT0, DTT0Rcd >
EventSetup
edm::ESHandle< DTGeometry >
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:59
DTTPDeadWriter
Definition:
DTTPDeadWriter.h:28
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:63
GeneralSetup.setup
def setup
Definition:
GeneralSetup.py:2
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
DTT0.h
EDAnalyzer.h
DTTPDeadWriter::DTTPDeadWriter
DTTPDeadWriter(const edm::ParameterSet &pset)
Constructor.
Definition:
DTTPDeadWriter.cc:36
DTTPDeadWriter::muonGeom
edm::ESHandle< DTGeometry > muonGeom
Definition:
DTTPDeadWriter.h:60
Event
DTDeadFlag
Definition:
DTDeadFlag.h:66
DTTPDeadWriter::t0Token_
edm::ESGetToken< DTT0, DTT0Rcd > t0Token_
Definition:
DTTPDeadWriter.h:54
DTTPDeadWriter::dtGeomToken_
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
Definition:
DTTPDeadWriter.h:61
edm::ParameterSet
Definition:
ParameterSet.h:47
DTTPDeadWriter::endJob
void endJob() override
Write ttrig in the DB.
Definition:
DTTPDeadWriter.cc:108
edm::Event
Definition:
Event.h:73
edm::Run
Definition:
Run.h:45
Generated for CMSSW Reference Manual by
1.8.5