//_________________________________________________________________________
AliITSUSeed::AliITSUSeed()
: fHitsPattern(0)
+ ,fNChildren(0)
,fClID(0)
,fChi2Glo(0)
,fChi2Cl(0)
AliITSUSeed::AliITSUSeed(const AliITSUSeed& src)
:AliExternalTrackParam(src)
,fHitsPattern(src.fHitsPattern)
+ ,fNChildren(src.fNChildren)
,fClID(src.fClID)
,fChi2Glo(src.fChi2Glo)
,fChi2Cl(src.fChi2Cl)
{
// print seed info
int lr,cl = GetLrCluster(lr);
- printf("%cLr%d Cl:%4d Chi2Glo:%7.2f(%7.2f) Chi2Cl:%7.2f Penalty: %7.2f",IsKilled() ? '-':' ',
- lr,cl,GetChi2Glo(),GetChi2GloNrm(),GetChi2Cl(), GetChi2Penalty());
+ printf("%cLr%d Nchild: %3d Cl:%4d Chi2Glo:%7.2f(%7.2f) Chi2Cl:%7.2f Penalty: %7.2f",IsKilled() ? '-':' ',
+ lr,GetNChildren(),cl,GetChi2Glo(),GetChi2GloNrm(),GetChi2Cl(), GetChi2Penalty());
printf(" |");
int lrc=0;
const AliITSUSeed *sdc = this;
ResetFMatrix();
fHitsPattern = 0;
fClID = 0;
+ fNChildren = 0;
fChi2Glo = fChi2Cl = fChi2Penalty = 0;
fParent = 0; //!!!
}
return kTRUE;
}
+//__________________________________________________________________
+Int_t AliITSUSeed::GetClusterIndex(Int_t ind) const
+{
+ // get ind-th cluster index
+ int ncl = 0;
+ const AliITSUSeed* seed = this;
+ while(seed) {
+ if ( seed->HasCluster() && (ncl++==ind) ) return seed->GetLrClusterID();//GetClusterID();
+ seed = (AliITSUSeed*)seed->GetParent();
+ }
+ return -1;
+ //
+}
+
//______________________________________________________________________________
Bool_t AliITSUSeed::RotateToAlpha(Double_t alpha)
{
return &aba[0];
}
+//____________________________________________________________________
+Bool_t AliITSUSeed::ContainsFake() const
+{
+ // check if the full branch containes a fake cluster
+ const AliITSUSeed* seed = this;
+ while(seed) {
+ if ( seed->IsFake() ) return kTRUE;
+ seed = (AliITSUSeed*)seed->GetParent();
+ }
+ return kFALSE;
+}
+
/*
//____________________________________________________________________
Bool_t AliITSUSeed::Smooth(Double_t vecL[5],Double_t matL[15])
}
*/
+