ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/dhidas/OSUAnalysis/Tools/interface/TtbarHypothesis.h
Revision: 1.1.1.1 (vendor branch)
Committed: Thu Dec 1 16:28:48 2011 UTC (13 years, 5 months ago) by dhidas
Content type: text/plain
Branch: dhidas, MAIN
CVS Tags: START, HEAD
Changes since 1.1: +0 -0 lines
Log Message:
osu copy modified

File Contents

# Content
1 /*
2 * TTbarHypothesis.h
3 *
4 * Created on: Dec 4, 2010
5 * Author: lkreczko
6 */
7
8 #ifndef TTBARHYPOTHESIS_H_
9 #define TTBARHYPOTHESIS_H_
10 #include "RecoObjects/Electron.h"
11 #include "RecoObjects/Jet.h"
12 #include "RecoObjects/MET.h"
13 #include "RecoObjects/Particle.h"
14
15 namespace BAT {
16 class TtbarHypothesis {
17 public:
18 TtbarHypothesis();
19 virtual ~TtbarHypothesis();
20 double totalChi2, leptonicChi2, hadronicChi2, globalChi2, disc;
21 ParticlePointer hadronicTop, leptonicTop, leptonicW, hadronicW, resonance, neutrinoFromW;
22 JetPointer leptonicBjet, hadronicBJet, jet1FromW, jet2FromW;
23 LeptonPointer leptonFromW;
24 ElectronPointer electronFromW; // For compatibility with older code
25 METPointer met;
26
27 double M3() const;
28
29 bool operator==(const TtbarHypothesis& hyp) const;
30 bool operator<(const TtbarHypothesis& hyp) const;
31
32 };
33
34 typedef boost::shared_ptr<TtbarHypothesis> TtbarHypothesisPointer;
35
36 struct compare_totalChi2 {
37 bool operator ()(TtbarHypothesisPointer lhs, TtbarHypothesisPointer rhs) {
38 return lhs->totalChi2 < rhs->totalChi2;
39 }
40
41 bool operator ()(TtbarHypothesis lhs, TtbarHypothesis rhs) {
42 return lhs.totalChi2 < rhs.totalChi2;
43 }
44 };
45
46 struct compare_disc {
47 bool operator ()(TtbarHypothesisPointer lhs, TtbarHypothesisPointer rhs) {
48 return lhs->disc <= rhs->disc;
49 }
50
51 bool operator ()(TtbarHypothesis lhs, TtbarHypothesis rhs) {
52 return lhs.disc <= rhs.disc;
53 }
54 };
55 } // namespace BAT
56
57 #endif /* TTBARHYPOTHESIS_H_ */