ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/csander/HEPTutorial/MyParton.h
Revision: 1.2
Committed: Mon Jun 25 14:39:48 2012 UTC (12 years, 10 months ago) by csander
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +11 -1 lines
Log Message:
automated plotting

File Contents

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