ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/csander/HEPTutorial/MyElectron.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     * MyElectron.h
3     *
4     * Created on: Feb 1, 2012
5     * Author: csander
6     */
7    
8     #ifndef MYELECTRON_H_
9     #define MYELECTRON_H_
10    
11     #include <TLorentzVector.h>
12    
13     class MyElectron: public TLorentzVector {
14    
15     public:
16    
17     MyElectron();
18     MyElectron(double px, double py, double pz, double e) {
19     SetPxPyPzE(px, py, pz, e);
20     }
21     ;
22     virtual ~MyElectron();
23    
24     void SetIsolation(double x) {
25     isolation = x;
26     }
27     ;
28    
29     void SetCharge(int q) {
30     charge = q;
31     }
32     ;
33    
34     const double GetIsolation() {
35     return isolation;
36     }
37     ;
38 csander 1.2 const bool IsIsolated() {
39     return (isolation < 1.);
40     }
41     ;
42 csander 1.1 const int GetCharge() {
43     return charge;
44     }
45     ;
46    
47     private:
48    
49     double isolation;
50     int charge;
51    
52     };
53    
54     #endif /* MYELECTRON_H_ */