ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/csander/HEPTutorial/MyMuon.h
Revision: 1.2
Committed: Wed Feb 1 14:55:47 2012 UTC (13 years, 3 months ago) by csander
Content type: text/plain
Branch: MAIN
Changes since 1.1: +11 -0 lines
Log Message:
electrons and photons included

File Contents

# User Rev Content
1 csander 1.1 /*
2     * MyMuon.h
3     *
4     * Created on: Feb 1, 2012
5     * Author: csander
6     */
7    
8     #ifndef MYMUON_H_
9     #define MYMUON_H_
10    
11     #include <TLorentzVector.h>
12    
13     class MyMuon: public TLorentzVector {
14    
15     public:
16    
17     MyMuon();
18     MyMuon(double px, double py, double pz, double e) {
19     SetPxPyPzE(px, py, pz, e);
20     }
21     ;
22     virtual ~MyMuon();
23    
24     void SetIsolation(double x) {
25     isolation = x;
26     }
27     ;
28    
29 csander 1.2 void SetCharge(int q) {
30     charge = q;
31     }
32     ;
33    
34 csander 1.1 const double GetIsolation() {
35     return isolation;
36     }
37     ;
38    
39 csander 1.2 const int GetCharge() {
40     return charge;
41     }
42     ;
43    
44 csander 1.1 private:
45    
46     double isolation;
47 csander 1.2 int charge;
48 csander 1.1
49     };
50    
51     #endif /* MYMUON_H_ */