ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/csander/HEPTutorial/MyPhoton.h
Revision: 1.3
Committed: Wed May 23 11:46:55 2012 UTC (12 years, 11 months ago) by csander
Content type: text/plain
Branch: MAIN
Changes since 1.2: +12 -0 lines
Log Message:
Extenden by Taus, Partons, EventNumbers, ...

File Contents

# User Rev Content
1 csander 1.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 csander 1.3
34 csander 1.2 const bool IsIsolated() {
35     return (isolation < 1.);
36     }
37     ;
38 csander 1.1
39 csander 1.3 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 csander 1.1 private:
50    
51     double isolation;
52 csander 1.3 TLorentzVector genphoton;
53 csander 1.1
54     };
55    
56     #endif /* MYPHOTON_H_ */