ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/csander/HEPTutorial/MyPhoton.h
Revision: 1.4
Committed: Fri Jul 6 08:19:52 2012 UTC (12 years, 9 months ago) by csander
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +35 -35 lines
Error occurred while calculating annotation data.
Log Message:
v1.0, including a small ntupler for further skimming

File Contents

# Content
1 /*
2 * MyPhoton.h
3 *
4 * Created on: Feb 1, 2012
5 * Author: csander
6 */
7
8 #ifndef MYPHOTON_H_
9 #define MYPHOTON_H_
10
11 #include <TLorentzVector.h>
12
13 class MyPhoton: public TLorentzVector {
14
15 public:
16
17 MyPhoton();
18 MyPhoton(double px, double py, double pz, double e) {
19 SetPxPyPzE(px, py, pz, e);
20 }
21 ;
22 virtual ~MyPhoton();
23
24 void SetIsolation(double x) {
25 isolation = x;
26 }
27 ;
28
29 const double GetIsolation() {
30 return isolation;
31 }
32 ;
33
34 const bool IsIsolated(double x = 0.2) {
35 return (isolation < x * Pt());
36 }
37 ;
38
39 void SetMatchedGenPhoton(double px, double py, double pz, double e) {
40 genphoton.SetPxPyPzE(px, py, pz, e);
41 }
42 ;
43
44 const TLorentzVector GetGenPhoton() {
45 return genphoton;
46 }
47 ;
48
49 private:
50
51 double isolation;
52 TLorentzVector genphoton;
53
54 };
55
56 #endif /* MYPHOTON_H_ */