/************************************************************************** * Copyright(c) 2004-2006, 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. * **************************************************************************/ #include #include /////////////////////////////////////////////////////////////////// // // // Class defining the digit object // for SPD // Inherits from AliITSdigit // // /////////////////////////////////////////////////////////////////// ClassImp(AliITSdigitSPD) //______________________________________________________________________ AliITSdigitSPD::AliITSdigitSPD():AliITSdigit(), fSignalSPD(0){ // default constructor, zero coordinates and set array // elements to clearly unphysical values. A value of 0 may // be a valide track of hit number. Int_t i; for(i=0;iGetNTracks(); Int_t n = 0,i,j; Bool_t inlist = kFALSE; t.Reset(-1); // -1 array. for(i=0;iGetTrack(i) == -1) continue; inlist = kFALSE; for(j=0;jGetTrack(i) == t.At(j)) inlist = kTRUE; if(!inlist){ // add to end of list t.AddAt(this->GetTrack(i),n); if(n> fTracks[i]; for(i=0;i> fHits[i]; *os >> fSignalSPD; } //______________________________________________________________________ ostream &operator<<(ostream &os,AliITSdigitSPD &source){ // Standard output streaming function. source.Print(&os); return os; } //______________________________________________________________________ istream &operator>>(istream &os,AliITSdigitSPD &source){ // Standard output streaming function. source.Read(&os); return os; }