ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbbAnalysis/HbbAnalyzer/interface/VHbbCandidate.h
Revision: 1.3
Committed: Tue Jun 28 11:56:00 2011 UTC (13 years, 10 months ago) by tboccali
Content type: text/plain
Branch: MAIN
CVS Tags: Jun30th2011, Jun28th2011
Changes since 1.2: +10 -1 lines
Log Message:
change candidate preselection

File Contents

# User Rev Content
1 tboccali 1.1 #ifndef VHbbCandidate__H
2     #define VHbbCandidate__H
3    
4     #include <TLorentzVector.h>
5     #include <TVector2.h>
6     #include <vector>
7    
8     #include "VHbbAnalysis/HbbAnalyzer/interface/VHbbEvent.h"
9    
10     class VHbbCandidate {
11     public:
12 tboccali 1.3 enum CandidateType{Zmumu, Zee, Wen, Wmun, Znn, UNKNOWN};
13    
14     VHbbCandidate(){candidateType=UNKNOWN;}
15    
16 tboccali 1.1 class VectorCandidate {
17     public:
18 tboccali 1.2
19 tboccali 1.3
20 tboccali 1.1 TLorentzVector fourMomentum;
21     std::vector<VHbbEvent::MuonInfo> muons;
22     std::vector<VHbbEvent::ElectronInfo> electrons;
23     std::vector<VHbbEvent::TauInfo> taus;
24 tboccali 1.2 std::vector<VHbbEvent::METInfo> mets;
25    
26 tboccali 1.1 };
27    
28     class HiggsCandidate {
29     public:
30 tboccali 1.3 TLorentzVector fourMomentum;
31 tboccali 1.1 std::vector<VHbbEvent::SimpleJet> jets;
32 tboccali 1.2 float deltaTheta;
33 tboccali 1.1 public:
34     VHbbEvent::SimpleJet& firstJet(){return jets[0];}
35     VHbbEvent::SimpleJet& secondJet(){return jets[1];}
36 tboccali 1.2 };
37 tboccali 1.1
38 tboccali 1.3
39     void setCandidateType (CandidateType c){candidateType = c;}
40 tboccali 1.1
41     public:
42 tboccali 1.3 TLorentzVector fourMomentum(){return V.fourMomentum+H.fourMomentum;}
43     CandidateType candidateType;
44 tboccali 1.1 HiggsCandidate H;
45     VectorCandidate V;
46     std::vector<VHbbEvent::SimpleJet> additionalJets;
47     };
48    
49    
50     #endif