]>
Commit | Line | Data |
---|---|---|
37dde34e | 1 | // $Id: AliJBaseEventHeader.h,v 1.5 2008/05/08 13:44:45 djkim Exp $ |
2 | ||
3 | //////////////////////////////////////////////////// | |
4 | /*! | |
5 | \file AliJBaseEventHeader.h | |
6 | \brief | |
7 | \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla) | |
8 | \email: djkim@jyu.fi | |
9 | \version $Revision: 1.5 $ | |
10 | \date $Date: 2008/05/08 13:44:45 $ | |
11 | */ | |
12 | //////////////////////////////////////////////////// | |
13 | ||
14 | #ifndef ALIJBASEEVENTHEADER_H | |
15 | #define ALIJBASEEVENTHEADER_H | |
16 | ||
17 | #ifndef ROOT_TObject | |
18 | #include <TObject.h> | |
19 | #endif | |
20 | #include <TNamed.h> | |
21 | ||
22 | class AliJBaseEventHeader : public TNamed { | |
23 | ||
24 | public: | |
25 | AliJBaseEventHeader(); // default constructor | |
26 | AliJBaseEventHeader(int eventid, float cent, float vtxz); // constructor | |
27 | AliJBaseEventHeader(const AliJBaseEventHeader& a); // copy constructor | |
28 | virtual ~AliJBaseEventHeader(){;} // destructor | |
29 | ||
30 | //getter | |
31 | int GetEventID() const {return fEventID;} | |
32 | float GetCentrality() const {return fCentrality;} | |
33 | float GetXVertex() const {return fVtxX;} | |
34 | float GetYVertex() const {return fVtxY;} | |
35 | float GetZVertex() const {return fVtxZ;} | |
36 | float GetZVertexErr() const {return fVtxZErr;} | |
37 | ||
38 | //setter | |
39 | void SetEventID(int evid) {fEventID=evid;} | |
40 | void SetCentrality(float cent) {fCentrality=cent;} | |
41 | void SetXVertex(float vt) {fVtxX=vt;} | |
42 | void SetYVertex(float vt) {fVtxY=vt;} | |
43 | void SetZVertex(float vt) {fVtxZ=vt;} | |
44 | void SetZVertexErr(float vt) {fVtxZErr=vt;} | |
45 | void SetVertex(float x, float y, float z, float err){ fVtxX=x;fVtxY=y;fVtxZ=z;fVtxZErr=err; } | |
46 | ||
47 | AliJBaseEventHeader& operator=(const AliJBaseEventHeader& header); | |
48 | ||
49 | private: | |
50 | ||
51 | Int_t fEventID; //event id | |
52 | Double32_t fCentrality; //centrality | |
53 | Double32_t fVtxX; //vertex X | |
54 | Double32_t fVtxY; //vertex Y | |
55 | Double32_t fVtxZ; //vertex Z | |
56 | Double32_t fVtxZErr; //vertex error | |
57 | ||
58 | ClassDef(AliJBaseEventHeader,1) | |
59 | ||
60 | }; | |
61 | ||
62 | #endif |