//_____________________________________________________________________________
AliTRDmcmTracklet::AliTRDmcmTracklet()
:TObject()
+ ,fGeo(0)
,fDetector(-1)
,fRow(-1)
,fTrackLabel(-1)
fCol[time] = 0;
}
+ fGeo = new AliTRDgeometry();
+
}
//_____________________________________________________________________________
AliTRDmcmTracklet::AliTRDmcmTracklet(Int_t det, Int_t row, Int_t n)
:TObject()
+ ,fGeo(0)
,fDetector(det)
,fRow(row)
,fTrackLabel(-1)
fGPos = new TGraph(0);
fGAmp = new TGraph(0);
+ fGeo = new AliTRDgeometry();
+
}
//_____________________________________________________________________________
AliTRDmcmTracklet::AliTRDmcmTracklet(const AliTRDmcmTracklet &t)
:TObject(t)
+ ,fGeo(0)
,fDetector(t.fDetector)
,fRow(t.fRow)
,fTrackLabel(t.fTrackLabel)
((AliTRDmcmTracklet &) t).fCol[time] = 0;
}
+ if (fGeo) {
+ delete fGeo;
+ }
+ fGeo = new AliTRDgeometry();
+
}
//_____________________________________________________________________________
if (fGPos != 0) delete fGPos;
if (fGAmp != 0) delete fGAmp;
+ if (fGeo) {
+ delete fGeo;
+ }
+
}
//_____________________________________________________________________________
return;
}
- AliTRDCommonParam* commonParam = AliTRDCommonParam::Instance();
- if (!commonParam) {
+ if (!AliTRDCommonParam::Instance()) {
AliError("No common parameters.");
return;
}
iplan = geo->GetPlane(fDetector);
icham = geo->GetChamber(fDetector);
- AliTRDpadPlane *padPlane = commonParam->GetPadPlane(iplan,icham);
+ AliTRDpadPlane *padPlane = fGeo->GetPadPlane(iplan,icham);
- Float_t samplFreq = commonParam->GetSamplingFrequency();
+ Float_t samplFreq = AliTRDCommonParam::Instance()->GetSamplingFrequency();
Int_t time, col;
Float_t amp[3];