CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/Validation/RecoMET/interface/METTester.h

Go to the documentation of this file.
00001 #ifndef METTESTER_H
00002 #define METTESTER_H
00003 
00004 // author: Mike Schmitt (The University of Florida)
00005 // date: 8/24/2006
00006 // modification: Bobby Scurlock 
00007 // date: 03.11.2006
00008 // note: added RMS(METx) vs SumET capability 
00009 // modification: Rick Cavanaugh
00010 // date: 05.11.2006 
00011 // note: added configuration parameters 
00012 // modification: Mike Schmitt
00013 // date: 02.28.2007
00014 // note: code rewrite
00015 
00016 #include "DQMServices/Core/interface/DQMStore.h"
00017 
00018 #include "FWCore/Framework/interface/Frameworkfwd.h"
00019 #include "FWCore/Framework/interface/EDAnalyzer.h"
00020 
00021 #include "FWCore/Utilities/interface/InputTag.h"
00022 
00023 #include "DataFormats/TrackReco/interface/TrackFwd.h"
00024 
00025 #include <string>
00026 #include <map>
00027 #include "DQMServices/Core/interface/MonitorElement.h"
00028 
00029 class METTester: public edm::EDAnalyzer {
00030 public:
00031 
00032   explicit METTester(const edm::ParameterSet&);
00033 
00034   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00035   //virtual void beginJob() ;
00036   virtual void beginRun(const edm::Run&, const edm::EventSetup&) ;
00037   //virtual void beginJob() ;
00038   virtual void endJob() ;
00039 //  virtual void endRun(const edm::Run&, const edm::EventSetup&);
00040         void FillpfMETRes();
00041 
00042 
00043  private:
00044 
00045   // DAQ Tools
00046   DQMStore* dbe_;
00047   std::map<std::string, MonitorElement*> me;
00048 
00049   // Inputs from Configuration File
00050   std::string METType_;
00051   std::string FolderName_;
00052   std::string sample_;
00053   edm::InputTag inputMETLabel_;
00054   edm::InputTag inputCaloMETLabel_;
00055   edm::InputTag inputTrackLabel_;
00056   edm::InputTag inputMuonLabel_;
00057   edm::InputTag inputElectronLabel_;
00058   edm::InputTag inputBeamSpotLabel_;
00059   bool finebinning_;
00060 
00061   bool isGoodTrack( const reco::TrackRef, float d0corr );
00062 
00063   int minhits_;
00064   double maxd0_;
00065   double maxchi2_;
00066   double maxeta_;
00067   double maxpt_;
00068   double maxPtErr_;
00069   std::vector<int> trkQuality_;
00070   std::vector<int> trkAlgos_;
00071 };
00072 
00073 #endif // METTESTER_H