/************************************************************************** * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ //////////////////////////////////////////////////// // Stand alone track class // // Origin: Elisabetta Crescio // // e-mail: crescio@to.infn.it // // it is a V2 track with a possible number // // of cluster equal to fgkMaxNumberOfClusters // //////////////////////////////////////////////////// #include "AliITSgeomTGeo.h" #include "AliITStrackSA.h" ClassImp(AliITStrackSA) //_____________________________________ AliITStrackSA:: AliITStrackSA() : AliITStrackMI(), fNSA(0) { // Default constructor SetNumberOfClusters(0); SetNumberOfClustersSA(0); ResetIndexSA(); for(Int_t nlay=0;nlay=fgkMaxNumberOfClusters){ Warning("AddClusterSA","Maximum number of clusters already reached. Nothing is done\n"); return; } fSain[presnum] = (layer<<28)+clnumb; presnum++; SetNumberOfClustersSA(presnum); } //____________________________________________________________ void AliITStrackSA::AddClusterMark(Int_t layer, Int_t clnumb) { // add one clusters to the list (maximum number=fgkMaxNumberOfClusters) Int_t presnum = GetNumberOfMarked(layer); // printf("presnum=%d\n",presnum); if(presnum>=fgkMaxNumberOfClustersL){ Warning("AddClusterMark","Maximum number of clusters already reached. Nothing is done\n"); return; } fCluMark[layer][presnum] = clnumb; presnum++; SetNumberOfMarked(layer,presnum); } //____________________________________________________________ void AliITStrackSA::AddClusterV2(Int_t layer,Int_t clnumb) { // add one clusters to the list (maximum number=6) Int_t presnum = GetNumberOfClusters(); if(presnum>=kMaxLayer){ Warning("AddClusterV2","Maximum number of clusters already reached. Nothing is done\n"); return; } fIndex[presnum] = (layer<<28)+clnumb; presnum++; SetNumberOfClusters(presnum); } //_____________________________________________________________ void AliITStrackSA::ResetMarked(){ //Reset array of marked clusters for(Int_t nlay=0;nlay