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