CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/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 
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 DTSegment2DQuality : public edm::EDAnalyzer {
00029 public:
00031   DTSegment2DQuality(const edm::ParameterSet& pset);
00032 
00034   virtual ~DTSegment2DQuality();
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 segment2DLabel;
00056   //Sigma resolution on position
00057   double sigmaResPos;
00058   //Sigma resolution on angle
00059   double sigmaResAngle;
00060 
00061   HRes2DHit *h2DHitRPhi;
00062   HRes2DHit *h2DHitRZ;
00063   HRes2DHit *h2DHitRZ_W0;
00064   HRes2DHit *h2DHitRZ_W1;
00065   HRes2DHit *h2DHitRZ_W2;
00066 
00067   HEff2DHit *h2DHitEff_RPhi;
00068   HEff2DHit *h2DHitEff_RZ;
00069   HEff2DHit *h2DHitEff_RZ_W0;
00070   HEff2DHit *h2DHitEff_RZ_W1;
00071   HEff2DHit *h2DHitEff_RZ_W2;
00072 };
00073 #endif