#include <TParticle.h>
#include <TVector.h>
+#include <TRandom.h>
#include "AliRunLoader.h"
#include "AliRun.h"
#include "AliLog.h"
ClassImp(AliTPCFast)
+ //____________________________________________________________________
+AliTPCFast::AliTPCFast(const AliTPCFast ¶m)
+ :TObject(param),fParam(0)
+{
+ //
+ // copy constructor - dummy
+ //
+ fParam = param.fParam;
+}
+AliTPCFast & AliTPCFast::operator =(const AliTPCFast & param)
+{
+ //
+ // assignment operator - dummy
+ //
+ fParam=param.fParam;
+ return (*this);
+}
//_____________________________________________________________________________
void AliTPCFast::Hits2Clusters(AliRunLoader* runLoader) const
Float_t ymax=xprim*TMath::Tan(0.5*alpha);
if (TMath::Abs(xyz[0])>ymax) xyz[0]=yprim;
xyz[1]=gRandom->Gaus(tpcHit->Z(),TMath::Sqrt(sigmaZ)); // z
- if (TMath::Abs(xyz[1])>param->GetZLength()) xyz[1]=tpcHit->Z();
+ if (TMath::Abs(xyz[1])>param->GetZLength(isec)) xyz[1]=tpcHit->Z();
xyz[2]=sigmaRphi; // fSigmaY2
xyz[3]=sigmaZ; // fSigmaZ2
xyz[4]=tpcHit->fQ; // q
sigmay2 = TMath::Min(sigmay2,1.);
//
//
- z = sign*(param->GetZLength() - z);
- if (TMath::Abs(z)< param->GetZLength()-1){
+ z = sign*(param->GetZLength(isec) - z);
+ if (TMath::Abs(z)< param->GetZLength(isec)-1){
AliTPCClustersRow * row = (clustersArray->GetRow(isec,lastrow));
if (row!=0) {
AliTPCclusterMI* cl = new((AliTPCclusterMI*)row->Append()) AliTPCclusterMI ;