1 |
dgele |
1.1 |
//
|
2 |
|
|
// $Id: PATMETProducer.h,v 1.5.4.2 2009/04/30 09:11:46 gpetrucc Exp $
|
3 |
|
|
//
|
4 |
|
|
|
5 |
|
|
#ifndef PhysicsTools_PatAlgos_PATMETProducer_h
|
6 |
|
|
#define PhysicsTools_PatAlgos_PATMETProducer_h
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
|
|
\class pat::PATMETProducer PATMETProducer.h "PhysicsTools/PatAlgos/interface/PATMETProducer.h"
|
10 |
|
|
\brief Produces the pat::MET
|
11 |
|
|
|
12 |
|
|
The PATMETProducer produces the analysis-level pat::MET starting from
|
13 |
|
|
a collection of objects of METType.
|
14 |
|
|
|
15 |
|
|
\author Steven Lowette
|
16 |
|
|
\version $Id: PATMETProducer.h,v 1.5.4.2 2009/04/30 09:11:46 gpetrucc Exp $
|
17 |
|
|
*/
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
#include "FWCore/Framework/interface/EDProducer.h"
|
21 |
|
|
#include "FWCore/Framework/interface/Event.h"
|
22 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
23 |
|
|
|
24 |
|
|
#include "PhysicsTools/Utilities/interface/EtComparator.h"
|
25 |
|
|
|
26 |
|
|
#include "DataFormats/PatCandidates/interface/MET.h"
|
27 |
|
|
#include "PhysicsTools/PatAlgos/interface/EfficiencyLoader.h"
|
28 |
|
|
#include "PhysicsTools/PatAlgos/interface/KinResolutionsLoader.h"
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
#include "DataFormats/PatCandidates/interface/UserData.h"
|
32 |
|
|
#include "PhysicsTools/PatAlgos/interface/PATUserDataHelper.h"
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
namespace pat {
|
36 |
|
|
|
37 |
|
|
class PATMETProducer : public edm::EDProducer {
|
38 |
|
|
|
39 |
|
|
public:
|
40 |
|
|
|
41 |
|
|
explicit PATMETProducer(const edm::ParameterSet & iConfig);
|
42 |
|
|
~PATMETProducer();
|
43 |
|
|
|
44 |
|
|
virtual void produce(edm::Event & iEvent, const edm::EventSetup & iSetup);
|
45 |
|
|
|
46 |
|
|
private:
|
47 |
|
|
|
48 |
|
|
// configurables
|
49 |
|
|
edm::InputTag metSrc_;
|
50 |
|
|
bool addGenMET_;
|
51 |
|
|
edm::InputTag genMETSrc_;
|
52 |
|
|
bool addTrigMatch_;
|
53 |
|
|
std::vector<edm::InputTag> trigMatchSrc_;
|
54 |
|
|
bool addMuonCorr_;
|
55 |
|
|
edm::InputTag muonSrc_;
|
56 |
|
|
// tools
|
57 |
|
|
GreaterByEt<MET> eTComparator_;
|
58 |
|
|
|
59 |
|
|
bool addEfficiencies_;
|
60 |
|
|
pat::helper::EfficiencyLoader efficiencyLoader_;
|
61 |
|
|
|
62 |
|
|
bool addResolutions_;
|
63 |
|
|
pat::helper::KinResolutionsLoader resolutionLoader_;
|
64 |
|
|
|
65 |
|
|
bool useUserData_;
|
66 |
|
|
pat::PATUserDataHelper<pat::MET> userDataHelper_;
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
};
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
}
|
73 |
|
|
|
74 |
|
|
#endif
|