CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
METTester.h
Go to the documentation of this file.
1 #ifndef METTESTER_H
2 #define METTESTER_H
3 
4 // author: Mike Schmitt (The University of Florida)
5 // date: 8/24/2006
6 // modification: Bobby Scurlock
7 // date: 03.11.2006
8 // note: added RMS(METx) vs SumET capability
9 // modification: Rick Cavanaugh
10 // date: 05.11.2006
11 // note: added configuration parameters
12 // modification: Mike Schmitt
13 // date: 02.28.2007
14 // note: code rewrite
15 
17 
20 
22 
24 
25 #include <string>
26 #include <map>
28 
29 class METTester: public edm::EDAnalyzer {
30 public:
31 
32  explicit METTester(const edm::ParameterSet&);
33 
34  virtual void analyze(const edm::Event&, const edm::EventSetup&);
35  //virtual void beginJob() ;
36  virtual void beginRun(const edm::Run&, const edm::EventSetup&) ;
37  //virtual void beginJob() ;
38  virtual void endJob() ;
39 // virtual void endRun(const edm::Run&, const edm::EventSetup&);
40  void FillpfMETRes();
41 
42 
43  private:
44 
45  // DAQ Tools
47  std::map<std::string, MonitorElement*> me;
48 
49  // Inputs from Configuration File
60 
61  bool isGoodTrack( const reco::TrackRef, float d0corr );
62 
63  int minhits_;
64  double maxd0_;
65  double maxchi2_;
66  double maxeta_;
67  double maxpt_;
68  double maxPtErr_;
69  std::vector<int> trkQuality_;
70  std::vector<int> trkAlgos_;
71 };
72 
73 #endif // METTESTER_H
edm::InputTag inputCaloMETLabel_
Definition: METTester.h:54
double maxchi2_
Definition: METTester.h:65
edm::InputTag inputTrackLabel_
Definition: METTester.h:55
std::string FolderName_
Definition: METTester.h:51
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: METTester.cc:519
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: METTester.cc:94
std::string METType_
Definition: METTester.h:50
std::vector< int > trkQuality_
Definition: METTester.h:69
DQMStore * dbe_
Definition: METTester.h:46
edm::InputTag inputElectronLabel_
Definition: METTester.h:57
std::vector< int > trkAlgos_
Definition: METTester.h:70
std::string sample_
Definition: METTester.h:52
void FillpfMETRes()
Definition: METTester.cc:1230
edm::InputTag inputBeamSpotLabel_
Definition: METTester.h:58
double maxPtErr_
Definition: METTester.h:68
edm::InputTag inputMuonLabel_
Definition: METTester.h:56
bool finebinning_
Definition: METTester.h:59
double maxpt_
Definition: METTester.h:67
std::map< std::string, MonitorElement * > me
Definition: METTester.h:47
int minhits_
Definition: METTester.h:63
virtual void endJob()
Definition: METTester.cc:1225
METTester(const edm::ParameterSet &)
Definition: METTester.cc:69
bool isGoodTrack(const reco::TrackRef, float d0corr)
Definition: METTester.cc:1256
double maxeta_
Definition: METTester.h:66
edm::InputTag inputMETLabel_
Definition: METTester.h:53
double maxd0_
Definition: METTester.h:64
Definition: Run.h:36