AliTPCtrack(),
fEsd(0x0),
fClusterOwner(kFALSE),
- fPoints(0x0),
- fEPoints(0x0),
fRow(0),
fSector(-1),
fRelativeSector(-1),
AliTPCtrack(s),
fEsd(0x0),
fClusterOwner(clusterOwner),
- fPoints(0x0),
- fEPoints(0x0),
fRow(0),
fSector(-1),
fRelativeSector(-1),
AliTPCtrack(t),
fEsd(0x0),
fClusterOwner(kFALSE),
- fPoints(0x0),
- fEPoints(0x0),
fRow(0),
fSector(-1),
fRelativeSector(-1),
AliTPCtrack(xr, alpha, xx, cc, index),
fEsd(0x0),
fClusterOwner(kFALSE),
- fPoints(0x0),
- fEPoints(0x0),
fRow(0),
fSector(-1),
fRelativeSector(-1),
AliTPCseed::~AliTPCseed(){
//
// destructor
- if (fPoints) delete fPoints;
- fPoints =0;
- if (fEPoints) delete fEPoints;
- fEPoints = 0;
fNoCluster =0;
if (fClusterOwner){
for (Int_t icluster=0; icluster<160; icluster++){
fClusterOwner = param.fClusterOwner;
// leave out fPoint, they are also not copied in the copy ctor...
// but deleted in the dtor... strange...
- // fPoints =
- // fEPoints =
fRow = param.fRow;
fSector = param.fSector;
fRelativeSector = param.fRelativeSector;
return &fTrackPoints[i];
}
-void AliTPCseed::RebuildSeed()
-{
- //
- // rebuild seed to be ready for storing
- AliTPCclusterMI cldummy;
- cldummy.SetQ(0);
- AliTPCTrackPoint pdummy;
- pdummy.GetTPoint().SetShared(10);
- for (Int_t i=0;i<160;i++){
- AliTPCclusterMI * cl0 = fClusterPointer[i];
- AliTPCTrackPoint *trpoint = (AliTPCTrackPoint*)fPoints->UncheckedAt(i);
- if (cl0){
- trpoint->GetTPoint() = *(GetTrackPoint(i));
- trpoint->GetCPoint() = *cl0;
- trpoint->GetCPoint().SetQ(TMath::Abs(cl0->GetQ()));
- }
- else{
- *trpoint = pdummy;
- trpoint->GetCPoint()= cldummy;
- }
-
- }
-
-}
Double_t AliTPCseed::GetDensityFirst(Int_t n)
Float_t weight[200];
Int_t index[200];
//Int_t nc = 0;
- // TClonesArray & arr = *fPoints;
Float_t meanlog = 100.;
Float_t mean[4] = {0,0,0,0};
AliTPCTrackerPoint * GetTrackPoint(Int_t i);
AliTPCclusterMI * GetClusterFast(Int_t irow){ return fClusterPointer[irow];}
void SetClusterPointer(Int_t irow, AliTPCclusterMI* cl) {fClusterPointer[irow]=cl;}
- void RebuildSeed(); // rebuild seed to be ready for storing
Double_t GetDensityFirst(Int_t n);
Double_t GetSigma2C() const {
Double_t cnv=GetBz()*kB2C;
void SetSector(Int_t n) {fSector=n;}
void SetCurrentClusterIndex1(Int_t n) {fCurrentClusterIndex1=n;}
void SetInDead(Bool_t s) {fInDead=s;}
- void SetPoints(TClonesArray* p) {fPoints=p;}
- void SetEPoints(TClonesArray* p) {fEPoints=p;}
Double_t TPCrPID(Int_t i) const {return fTPCr[i];}
Double_t* TPCrPIDs() {return fTPCr;}
AliESDtrack * fEsd; //!
AliTPCclusterMI* fClusterPointer[160]; // array of cluster pointers -
Bool_t fClusterOwner; // indicates the track is owner of cluster
- TClonesArray * fPoints; //!array with points along the track
- TClonesArray * fEPoints; //! array with exact points - calculated in special macro not used in tracking
//---CURRENT VALUES
Int_t fRow; // current row number
Int_t fSector; // current sector number