ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbbAnalysis/HbbAnalyzer/interface/HbbCandidateFinder.h
Revision: 1.10
Committed: Fri Sep 9 08:05:26 2011 UTC (13 years, 8 months ago) by tboccali
Content type: text/plain
Branch: MAIN
CVS Tags: EDMV42_Step2_V6, EDMV42_Step2_V5a, EDMV42_Step2_V5, tauCandV42, hbbsubstructDev_11, hbbsubstructDev_10, hbbsubstructDev_9, hbbsubstructDev_8, hbbsubstructDev_7, hbbsubstructDev_6, hbbsubstructDev_5, hbbsubstructDev_4, hbbsubstructDev_3, hbbsubstructDev_2, hbbsubstructDev_1, hbbsubstructDev, V21TauCand_0, TauCandidates_0, EDMV42_Step2_V4a, EDMV42_Step2_V4, EDMV42_Step2_V3, EDMV42_Step2_V2, EDMV42_Step2_V1, EdmV42, EdmV41alpha1, EdmV40alpha1, EdmV40alpha, V21emuCand, EdmV33Jun12v2_consistent, Step2ForV33_v2, Step2ForV33_v1, EdmV33Jun12v2, EdmV33Jun12v1, EdmV33Jun12v0, Step2ForV32_v2, Step2ForV32_v0, Step2ForV31_v0, EdmV32May24v0, EdmV31May21v1, EdmV31May17v0, May14thStep2, EdmV30Apr10, EdmV21Apr10v2, EdmV22May9, EdmV21Apr06, EdmV21Apr10, EdmV21Apr04, EdmV21Apr03, EdmV21Apr2, EdmV21Mar30, EdmV20Mar12, EdmV11Oct2011_fixMET, EdmV11Oct2011, EdmV10Oct2011, EdmV9Sept2011, Sept19th2011_2, Sept19th2011, Sept19th, VHNtupleV9_AR1, VHSept15_AR1, Sept14th2011_2, Sept14th2011, Sept13th2011, HEAD
Branch point for: V42TauCandidate, hbbsubstructDevPostHCP, V21TauCand, TauCandidatesV21, V21emuCandidate
Changes since 1.9: +2 -2 lines
Log Message:
many small changes

File Contents

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