CMS 3D CMS Logo

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 
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::one::EDAnalyzer<edm::one::WatchRuns> {
29 public:
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 
44  void endRun(const edm::Run&, const edm::EventSetup& setup) override {}
45 
47  void endJob() override;
48 
49 protected:
50 private:
51  // Debug flag
52  bool debug;
53 
54  //The map of t0 to be read from event
55  const DTT0* tZeroMap;
57 
58  // The object to be written to DB
60 
61  //The DTGeometry
64 };
65 #endif
const DTT0 * tZeroMap
void beginRun(const edm::Run &, const edm::EventSetup &setup) override
Read t0 map from event.
DTDeadFlag * tpDeadList
~DTTPDeadWriter() override
Destructor.
void endRun(const edm::Run &, const edm::EventSetup &setup) override
Definition: DTT0.h:48
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Compute the ttrig by fiting the TB rising edge.
DTTPDeadWriter(const edm::ParameterSet &pset)
Constructor.
edm::ESHandle< DTGeometry > muonGeom
HLT enums.
edm::ESGetToken< DTT0, DTT0Rcd > t0Token_
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
void endJob() override
Write ttrig in the DB.
Definition: event.py:1
Definition: Run.h:45