1 // $Id: AliPhJPiZero.h,v 1.4 2008/05/08 15:19:52 djkim Exp $
3 ////////////////////////////////////////////////////
7 \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
9 \version $Revision: 1.4 $
10 \date $Date: 2008/05/08 15:19:52 $
12 ////////////////////////////////////////////////////
14 #ifndef ALIPHJPIZERO_H
15 #define ALIPHJPIZERO_H
27 #include <TLorentzVector.h>
29 #include "AliPhJBaseTrack.h"
30 #include "AliPhJPhoton.h"
35 class AliPhJPiZero : public AliPhJBaseTrack {
38 AliPhJPiZero();//{PhotSum.SetPxPyPzE(0,0,0,0);} //constructor
39 AliPhJPiZero(const AliPhJPiZero& a);//{PhotSum.SetPxPyPzE(0,0,0,0);} //constructor
40 ~AliPhJPiZero(){;} //destructor
42 bool SetMass(AliPhJPhoton* g1, AliPhJPhoton* g2);
44 float GetInvMass() const {return fPizM;}
45 float GetAsymm() const {return fAsymm;}
47 int GetMassBin() const {return fMassBin;}
48 void SetMassBin(int im) {fMassBin=im;}
49 void ResetToZero(){fPizM=0; fBasePt=0; fBasePhi=0; fBaseTheta=0; fAsymm=0; fMassBin=-1;}
51 TVector3 GetP() const {return fPi0P;}
52 //TLorentzVector &GetSum() {return *PhotSum;} //I think should be like that
53 TLorentzVector GetSum() const {return fPhotSum;}
55 double operator- (const AliPhJPiZero &pi0);
57 AliPhJPiZero& operator= (const AliPhJPiZero& piz);
60 TVector3 fV1, fV2; //vector 1 and 2
61 TVector3 fPi0P; // pi0 momentum
62 TLorentzVector fPhotSum; //sum of lorentz vectors of two photons
63 TLorentzVector fPhoton1, fPhoton2; //decay photons
64 float fAsymm, fPizM;//assymtery and inv. mass
65 int fMassBin; //mass bin
67 ClassDef(AliPhJPiZero,1)