00001 #ifndef Validation_DTSegment4D_H 00002 #define Validation_DTSegment4D_H 00003 00013 #include "FWCore/Framework/interface/EDAnalyzer.h" 00014 #include "Histograms.h" 00015 00016 #include <vector> 00017 #include <map> 00018 #include <string> 00019 00020 namespace edm { 00021 class ParameterSet; 00022 class Event; 00023 class EventSetup; 00024 } 00025 00026 class TFile; 00027 00028 class DTSegment4DQuality : public edm::EDAnalyzer { 00029 public: 00031 DTSegment4DQuality(const edm::ParameterSet& pset); 00032 00034 virtual ~DTSegment4DQuality(); 00035 00036 // Operations 00037 00039 void analyze(const edm::Event & event, const edm::EventSetup& eventSetup); 00040 // Write the histos to file 00041 void endJob(); 00042 00043 protected: 00044 00045 private: 00046 00047 // The file which will store the histos 00048 TFile *theFile; 00049 // Switch for debug output 00050 bool debug; 00051 // Root file name 00052 std::string rootFileName; 00053 //Labels to read from event 00054 std::string simHitLabel; 00055 std::string segment4DLabel; 00056 //Sigma resolution on position 00057 double sigmaResX; 00058 double sigmaResY; 00059 //Sigma resolution on angle 00060 double sigmaResAlpha; 00061 double sigmaResBeta; 00062 00063 HRes4DHit *h4DHit; 00064 HRes4DHit *h4DHit_W0; 00065 HRes4DHit *h4DHit_W1; 00066 HRes4DHit *h4DHit_W2; 00067 00068 HEff4DHit *hEff_All; 00069 HEff4DHit *hEff_W0; 00070 HEff4DHit *hEff_W1; 00071 HEff4DHit *hEff_W2; 00072 }; 00073 00074 #endif