ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/Particle.h
Revision: 1.7
Committed: Mon Jun 9 11:47:03 2008 UTC (16 years, 10 months ago) by paus
Content type: text/plain
Branch: MAIN
Changes since 1.6: +11 -11 lines
Log Message:
Minor cleanups.

File Contents

# User Rev Content
1 paus 1.7 // $Id: Particle.h,v 1.6 2008/06/09 00:06:36 bendavid Exp $
2 loizides 1.1
3     #ifndef DATATREE_PARTICLE_H
4     #define DATATREE_PARTICLE_H
5    
6 loizides 1.3 #include "MitAna/DataTree/interface/DataObject.h"
7 loizides 1.1
8     //--------------------------------------------------------------------------------------------------
9     //
10     // Particle
11     //
12     // Details to be worked out...
13     //
14 paus 1.7 // Authors: C.Loizides
15 loizides 1.1 //
16     //--------------------------------------------------------------------------------------------------
17    
18     namespace mithep
19     {
20 loizides 1.3 class Particle : public DataObject
21 loizides 1.1 {
22     public:
23     Particle() {}
24 loizides 1.5 Particle(Double_t px, Double_t py, Double_t pz, Double_t e) : fFourVector(px,py,pz,e) {}
25 loizides 1.3 ~Particle() {}
26 loizides 1.4
27 paus 1.7 Double_t E() const { return fFourVector.E(); }
28     Double_t Eta() const { return fFourVector.Eta(); }
29     Double_t Phi() const { return fFourVector.Phi(); }
30     Double_t Pt() const { return fFourVector.Pt(); }
31     Double_t Px() const { return fFourVector.Px(); }
32     Double_t Py() const { return fFourVector.Py(); }
33     Double_t Pz() const { return fFourVector.Pz(); }
34     Double_t Mass() const { return sqrt(fFourVector.M2()); }
35 loizides 1.4
36     protected:
37 paus 1.7 FourVector fFourVector; // four momentum vector
38 loizides 1.4
39 loizides 1.1 ClassDef(Particle, 1) // Particle class
40     };
41    
42     } /*namespace mithep*/
43    
44     #endif /*DATATREE_PARTICLE_H*/