ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/ObjectsDepends.hh
Revision: 1.1
Committed: Tue Oct 25 13:26:51 2011 UTC (13 years, 6 months ago) by agilbert
Content type: text/plain
Branch: MAIN
CVS Tags: v01-00-00, HEAD
Log Message:
Significant code re-write.  Compiles under 4_2_4 but may not work as expected.  Files marked as broken may need to be fixed in the future.

File Contents

# User Rev Content
1 agilbert 1.1 #ifndef HbbAnalysis_ObjectsDepends_hh
2     #define HbbAnalysis_ObjectsDepends_hh
3    
4     #include <vector>
5     #include <string>
6     #include <iostream>
7     #include <map>
8     #include "UserCode/HbbAnalysis/interface/Objects.hh"
9     #include "UserCode/HbbAnalysis/interface/GenParticle.hh"
10     #include "UserCode/HbbAnalysis/interface/GenJet.hh"
11    
12     #include "TLorentzVector.h"
13     #include "TMath.h"
14    
15     namespace HbbAnalysis {
16     struct LeptonVars {
17     HbbAnalysis::Point vertexPCA;
18     double charge;
19     double dBeamspot;
20     double dVertex;
21     std::vector<std::string> hltMatchPaths;
22     std::vector<std::string> hltMatchFilters;
23     std::vector<HbbAnalysis::GenParticle> genMatches;
24    
25     LeptonVars() :
26     charge(0),
27     dBeamspot(0),
28     dVertex(0)
29     {}
30     void Clear() {
31     vertexPCA.Clear();
32     charge = 0;
33     dBeamspot = 0;
34     dVertex = 0;
35     hltMatchPaths.clear();
36     hltMatchFilters.clear();
37     genMatches.clear();
38     }
39     };
40    
41    
42     struct JetVars{
43     //1=had, 2=e, 3=mu for heavy quarks;
44     //2=uds, 3=g for light quarks
45     unsigned int mcFlavour;
46     int partonFlavour;
47     unsigned int nAssociatedTracks;
48     float etaMean;
49     float phiMean;
50     float etaEtaMoment;
51     float phiPhiMoment;
52     float etaPhiMoment;
53     std::vector<HbbAnalysis::GenParticle> genMatches;
54     std::vector<HbbAnalysis::GenJet> genJetMatches;
55     //double rawEta;
56     //double rawPhi;
57     JetVars():
58     mcFlavour(0),
59     partonFlavour(0),
60     nAssociatedTracks(0),
61     etaMean(0),
62     phiMean(0),
63     etaEtaMoment(0),
64     phiPhiMoment(0),
65     etaPhiMoment(0)
66     {}
67     void Clear() {
68     mcFlavour = 0;
69     partonFlavour = 0;
70     nAssociatedTracks = 0;
71     etaMean = 0;
72     phiMean = 0;
73     etaEtaMoment = 0;
74     phiPhiMoment = 0;
75     etaPhiMoment = 0;
76     genMatches.clear();
77     genJetMatches.clear();
78     }
79     };
80    
81     }
82     #endif
83