]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSMapA2.cxx
changed default value for fGeVcharge
[u/mrichter/AliRoot.git] / ITS / AliITSMapA2.cxx
index 5993b057439bdbe9617ffd22350c2db1a331db59..74f6e4ad513f697664be1ca471076cfde864bd76 100644 (file)
@@ -105,7 +105,7 @@ AliITSMapA2::~AliITSMapA2(){
     if (fHitMapD) delete[] fHitMapD;
 }
 //______________________________________________________________________
-AliITSMapA2::AliITSMapA2(const AliITSMapA2 &source){
+AliITSMapA2::AliITSMapA2(const AliITSMapA2 &source) : AliITSMapA1(source){
     //     Copy Constructor 
 
     if(&source == this) return;
@@ -146,8 +146,8 @@ void  AliITSMapA2::FillMap(){
     AliITSdigit *dig;
     for (Int_t ndig=0; ndig<ndigits; ndig++) {
        dig = (AliITSdigit*)fObjects->UncheckedAt(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
 }
 //______________________________________________________________________
@@ -161,6 +161,7 @@ void AliITSMapA2::FlagHit(Int_t iz, Int_t ix){
 TObject* AliITSMapA2::GetHit(Int_t i, Int_t dummy){
   //return a pointer to the 1D histogram
 
+    dummy = 0; // added to remove unused variable warning.
     if (fObjects) {
        return fObjects->UncheckedAt(i);
     } else return NULL;