00001 #ifndef DTTPDeadWriter_H 00002 #define DTTPDeadWriter_H 00003 00004 /* Class to find test-pulse dead channels from a t0 databases: 00005 * wires without t0 value are tp-dead. 00006 00007 * $Date: 2008/10/03 08:34:49 $ 00008 * $Revision: 1.2 $ 00009 * \author S. Bolognesi 00010 */ 00011 00012 #include "FWCore/Framework/interface/EDAnalyzer.h" 00013 #include "Geometry/DTGeometry/interface/DTGeometry.h" 00014 #include "FWCore/Framework/interface/ESHandle.h" 00015 00016 #include <string> 00017 00018 namespace edm { 00019 class ParameterSet; 00020 class Event; 00021 class EventSetup; 00022 } 00023 00024 class DTT0; 00025 class DTDeadFlag; 00026 00027 class DTTPDeadWriter : public edm::EDAnalyzer { 00028 public: 00030 DTTPDeadWriter(const edm::ParameterSet& pset); 00031 00033 virtual ~DTTPDeadWriter(); 00034 00035 // Operations 00036 00038 virtual void beginRun(const edm::Run&, const edm::EventSetup& setup); 00039 00041 virtual void analyze(const edm::Event & event, const edm::EventSetup& eventSetup); 00042 00044 virtual void endJob(); 00045 00046 00047 protected: 00048 00049 private: 00050 // Debug flag 00051 bool debug; 00052 00053 //The map of t0 to be read from event 00054 const DTT0* tZeroMap; 00055 00056 // The object to be written to DB 00057 DTDeadFlag* tpDeadList; 00058 00059 //The DTGeometry 00060 edm::ESHandle<DTGeometry> muonGeom; 00061 }; 00062 #endif