1 |
// system include files
|
2 |
#include <memory>
|
3 |
#include <iostream>
|
4 |
using namespace std;
|
5 |
|
6 |
// user include files
|
7 |
#include "FWCore/Framework/interface/Frameworkfwd.h"
|
8 |
#include "FWCore/Framework/interface/EDProducer.h"
|
9 |
|
10 |
#include "FWCore/Framework/interface/Event.h"
|
11 |
#include "FWCore/Framework/interface/MakerMacros.h"
|
12 |
|
13 |
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
14 |
#include "FWCore/ServiceRegistry/interface/Service.h"
|
15 |
#include "CommonTools/UtilAlgos/interface/TFileService.h"
|
16 |
#include "FWCore/Utilities/interface/InputTag.h"
|
17 |
|
18 |
#include "DataFormats/Common/interface/View.h"
|
19 |
|
20 |
#include "DataFormats/Candidate/interface/Candidate.h"
|
21 |
#include "DataFormats/Candidate/interface/Particle.h"
|
22 |
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
|
23 |
|
24 |
#include "TH1.h"
|
25 |
#include "TTree.h"
|
26 |
#include "TMath.h"
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
#include <TString.h>
|
32 |
|
33 |
#include "VHbbAnalysis/HbbAnalyzer/interface/VHbbCandidate.h"
|
34 |
#include "VHbbAnalysis/HbbAnalyzer/interface/VHbbEvent.h"
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
//
|
40 |
// class declaration
|
41 |
//
|
42 |
|
43 |
|
44 |
|
45 |
class HbbCandidateFinder : public edm::EDProducer {
|
46 |
|
47 |
public:
|
48 |
explicit HbbCandidateFinder(const edm::ParameterSet&);
|
49 |
~HbbCandidateFinder();
|
50 |
void produce( edm::Event&, const edm::EventSetup& );
|
51 |
|
52 |
float getDeltaTheta( VHbbEvent::SimpleJet * j1, VHbbEvent::SimpleJet * j2 );
|
53 |
|
54 |
|
55 |
protected:
|
56 |
|
57 |
void run (const VHbbEvent*, std::auto_ptr<std::vector<VHbbCandidate> > &);
|
58 |
|
59 |
std::pair <int, int> findDiJets (const std::vector<VHbbEvent::SimpleJet>& jets);
|
60 |
|
61 |
|
62 |
int findDiMuon (const std::vector<VHbbEvent::DiMuonInfo>&);
|
63 |
int findDiElectron (const std::vector<VHbbEvent::DiElectronInfo>&);
|
64 |
|
65 |
|
66 |
private:
|
67 |
virtual void beginJob() ;
|
68 |
virtual void endJob() ;
|
69 |
|
70 |
edm::InputTag vhbbevent_;
|
71 |
|
72 |
|
73 |
|
74 |
};
|
75 |
|
76 |
//
|
77 |
// constants, enums and typedefs
|
78 |
//
|
79 |
|
80 |
//
|
81 |
// static data member definitions
|
82 |
//
|
83 |
|
84 |
//
|
85 |
|