00001 #include "MyPoint.h"
00002
00003 ClassImp(MyPoint)
00004
00005 MyPoint::MyPoint()
00006 {
00007 fEnergy=0;
00008 fQuality=0;
00009 fPosition=TVector3();
00010 fDisToTrack=0;
00011 fNeta=0;
00012 fNphi=0;
00013 fEnEta=0;
00014 fSigmaEta=0;
00015 fEnPhi=0;
00016 fSigmaPhi=0;
00017 for(Int_t i=0;i<4;i++){
00018 fTowClusId[i]=-1;
00019 fTowClusEn[i]=0;
00020 }
00021 }
00022 MyPoint::MyPoint(Float_t e,Int_t q,const TVector3& p,Float_t d,Int_t Ne,Int_t Np)
00023 {
00024 fEnergy=e;
00025 fQuality=q;
00026 fPosition=TVector3(p);
00027 fDisToTrack=d;
00028 fNeta=Ne;
00029 fNphi=Np;
00030 fEnEta=0;
00031 fSigmaEta=0;
00032 fEnPhi=0;
00033 fSigmaPhi=0;
00034 for(Int_t i=0;i<4;i++){
00035 fTowClusId[i]=-1;
00036 fTowClusEn[i]=0;
00037 }
00038 }
00039 MyPoint::MyPoint(MyPoint *point)
00040 {
00041 fEnergy=point->energy();
00042 fQuality=point->quality();
00043 fPosition=TVector3(point->position());
00044 fDisToTrack=point->distanceToTrack();
00045 fNeta=point->nHitsEta();
00046 fNphi=point->nHitsPhi();
00047 fEnEta=point->energyEta();
00048 fSigmaEta=point->widthEta();
00049 fEnPhi=point->energyPhi();
00050 fSigmaPhi=point->widthPhi();
00051 for(Int_t i=0;i<4;i++){
00052 fTowClusId[i]=point->towerClusterId(i);
00053 fTowClusEn[i]=point->towerClusterEnergy(i);
00054 }
00055 }
00056 MyPoint::~MyPoint()
00057 {
00058
00059 }
00060
00061