cleaned up and improved some warnings during digitization. For SDD improved
authornilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 21 Oct 2001 19:21:20 +0000 (19:21 +0000)
committernilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 21 Oct 2001 19:21:20 +0000 (19:21 +0000)
the information given. For SSD remove warnings about no P or N strip  for a
given hit (here exists dead regions on SSD).

ITS/AliITSsimulationSDD.cxx
ITS/AliITSsimulationSSD.cxx

index 4c3322c..1152e96 100644 (file)
@@ -520,7 +520,9 @@ void AliITSsimulationSDD::HitsToAnalogDigits(AliITSmodule *mod,TObjArray *alst,
        // passing through detector
        if (!depEnergy) {
            Warning("HitsToAnalogDigits", 
-                   "This particle has passed without losing energy!");
+                   "fTrack = %d hit=%d module=%d This particle has"
+                   " passed without losing energy!",
+                   itrack,ii,mod->GetIndex());
            continue;
        } // end if !depEnergy
 
@@ -531,7 +533,10 @@ void AliITSsimulationSDD::HitsToAnalogDigits(AliITSmodule *mod,TObjArray *alst,
        if(drPath < 0) drPath = -drPath;
        drPath = sddLength-drPath;
        if(drPath < 0) {
-           Warning("HitsToAnalogDigits","negative drift path %e",drPath);
+           Warning("HitsToAnalogDigits",
+                   "negative drift path drPath=%e sddLength=%e dxL[0]=%e "
+                   "xL[0]=%e",
+                   drPath,sddLength,dxL[0],xL[0]);
            continue;
        } // end if drPath < 0
 
@@ -559,8 +564,9 @@ void AliITSsimulationSDD::HitsToAnalogDigits(AliITSmodule *mod,TObjArray *alst,
            driftPath = sddLength-driftPath;
            detector  = 2*(hitDetector-1) + iWing;
            if(driftPath < 0) {
-               Warning("HitsToAnalogDigits","Warning: negative drift path %e",
-                       driftPath);
+               Warning("HitsToAnalogDigits","negative drift path "
+                       "driftPath=%e sddLength=%e avDrft=%e dxL[0]=%e "
+                       "xL[0]=%e",driftPath,sddLength,avDrft,dxL[0],xL[0]);
                continue;
            } // end if driftPath < 0
 
@@ -580,11 +586,13 @@ void AliITSsimulationSDD::HitsToAnalogDigits(AliITSmodule *mod,TObjArray *alst,
            //   Anode
            xAnode = 10000.*(avAnode)/anodePitch + nofAnodes/2;  // +1?
            if(xAnode*anodePitch > sddWidth || xAnode*anodePitch < 0.) 
-                         Warning("HitsToAnalogDigits","Z = %e",
-                                 xAnode*anodePitch);
+                         Warning("HitsToAnalogDigits",
+                                 "Exceedubg sddWidth=%e Z = %e",
+                                 sddWidth,xAnode*anodePitch);
            iAnode = (Int_t) (1.+xAnode); // xAnode?
            if(iAnode < 1 || iAnode > nofAnodes) {
-               Warning("HitToAnalogDigits","Wrong iAnode: %d",iAnode);
+               Warning("HitToAnalogDigits","Wrong iAnode: 1<%d>%d",
+                       iAnode,nofAnodes);
                continue;
            } // end if iAnode < 1 || iAnode > nofAnodes
 
index 410d130..fd67d77 100644 (file)
@@ -240,12 +240,13 @@ void AliITSsimulationSSD::HitToDigit(Int_t module, Double_t x0, Double_t y0,
            if((w<(-0.5)) || (w>(GetNStrips()-0.5))) {
                // this check rejects hits in regions not covered by strips
                // 0.5 takes into account boundaries 
-               if(k==0) cout<<"AliITSsimulationSSD::HitToDigit: "
-                            "Warning: no strip in this region of P side"
-                            <<endl;
-               else cout<<"AliITSsimulationSSD::HitToDigit: "
-                        "Warning: no strip in this region of N side"<<endl;
+               return; // There are dead region on the SSD sensitive volume.
+               /*
+               if(k==0) Warning("HitToDigit",
+                                "no strip in this region of P side");
+               else Warning"HitToDigit","no strip in this region of N side");
                return;
+               */
            } // end if
 
            // sigma is the standard deviation of the diffusion gaussian