1 |
#ifndef TrackObj_H
|
2 |
#define TrackObj_H
|
3 |
#include "TObject.h"
|
4 |
#include <ostream>
|
5 |
|
6 |
class TrackObj : public TObject {
|
7 |
public:
|
8 |
TrackObj(float pt=0., float eta=0., float phi=0., int charge=0) : thePt(pt), theEta(eta), thePhi(phi), theCharge(charge) {}
|
9 |
void setKine(float pt, float eta, float phi, int charge) { thePt=pt; theEta=eta; thePhi=phi; theCharge=charge;}
|
10 |
virtual ~TrackObj(){}
|
11 |
float pt() const { return thePt;}
|
12 |
float eta() const { return theEta;}
|
13 |
float phi() const { return thePhi;}
|
14 |
int charge() const { return theCharge;}
|
15 |
private:
|
16 |
float thePt, theEta, thePhi;
|
17 |
int theCharge;
|
18 |
friend ostream & operator<< (ostream &out, const TrackObj &o);
|
19 |
public:
|
20 |
ClassDef(TrackObj,1)
|
21 |
};
|
22 |
#endif
|