From ecee53fc30c96bc94f2d8010ec818b644c0e314d Mon Sep 17 00:00:00 2001 From: masera Date: Thu, 11 Sep 2003 13:48:52 +0000 Subject: [PATCH] Data members of AliITSdigit classes defined as protected (They were public) --- ITS/AliITSClusterFinderSDD.cxx | 9 ++++++--- ITS/AliITSClusterFinderSPD.cxx | 18 +++++++++--------- ITS/AliITSClusterFinderSPDdubna.cxx | 2 +- ITS/AliITSDDLRawData.cxx | 16 ++++++++-------- ITS/AliITSMapA1.cxx | 6 +++--- ITS/AliITSMapA2.cxx | 4 ++-- ITS/AliITSdigit.h | 17 +++++++++-------- ITS/AliITSsimulationSPDdubna.cxx | 27 +++++++++------------------ 8 files changed, 47 insertions(+), 52 deletions(-) diff --git a/ITS/AliITSClusterFinderSDD.cxx b/ITS/AliITSClusterFinderSDD.cxx index db8e6ed9123..103ff466bf4 100644 --- a/ITS/AliITSClusterFinderSDD.cxx +++ b/ITS/AliITSClusterFinderSDD.cxx @@ -15,6 +15,9 @@ /* $Id$ $Log$ + Revision 1.33 2003/07/21 14:20:51 masera + Fix to track labes in SDD Rec-points + Revision 1.31.2.1 2003/07/16 13:18:04 masera Proper fix to track labels associated to SDD rec-points @@ -1300,9 +1303,9 @@ void AliITSClusterFinderSDD::GetRecPoints(){ rnew.SetSigmaX2(kRMSx*kRMSx); rnew.SetSigmaZ2(kRMSz*kRMSz); - if(dig) rnew.fTracks[0]=dig->fTracks[0]; - if(dig) rnew.fTracks[1]=dig->fTracks[1]; - if(dig) rnew.fTracks[2]=dig->fTracks[2]; + if(dig) rnew.fTracks[0]=dig->GetTrack(0); + if(dig) rnew.fTracks[1]=dig->GetTrack(1); + if(dig) rnew.fTracks[2]=dig->GetTrack(2); iTS->AddRecPoint(rnew); } // I clusters diff --git a/ITS/AliITSClusterFinderSPD.cxx b/ITS/AliITSClusterFinderSPD.cxx index ff953dff249..31fdda86b62 100644 --- a/ITS/AliITSClusterFinderSPD.cxx +++ b/ITS/AliITSClusterFinderSPD.cxx @@ -109,29 +109,29 @@ void AliITSClusterFinderSPD::FindRawClusters(Int_t module){ // scanf("%d",ndig); for(ndig=0; ndigUncheckedAt(ndig); - digx[digitcount] = dig->fCoord2+1; //starts at 1 - digz[digitcount] = dig->fCoord1+1; //starts at 1 - digtr1[digitcount] = dig->fTracks[0]; + digx[digitcount] = dig->GetCoord2()+1; //starts at 1 + digz[digitcount] = dig->GetCoord1()+1; //starts at 1 + digtr1[digitcount] = dig->GetTrack(0); digtr2[digitcount] = -3; digtr3[digitcount] = -3; //cout << "digtr1["<fTracks[i] && iGetNTracks()) i++; + while(digtr1[digitcount]==dig->GetTrack(i) && iGetNTracks()) i++; //cout << " fTracks["<fTracks[i]; if(iGetNTracks()){ - digtr2[digitcount] = dig->fTracks[i]; + digtr2[digitcount] = dig->GetTrack(i); //cout << "digtr2["<fTracks[i] || - digtr2[digitcount]==dig->fTracks[i] )&& + while((digtr1[digitcount]==dig->GetTrack(i) || + digtr2[digitcount]==dig->GetTrack(i))&& i<=dig->GetNTracks()) i++; - if(iGetNTracks()) digtr3[digitcount] = dig->fTracks[i]; + if(iGetNTracks()) digtr3[digitcount] = dig->GetTrack(i); //cout << " fTracks["<GetNTracks()) cout <fTracks[i]; //cout << "digtr3["<UncheckedAt(digit); - iz=digs->fCoord1; // Anode - ix=digs->fCoord2; // Time - is=digs->fSignal; // ADC Signal + iz=digs->GetCoord1(); // Anode + ix=digs->GetCoord2(); // Time + is=digs->GetSignal(); // ADC Signal if (fVerbose==2) ftxt<<"DDL:"<fCoord1; // Cell number in Z direction - ix=digs->fCoord2; // Cell number in X direction + iz=digs->GetCoord1(); // Cell number in Z direction + ix=digs->GetCoord2(); // Cell number in X direction chipNo=iz/32; if(fVerbose==2) ftxt<<"DDL:"<UncheckedAt(ndig); - if(dig->fSignal > fMapThreshold) { - SetHit(dig->fCoord1,dig->fCoord2,ndig); + if(dig->GetSignal() > fMapThreshold) { + SetHit(dig->GetCoord1(),dig->GetCoord2(),ndig); } // end if fSignal > fMapthreshold } // end for ndig } @@ -194,7 +194,7 @@ Double_t AliITSMapA1::GetSignal(Int_t iz, Int_t ix){ Double_t signal; AliITSdigit *dig = (AliITSdigit*)GetHit(iz,ix); - if(dig) signal=(Double_t)dig->fSignal; + if(dig) signal=(Double_t)dig->GetSignal(); else signal=0.; return signal; } diff --git a/ITS/AliITSMapA2.cxx b/ITS/AliITSMapA2.cxx index ae7e1b16d85..74f6e4ad513 100644 --- a/ITS/AliITSMapA2.cxx +++ b/ITS/AliITSMapA2.cxx @@ -146,8 +146,8 @@ void AliITSMapA2::FillMap(){ AliITSdigit *dig; for (Int_t ndig=0; ndigUncheckedAt(ndig); - Double_t signal = (Double_t)(dig->fSignal); - if (signal > fMapThresholdD) SetHit(dig->fCoord1,dig->fCoord2,signal); + Double_t signal = (Double_t)(dig->GetSignal()); + if (signal > fMapThresholdD) SetHit(dig->GetCoord1(),dig->GetCoord2(),signal); } // end for ndig } //______________________________________________________________________ diff --git a/ITS/AliITSdigit.h b/ITS/AliITSdigit.h index 0d1563ec44d..059e0bd099f 100644 --- a/ITS/AliITSdigit.h +++ b/ITS/AliITSdigit.h @@ -46,7 +46,7 @@ class AliITSdigit: public TObject { void Print(ostream *os); // Class ascii print function void Read(istream *os); // Class ascii read function - public: + protected: Int_t fCoord1; // Cell number on Z axis (SPD+SDD), flag for side type (SSD) Int_t fCoord2; // Cell number on X axis (SPD+SDD), strip number (SSD) Int_t fSignal; // Signal in ADC counts @@ -68,6 +68,8 @@ class AliITSdigitSPD: public AliITSdigit { virtual ~AliITSdigitSPD(){/*destructor*/} // returns the array size used to store Tracks and Hits static Int_t GetNTracks() {return fkSspd;} + // returns the signal in electrons + Int_t GetSignalSPD() {return fSignalSPD;} // returns pointer to the array of tracks which make this digit virtual Int_t *GetTracks() {return &fTracks[0];} //returns the pointer to the array of hits which made this digit @@ -81,6 +83,8 @@ class AliITSdigitSPD: public AliITSdigit { //copy the array trks[fkSspd] into fTracks virtual void SetTracks(const Int_t *trks){ for(Int_t i=0;i threshold) { - dig.fCoord1 = iz; - dig.fCoord2 = ix; - dig.fSignal = 1; - dig.fSignalSPD = (Int_t) pList->GetSignal(iz+1,ix+1); - /* - digits[0] = iz; - digits[1] = ix; - digits[2] = 1; */ + dig.SetCoord1(iz); + dig.SetCoord2(ix); + dig.SetSignal(1); + Int_t sigspd = (Int_t) pList->GetSignal(iz+1,ix+1); + dig.SetSignalSPD(sigspd); for(j=0;jGetNEnteries()) { - dig.fTracks[j] = pList->GetTrack(iz+1,ix+1,j); - dig.fHits[j] = pList->GetHit(iz+1,ix+1,j); - /* - tracks[j] = pList->GetTrack(iz+1,ix+1,j); - hits[j] = pList->GetHit(iz+1,ix+1,j); - */ + dig.SetTrack(j,pList->GetTrack(iz+1,ix+1,j)); + dig.SetHit(j,pList->GetHit(iz+1,ix+1,j)); }else { // Default values - dig.fTracks[j] = -3; - dig.fHits[j] = -1; -/* tracks[j] = -2; //noise - hits[j] = -1; */ + dig.SetTrack(j,-3); + dig.SetHit(j,-3); } // end if pList } // end for j // charges[0] = (Float_t) pList->GetSumSignal(iz+1,ix+1); -- 2.39.3