ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbbAnalysis/HbbAnalyzer/interface/HbbCandidateFinder.h
Revision: 1.3
Committed: Thu Jun 16 12:16:02 2011 UTC (13 years, 11 months ago) by tboccali
Content type: text/plain
Branch: MAIN
CVS Tags: Jun16th2011
Changes since 1.2: +5 -5 lines
Log Message:
candidate initial selection

File Contents

# User Rev Content
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    
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 tboccali 1.2
52 tboccali 1.1 float getDeltaTheta( VHbbEvent::SimpleJet * j1, VHbbEvent::SimpleJet * j2 );
53 tboccali 1.2
54    
55     protected:
56    
57     void run (const VHbbEvent*, std::auto_ptr<std::vector<VHbbCandidate> > &);
58 tboccali 1.1
59 tboccali 1.3 bool findDiJets (const std::vector<VHbbEvent::SimpleJet>& , VHbbEvent::SimpleJet& , VHbbEvent::SimpleJet& ,std::vector<VHbbEvent::SimpleJet>& );
60 tboccali 1.2
61    
62 tboccali 1.3 void findMuons (const std::vector<VHbbEvent::MuonInfo>& muons, std::vector<VHbbEvent::MuonInfo>& out);
63     void findElectrons(const std::vector<VHbbEvent::ElectronInfo>& electrons, std::vector<VHbbEvent::ElectronInfo>& out);
64 tboccali 1.2
65 tboccali 1.1 private:
66     virtual void beginJob() ;
67     virtual void endJob() ;
68    
69     edm::InputTag vhbbevent_;
70 tboccali 1.3 bool verbose_;
71     float jetPtThreshold;
72 tboccali 1.1
73    
74     };
75    
76     //
77     // constants, enums and typedefs
78     //
79    
80     //
81     // static data member definitions
82     //
83    
84     //
85