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 |
#include "DataFormats/PatCandidates/interface/MET.h"
|
17 |
|
18 |
#include "../interface/TRootEvent.h"
|
19 |
#include "../interface/TRootMET.h"
|
20 |
|
21 |
#include "TClonesArray.h"
|
22 |
|
23 |
|
24 |
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 |
|
40 |
};
|
41 |
|
42 |
#endif
|