1 |
dgele |
1.1 |
//
|
2 |
|
|
// $Id: PATPFParticleProducer.h,v 1.2.4.2 2009/04/30 09:11:46 gpetrucc Exp $
|
3 |
|
|
//
|
4 |
|
|
|
5 |
|
|
#ifndef PhysicsTools_PatAlgos_PATPFParticleProducer_h
|
6 |
|
|
#define PhysicsTools_PatAlgos_PATPFParticleProducer_h
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
|
|
\class pat::PATPFParticleProducer PATPFParticleProducer.h "PhysicsTools/PatAlgos/interface/PATPFParticleProducer.h"
|
10 |
|
|
\brief Produces pat::PFParticle's
|
11 |
|
|
|
12 |
|
|
The PATPFParticleProducer produces analysis-level pat::PFParticle's starting from
|
13 |
|
|
a collection of objects of PFParticleType.
|
14 |
|
|
|
15 |
|
|
\author Steven Lowette, Roger Wolf
|
16 |
|
|
\version $Id: PATPFParticleProducer.h,v 1.2.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 |
|
|
#include "FWCore/ParameterSet/interface/InputTag.h"
|
24 |
|
|
#include "DataFormats/Common/interface/View.h"
|
25 |
|
|
|
26 |
|
|
#include "PhysicsTools/Utilities/interface/PtComparator.h"
|
27 |
|
|
|
28 |
|
|
#include "DataFormats/PatCandidates/interface/PFParticle.h"
|
29 |
|
|
|
30 |
|
|
#include "PhysicsTools/PatAlgos/interface/MultiIsolator.h"
|
31 |
|
|
#include "PhysicsTools/PatAlgos/interface/EfficiencyLoader.h"
|
32 |
|
|
#include "PhysicsTools/PatAlgos/interface/KinResolutionsLoader.h"
|
33 |
|
|
|
34 |
|
|
#include <string>
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
namespace pat {
|
38 |
|
|
|
39 |
|
|
class LeptonLRCalc;
|
40 |
|
|
|
41 |
|
|
class PATPFParticleProducer : public edm::EDProducer {
|
42 |
|
|
|
43 |
|
|
public:
|
44 |
|
|
|
45 |
|
|
explicit PATPFParticleProducer(const edm::ParameterSet & iConfig);
|
46 |
|
|
~PATPFParticleProducer();
|
47 |
|
|
|
48 |
|
|
virtual void produce(edm::Event & iEvent, const edm::EventSetup & iSetup);
|
49 |
|
|
|
50 |
|
|
private:
|
51 |
|
|
void
|
52 |
|
|
fetchCandidateCollection(edm::Handle< edm::View<PFParticleType> >& c,
|
53 |
|
|
const edm::InputTag& tag,
|
54 |
|
|
const edm::Event& iSetup) const;
|
55 |
|
|
|
56 |
|
|
// configurables
|
57 |
|
|
edm::InputTag pfCandidateSrc_;
|
58 |
|
|
bool embedPFCandidate_;
|
59 |
|
|
bool addGenMatch_;
|
60 |
|
|
bool embedGenMatch_;
|
61 |
|
|
std::vector<edm::InputTag> genMatchSrc_;
|
62 |
|
|
// tools
|
63 |
|
|
GreaterByPt<PFParticle> pTComparator_;
|
64 |
|
|
|
65 |
|
|
bool addEfficiencies_;
|
66 |
|
|
pat::helper::EfficiencyLoader efficiencyLoader_;
|
67 |
|
|
|
68 |
|
|
bool addResolutions_;
|
69 |
|
|
pat::helper::KinResolutionsLoader resolutionLoader_;
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
};
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
}
|
76 |
|
|
|
77 |
|
|
#endif
|