CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/Validation/DTRecHits/plugins/DTSegment2DQuality.h

Go to the documentation of this file.
00001 #ifndef Validation_DTSegment2D_H
00002 #define Validation_DTSegment2D_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 DTSegment2DQuality : public edm::EDAnalyzer {
00033 public:
00035   DTSegment2DQuality(const edm::ParameterSet& pset);
00036 
00038   virtual ~DTSegment2DQuality();
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 
00047 protected:
00048 
00049 private: 
00050 
00051   // The file which will store the histos
00052   //TFile *theFile;
00053   // Switch for debug output
00054   bool debug;
00055   // Root file name
00056   std::string rootFileName;
00057   //Labels to read from event
00058   edm::InputTag simHitLabel;
00059   edm::InputTag segment2DLabel;
00060   //Sigma resolution on position
00061   double sigmaResPos;
00062   //Sigma resolution on angle
00063   double sigmaResAngle;
00064 
00065   HRes2DHit *h2DHitRPhi;
00066   HRes2DHit *h2DHitRZ;
00067   HRes2DHit *h2DHitRZ_W0;
00068   HRes2DHit *h2DHitRZ_W1;
00069   HRes2DHit *h2DHitRZ_W2;
00070 
00071   HEff2DHit *h2DHitEff_RPhi;
00072   HEff2DHit *h2DHitEff_RZ;
00073   HEff2DHit *h2DHitEff_RZ_W0;
00074   HEff2DHit *h2DHitEff_RZ_W1;
00075   HEff2DHit *h2DHitEff_RZ_W2;
00076   DQMStore* dbe_;
00077 };
00078 #endif