3 // Author: Anders Vestbo <mailto:vestbo$fi.uib.no>
4 //*-- Copyright © ASV
9 #include "AliL3ModelTrack.h"
10 #include "AliL3Defs.h"
12 ClassImp(AliL3ModelTrack)
14 AliL3ModelTrack::AliL3ModelTrack()
25 AliL3ModelTrack::~AliL3ModelTrack()
35 void AliL3ModelTrack::Init(Int_t slice,Int_t patch)
38 Int_t nrows = NumRows[patch];
39 fClusters = new ClusterComp[nrows];
40 memset((void*)fClusters,0,nrows*sizeof(ClusterComp));
42 fPad = new Float_t[NRowsSlice];
43 fTime = new Float_t[NRowsSlice];
50 void AliL3ModelTrack::SetCluster(Float_t fpad,Float_t ftime,Float_t charge,Float_t sigmaY2,Float_t sigmaZ2)
52 ClusterComp *cl = &fClusters[fNClusters];
58 cl->fDTime = ftime - GetTimeHit(fNClusters);
59 cl->fDPad = fpad - GetPadHit(fNClusters);
60 cl->fDCharge = charge - fClusterCharge;
62 cout<<"DPad "<<fpad<<" dtime "<<ftime<<" charge "<<charge<<" sigmaY2 "<<sigmaY2<<" sigmaZ2 "<<sigmaZ2<<endl;