CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/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 
00040  private:
00041 
00042   // DAQ Tools
00043   DQMStore* dbe_;
00044   std::map<std::string, MonitorElement*> me;
00045 
00046   // Inputs from Configuration File
00047   std::string METType_;
00048   std::string FolderName_;
00049   edm::InputTag inputMETLabel_;
00050   edm::InputTag inputCaloMETLabel_;
00051   edm::InputTag inputTrackLabel_;
00052   edm::InputTag inputMuonLabel_;
00053   edm::InputTag inputElectronLabel_;
00054   edm::InputTag inputBeamSpotLabel_;
00055   bool finebinning_;
00056 
00057   bool isGoodTrack( const reco::TrackRef, float d0corr );
00058 
00059   int minhits_;
00060   double maxd0_;
00061   double maxchi2_;
00062   double maxeta_;
00063   double maxpt_;
00064   double maxPtErr_;
00065   std::vector<int> trkQuality_;
00066   std::vector<int> trkAlgos_;
00067 };
00068 
00069 #endif // METTESTER_H