CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/Validation/DTRecHits/plugins/DTSegment4DQuality.h

Go to the documentation of this file.
00001 #ifndef Validation_DTSegment4D_H
00002 #define Validation_DTSegment4D_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 "FWCore/Utilities/interface/InputTag.h"
00019 
00020 #include <vector>
00021 #include <map>
00022 #include <string>
00023 
00024 namespace edm {
00025   class ParameterSet;
00026   class Event;
00027   class EventSetup;
00028 }
00029 
00030 class TFile;
00031 
00032 class DTSegment4DQuality : public edm::EDAnalyzer {
00033 public:
00035   DTSegment4DQuality(const edm::ParameterSet& pset);
00036 
00038   virtual ~DTSegment4DQuality();
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 protected:
00050 
00051 private: 
00052 
00053   // The file which will store the histos
00054   //TFile *theFile;
00055   // Switch for debug output
00056   bool debug;
00057   // Root file name
00058   std::string rootFileName;
00059   //Labels to read from event
00060   edm::InputTag simHitLabel;
00061   edm::InputTag segment4DLabel;
00062   //Sigma resolution on position
00063   double sigmaResX;
00064   double sigmaResY;
00065   //Sigma resolution on angle
00066   double sigmaResAlpha;
00067   double sigmaResBeta;
00068 
00069   HRes4DHit *h4DHit;
00070   HRes4DHit *h4DHit_W0;
00071   HRes4DHit *h4DHit_W1;
00072   HRes4DHit *h4DHit_W2;
00073 
00074   HEff4DHit *hEff_All;
00075   HEff4DHit *hEff_W0;
00076   HEff4DHit *hEff_W1;
00077   HEff4DHit *hEff_W2;
00078   DQMStore* dbe_;
00079   bool doall;
00080   bool local;
00081 };
00082 
00083 #endif