ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/csander/HEPTutorial/MyPhoton.h
Revision: 1.2
Committed: Tue Feb 28 22:48:16 2012 UTC (13 years, 2 months ago) by csander
Content type: text/plain
Branch: MAIN
CVS Tags: V120523_CS
Changes since 1.1: +4 -0 lines
Log Message:
added more plots for bg/signal comparisons

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.2 const bool IsIsolated() {
34     return (isolation < 1.);
35     }
36     ;
37 csander 1.1
38     private:
39    
40     double isolation;
41    
42     };
43    
44     #endif /* MYPHOTON_H_ */