ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/METAnalyzer.h
Revision: 1.4
Committed: Wed Jun 10 11:17:05 2009 UTC (15 years, 10 months ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: all_3_3_2_01, all_3_2_5_02, all_3_2_5_01, all_2_2_9_03, all_2_2_9_02, all_2_2_9_01, HEAD
Branch point for: CMSSW_2_2_X_br
Changes since 1.3: +15 -13 lines
Log Message:
Better protection against missing collection / Cleaning data format selection / Last iteration for migration to PAT of Photons

File Contents

# User Rev Content
1 lethuill 1.1 #ifndef METAnalyzer_h
2     #define METAnalyzer_h
3    
4     // system include files
5     #include <iostream>
6    
7     // user include files
8     #include "FWCore/Framework/interface/Event.h"
9     #include "FWCore/ParameterSet/interface/ParameterSet.h"
10     #include "FWCore/Framework/interface/ESHandle.h"
11    
12     //#include "DataFormats/METReco/interface/MET.h"
13     //#include "DataFormats/METReco/interface/METFwd.h"
14     #include "DataFormats/METReco/interface/CaloMET.h"
15     #include "DataFormats/METReco/interface/CaloMETCollection.h"
16 lethuill 1.3 #include "DataFormats/PatCandidates/interface/MET.h"
17 lethuill 1.1
18 lethuill 1.2 #include "../interface/TRootEvent.h"
19     #include "../interface/TRootMET.h"
20 lethuill 1.1
21     #include "TClonesArray.h"
22    
23    
24 lethuill 1.4 class METAnalyzer
25     {
26    
27     public:
28     METAnalyzer(const edm::ParameterSet& producersNames, const edm::ParameterSet& myConfig, int verbosity);
29     ~METAnalyzer();
30     void setVerbosity(int verbosity) {verbosity_ = verbosity; };
31     bool process(const edm::Event& iEvent, TClonesArray* rootMET);
32    
33     private:
34     int verbosity_;
35     std::string dataType_ ;
36     edm::InputTag metProducer_;
37     bool useMC_;
38     bool allowMissingCollection_;
39 lethuill 1.1
40     };
41    
42     #endif