1 |
tboccali |
1.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 |
tboccali |
1.5 |
#include <TString.h>
|
29 |
tboccali |
1.1 |
|
30 |
|
|
|
31 |
tboccali |
1.5 |
#include "VHbbAnalysis/HbbAnalyzer/interface/HbbCandidateFinderAlgo.h"
|
32 |
tboccali |
1.6 |
#include "VHbbAnalysis/VHbbDataFormats/interface/VHbbCandidate.h"
|
33 |
|
|
#include "VHbbAnalysis/VHbbDataFormats/interface/VHbbEvent.h"
|
34 |
tboccali |
1.1 |
|
35 |
|
|
//
|
36 |
|
|
// class declaration
|
37 |
|
|
//
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
class HbbCandidateFinder : public edm::EDProducer {
|
42 |
|
|
|
43 |
|
|
public:
|
44 |
|
|
explicit HbbCandidateFinder(const edm::ParameterSet&);
|
45 |
|
|
~HbbCandidateFinder();
|
46 |
|
|
void produce( edm::Event&, const edm::EventSetup& );
|
47 |
tboccali |
1.2 |
|
48 |
tboccali |
1.4 |
float getDeltaTheta( const VHbbEvent::SimpleJet & j1, const VHbbEvent::SimpleJet & j2 ) const ;
|
49 |
tboccali |
1.2 |
|
50 |
|
|
|
51 |
|
|
protected:
|
52 |
|
|
|
53 |
|
|
void run (const VHbbEvent*, std::auto_ptr<std::vector<VHbbCandidate> > &);
|
54 |
tboccali |
1.1 |
|
55 |
tboccali |
1.3 |
bool findDiJets (const std::vector<VHbbEvent::SimpleJet>& , VHbbEvent::SimpleJet& , VHbbEvent::SimpleJet& ,std::vector<VHbbEvent::SimpleJet>& );
|
56 |
tboccali |
1.2 |
|
57 |
tboccali |
1.4 |
// voif findVectorCandidate()
|
58 |
|
|
|
59 |
tboccali |
1.2 |
|
60 |
tboccali |
1.3 |
void findMuons (const std::vector<VHbbEvent::MuonInfo>& muons, std::vector<VHbbEvent::MuonInfo>& out);
|
61 |
|
|
void findElectrons(const std::vector<VHbbEvent::ElectronInfo>& electrons, std::vector<VHbbEvent::ElectronInfo>& out);
|
62 |
tboccali |
1.4 |
void findMET(const VHbbEvent::METInfo& met, std::vector<VHbbEvent::METInfo>& out);
|
63 |
tboccali |
1.2 |
|
64 |
tboccali |
1.1 |
private:
|
65 |
|
|
virtual void beginJob() ;
|
66 |
|
|
virtual void endJob() ;
|
67 |
|
|
|
68 |
|
|
edm::InputTag vhbbevent_;
|
69 |
tboccali |
1.5 |
HbbCandidateFinderAlgo *algo_;
|
70 |
|
|
bool verbose_;
|
71 |
tboccali |
1.1 |
|
72 |
|
|
};
|
73 |
|
|
|
74 |
|
|
//
|
75 |
|
|
// constants, enums and typedefs
|
76 |
|
|
//
|
77 |
|
|
|
78 |
|
|
//
|
79 |
|
|
// static data member definitions
|
80 |
|
|
//
|
81 |
|
|
|
82 |
|
|
//
|
83 |
|
|
|