00001 #ifndef Validation_DTSegment2DSLPhi_H 00002 #define Validation_DTSegment2DSLPhi_H 00003 00013 #include "FWCore/Framework/interface/EDAnalyzer.h" 00014 #include "Histograms.h" 00015 #include "DQMServices/Core/interface/DQMStore.h" 00016 #include "DQMServices/Core/interface/MonitorElement.h" 00017 #include "FWCore/ServiceRegistry/interface/Service.h" 00018 #include "TStyle.h" 00019 #include <vector> 00020 #include <map> 00021 #include <string> 00022 #include "FWCore/Utilities/interface/InputTag.h" 00023 00024 namespace edm { 00025 class ParameterSet; 00026 class Event; 00027 class EventSetup; 00028 } 00029 00030 class TFile; 00031 00032 class DTSegment2DSLPhiQuality : public edm::EDAnalyzer { 00033 public: 00035 DTSegment2DSLPhiQuality(const edm::ParameterSet& pset); 00036 00038 virtual ~DTSegment2DSLPhiQuality(); 00039 00040 // Operations 00041 00043 void analyze(const edm::Event & event, const edm::EventSetup& eventSetup); 00044 // Write the histos to file 00045 void endJob(); 00046 void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, 00047 edm::EventSetup const& c); 00048 00049 00050 protected: 00051 00052 private: 00053 00054 // The file which will store the histos 00055 //TFile *theFile; 00056 // Switch for debug output 00057 bool debug; 00058 // Root file name 00059 std::string rootFileName; 00060 //Labels to read from event 00061 edm::InputTag simHitLabel; 00062 edm::InputTag segment4DLabel; 00063 //Sigma resolution on position 00064 double sigmaResPos; 00065 //Sigma resolution on angle 00066 double sigmaResAngle; 00067 00068 HRes2DHit *h2DHitSuperPhi; 00069 HEff2DHit *h2DHitEff_SuperPhi; 00070 DQMStore* dbe_; 00071 bool doall; 00072 bool local; 00073 // TStyle * mystyle; 00074 }; 00075 #endif