1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 #include <Riostream.h>
20 #include <AliITSlayerUpgrade.h>
21 #include <AliITStrackerMI.h>
23 AliITSlayerUpgrade::AliITSlayerUpgrade():
28 { //--------------------------------------------------------------------
29 //default AliITSlayerUpgrade constructor
30 //--------------------------------------------------------------------
32 //___________________________________________________________________________
33 AliITSlayerUpgrade::AliITSlayerUpgrade(Double_t p,Double_t z):
39 //--------------------------------------------------------------------
40 //main AliITSlayerUpgrade constructor
41 //--------------------------------------------------------------------
43 for (Int_t i=0; i<AliITSRecoParam::fgkMaxClusterPerLayer; i++) fClusters[i]=0;
47 AliITSlayerUpgrade::~AliITSlayerUpgrade() {
48 //--------------------------------------------------------------------
49 // AliITSlayerUpgrade destructor
50 //--------------------------------------------------------------------
54 void AliITSlayerUpgrade::ResetClusters() {
55 //--------------------------------------------------------------------
56 // This function removes loaded clusters
57 //--------------------------------------------------------------------
59 for (Int_t i=0; i<fN; i++) delete fClusters[i];
65 Int_t AliITSlayerUpgrade::InsertCluster(AliITSRecPoint *c) {
66 //--------------------------------------------------------------------
67 // This function inserts a cluster to this layer in increasing
68 // order of the cluster's fZ
69 //--------------------------------------------------------------------
75 //-----------------------------------------------------------------------
76 const AliITSRecPoint *AliITSlayerUpgrade::GetNextCluster(Int_t &ci){
77 //--------------------------------------------------------------------
78 // This function returns clusters within the "window"
79 //--------------------------------------------------------------------
89 //_____________________________________________________________________
90 Int_t AliITSlayerUpgrade::GetNumberOfClusters() const {