1 |
loizides |
1.5 |
// $Id: Particle.h,v 1.4 2008/06/04 14:04:47 loizides 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 |
|
|
// Authors: C.Loizides, xxx
|
15 |
|
|
//
|
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 |
loizides |
1.5 |
Double_t E() const { return fFourVector.E(); }
|
28 |
|
|
Double_t Eta() const { return fFourVector.Eta(); }
|
29 |
|
|
Double_t Phi() const { return fFourVector.Phi(); }
|
30 |
loizides |
1.4 |
Double_t Pt() const { return fFourVector.Pt(); }
|
31 |
loizides |
1.5 |
Double_t Px() const { return fFourVector.Px(); }
|
32 |
|
|
Double_t Py() const { return fFourVector.Py(); }
|
33 |
|
|
Double_t Pz() const { return fFourVector.Pz(); }
|
34 |
loizides |
1.4 |
|
35 |
|
|
protected:
|
36 |
|
|
FourVector fFourVector; //momentum vector
|
37 |
|
|
|
38 |
loizides |
1.1 |
ClassDef(Particle, 1) // Particle class
|
39 |
|
|
};
|
40 |
|
|
|
41 |
|
|
} /*namespace mithep*/
|
42 |
|
|
|
43 |
|
|
#endif /*DATATREE_PARTICLE_H*/
|