CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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 
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;
55 
56  // The object to be written to DB
58 
59  //The DTGeometry
62 };
63 #endif
const DTT0 * tZeroMap
void beginRun(const edm::Run &, const edm::EventSetup &setup) override
Read t0 map from event.
DTDeadFlag * tpDeadList
~DTTPDeadWriter() override
Destructor.
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
edm::ESGetToken< DTT0, DTT0Rcd > t0Token_
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
void endJob() override
Write ttrig in the DB.
Definition: Run.h:45