1 |
dgele |
1.1 |
// -*- C++ -*-
|
2 |
|
|
//
|
3 |
|
|
// Package: PatShapeAna
|
4 |
|
|
// Class: PatShapeAna
|
5 |
|
|
//
|
6 |
|
|
/**\class PatShapeAna PatShapeAna.h PhysicsTools/PatShapeAna/interface/PatShapeAna.h
|
7 |
|
|
|
8 |
|
|
Description: <one line class summary>
|
9 |
|
|
|
10 |
|
|
Implementation:
|
11 |
|
|
<Notes on implementation>
|
12 |
|
|
*/
|
13 |
|
|
//
|
14 |
|
|
// Original Author: Christian AUTERMANN
|
15 |
|
|
// Created: Sat Mar 22 12:58:04 CET 2008
|
16 |
dgele |
1.2 |
// $Id: PATHemisphereProducer.h,v 1.1 2009/10/20 17:15:14 dgele Exp $
|
17 |
dgele |
1.1 |
//
|
18 |
|
|
//
|
19 |
|
|
|
20 |
|
|
#ifndef PATHemisphereProducer_h
|
21 |
|
|
#define PATHemisphereProducer_h
|
22 |
|
|
|
23 |
|
|
// system include files
|
24 |
|
|
#include <memory>
|
25 |
|
|
#include <map>
|
26 |
|
|
#include <utility>//pair
|
27 |
|
|
// user include files
|
28 |
|
|
#include "FWCore/Framework/interface/Frameworkfwd.h"
|
29 |
|
|
#include "FWCore/Framework/interface/EDProducer.h"
|
30 |
|
|
#include "FWCore/Framework/interface/Event.h"
|
31 |
|
|
#include "FWCore/Framework/interface/MakerMacros.h"
|
32 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
33 |
|
|
#include "DataFormats/Candidate/interface/CandidateFwd.h"
|
34 |
|
|
#include "PhysicsTools/UtilAlgos/interface/ParameterAdapter.h"
|
35 |
|
|
|
36 |
|
|
#include "PhysicsTools/PatAlgos/interface/HemisphereAlgo.h"
|
37 |
|
|
//
|
38 |
|
|
// class decleration
|
39 |
|
|
//
|
40 |
|
|
|
41 |
|
|
class PATHemisphereProducer : public edm::EDProducer {
|
42 |
|
|
public:
|
43 |
|
|
explicit PATHemisphereProducer(const edm::ParameterSet&);
|
44 |
|
|
~PATHemisphereProducer();
|
45 |
|
|
|
46 |
|
|
private:
|
47 |
|
|
virtual void beginJob(const edm::EventSetup&) ;
|
48 |
|
|
virtual void produce(edm::Event&, const edm::EventSetup&);
|
49 |
|
|
virtual void endJob() ;
|
50 |
|
|
|
51 |
|
|
// ----------member data ---------------------------
|
52 |
|
|
/// Input: All PAT objects that are to cross-clean or needed for that
|
53 |
|
|
edm::InputTag _patJets;
|
54 |
|
|
edm::InputTag _patMets;
|
55 |
|
|
edm::InputTag _patMuons;
|
56 |
|
|
edm::InputTag _patElectrons;
|
57 |
|
|
edm::InputTag _patPhotons;
|
58 |
|
|
edm::InputTag _patTaus;
|
59 |
|
|
|
60 |
|
|
float _minJetEt;
|
61 |
|
|
float _minMuonEt;
|
62 |
|
|
float _minElectronEt;
|
63 |
|
|
float _minTauEt;
|
64 |
|
|
float _minPhotonEt;
|
65 |
|
|
|
66 |
|
|
float _maxJetEta;
|
67 |
|
|
float _maxMuonEta;
|
68 |
|
|
float _maxElectronEta;
|
69 |
|
|
float _maxTauEta;
|
70 |
|
|
float _maxPhotonEta;
|
71 |
|
|
|
72 |
|
|
int _seedMethod;
|
73 |
|
|
int _combinationMethod;
|
74 |
|
|
|
75 |
|
|
HemisphereAlgo* myHemi;
|
76 |
|
|
|
77 |
|
|
std::vector<float> vPx, vPy, vPz, vE;
|
78 |
|
|
std::vector<float> vA1, vA2;
|
79 |
|
|
std::vector<int> vgroups;
|
80 |
|
|
std::vector<reco::CandidatePtr> componentPtrs_;
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
typedef std::vector<float> HemiAxis;
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
};
|
89 |
|
|
|
90 |
|
|
#endif
|
91 |
|
|
|
92 |
|
|
|