![]() |
![]() |
00001 #ifndef DTAlbertoBenvenutiTask_H 00002 #define DTAlbertoBenvenutiTask_H 00003 00004 00005 /* 00006 * \file DTAlbertoBenvenutiTask.h 00007 * 00008 * $Date: 2012/09/24 16:08:06 $ 00009 * $Revision: 1.5 $ 00010 * \author G. Mila - INFN Torino 00011 * 00012 */ 00013 00014 00015 #include "FWCore/Framework/interface/Frameworkfwd.h" 00016 #include <FWCore/Framework/interface/EDAnalyzer.h> 00017 #include <DataFormats/Common/interface/Handle.h> 00018 #include <FWCore/Framework/interface/ESHandle.h> 00019 #include <FWCore/Framework/interface/Event.h> 00020 #include <FWCore/Framework/interface/MakerMacros.h> 00021 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00022 00023 #include <memory> 00024 #include <iostream> 00025 #include <fstream> 00026 #include <string> 00027 #include <vector> 00028 #include <map> 00029 #include "TH1F.h" 00030 00031 class DTGeometry; 00032 class DTWireId; 00033 class DTTtrig; 00034 class DTT0; 00035 00036 00037 class DTAlbertoBenvenutiTask: public edm::EDAnalyzer{ 00038 00039 public: 00040 00042 DTAlbertoBenvenutiTask(const edm::ParameterSet& ps); 00043 00045 virtual ~DTAlbertoBenvenutiTask(); 00046 00047 protected: 00048 00050 void beginJob(); 00051 00052 void beginRun(const edm::Run&, const edm::EventSetup&); 00053 00055 void bookHistos(const DTWireId dtWire); 00056 00058 void analyze(const edm::Event& e, const edm::EventSetup& c); 00059 00061 void endJob(); 00062 00063 private: 00064 00065 bool debug; 00066 int nevents; 00067 00069 int tMax; 00070 int maxTDCHits; 00071 00073 float tTrig; 00074 float tTrigRMS; 00075 float kFactor; 00076 00077 edm::ParameterSet parameters; 00078 00079 edm::ESHandle<DTGeometry> muonGeom; 00080 00081 edm::ESHandle<DTTtrig> tTrigMap; 00082 edm::ESHandle<DTT0> t0Map; 00083 00084 std::string outputFile; 00085 00086 std::map<DTWireId, TH1F*> TBMap; 00087 00088 00089 }; 00090 00091 #endif