ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/csander/HEPTutorial/MyTau.h
Revision: 1.1
Committed: Wed May 23 11:46:55 2012 UTC (12 years, 11 months ago) by csander
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
Extenden by Taus, Partons, EventNumbers, ...

File Contents

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