]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/scripts/DrawHitsDigits.C
A lot of changes after detector review:
[u/mrichter/AliRoot.git] / FMD / scripts / DrawHitsDigits.C
index 94c8df276855884e63b44553f3cea51ff3b37eee..e5bd31b88065563e88ff83d50be6140faeca6129 100644 (file)
@@ -65,6 +65,7 @@ public:
   //__________________________________________________________________
   Bool_t ProcessHit(AliFMDHit* hit, TParticle*) 
   {
+    // Info("ProcessHit", "Processing hit %p", hit);
     // Cache the energy loss 
     if (!hit) return kFALSE;
     UShort_t det = hit->Detector();
@@ -77,11 +78,13 @@ public:
     }
     fMap(det, rng, sec, str).fEdep += hit->Edep();
     fMap(det, rng, sec, str).fN++;
+    // hit->Print();
     return kTRUE;
   }
   //__________________________________________________________________
   Bool_t ProcessDigit(AliFMDDigit* digit)
   {
+    // Info("ProcessDigit", "Processing digit %p", digit);
     if (!digit) return kFALSE;
     UShort_t det = digit->Detector();
     Char_t   rng = digit->Ring();
@@ -92,6 +95,10 @@ public:
       return kFALSE;
     }
     fElossVsAdc->Fill(fMap(det, rng, sec, str).fEdep, digit->Counts());
+    if (fMap(det, rng, sec, str).fEdep > 0) 
+      Info("ProcessDigit", "FMD%d%c[%2d,%3d] Edep=%8.5f -> ADC=0x%03x",
+          det, rng, sec, str, 
+          fMap(det, rng, sec, str).fEdep, digit->Counts());
     return kTRUE;
   }
   //__________________________________________________________________