ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbbAnalysis/VHbbDataFormats/interface/HbbCandidateFinderAlgo.h
Revision: 1.7
Committed: Thu Feb 16 00:17:53 2012 UTC (13 years, 2 months ago) by dlopes
Content type: text/plain
Branch: MAIN
CVS Tags: EdmV20Mar12
Changes since 1.6: +1 -0 lines
Log Message:
Modifications to step1 and step2 code for CA12 substructure analysis: Add relevant jet collections in step1, provides template for step2 matching, best candidate selection and Ntuple filler. These last ones can(will) be further modified. In addition, modifications for tau sequence/variables at step1 level

File Contents

# User Rev Content
1 tboccali 1.1 #ifndef HBBCANDIDATEFINDERALGO_HH
2     #define HBBCANDIDATEFINDERALGO_HH
3    
4     #include "VHbbAnalysis/VHbbDataFormats/interface/VHbbCandidate.h"
5     #include "VHbbAnalysis/VHbbDataFormats/interface/VHbbEvent.h"
6    
7     class HbbCandidateFinderAlgo {
8     public:
9    
10 tboccali 1.2 explicit HbbCandidateFinderAlgo(bool verbose, float jetPt, bool useH): verbose_(verbose), jetPtThreshold(jetPt),useHighestPtHiggs_(useH) {}
11 tboccali 1.1
12    
13     void run (const VHbbEvent*, std::vector<VHbbCandidate> &);
14    
15 arizzi 1.3 VHbbCandidate changeHiggs(bool useHighestPtHiggs , const VHbbCandidate & old);
16    
17 tboccali 1.1
18 arizzi 1.5 static bool jetID(const VHbbEvent::SimpleJet & );
19 tboccali 1.1
20 tboccali 1.2 bool findDiJets (const std::vector<VHbbEvent::SimpleJet>& , VHbbEvent::SimpleJet& , VHbbEvent::SimpleJet& ,std::vector<VHbbEvent::SimpleJet>&);
21     bool findDiJetsHighestPt (const std::vector<VHbbEvent::SimpleJet>& , VHbbEvent::SimpleJet& , VHbbEvent::SimpleJet& ,std::vector<VHbbEvent::SimpleJet>&);
22 dlopes 1.7 bool findFatJet (const std::vector<VHbbEvent::HardJet>& , const std::vector<VHbbEvent::SimpleJet>& , const std::vector<VHbbEvent::SimpleJet>&, VHbbEvent::HardJet& ,std::vector<VHbbEvent::SimpleJet>& );
23 arizzi 1.6
24     protected:
25 tboccali 1.1
26 tboccali 1.4 void findMuons (const std::vector<VHbbEvent::MuonInfo>& muons, std::vector<VHbbEvent::MuonInfo>& out, std::vector<unsigned int>&);
27     void findElectrons(const std::vector<VHbbEvent::ElectronInfo>& electrons, std::vector<VHbbEvent::ElectronInfo>& out,std::vector<unsigned int>&);
28 tboccali 1.1 void findMET(const VHbbEvent::METInfo& met, std::vector<VHbbEvent::METInfo>& out);
29    
30     private:
31     bool verbose_;
32 tboccali 1.2 float jetPtThreshold;
33     bool useHighestPtHiggs_;
34 tboccali 1.1
35    
36     };
37    
38     #endif