]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsimulationSDD.cxx
fix reporting of writing speed when interrupted by signal.
[u/mrichter/AliRoot.git] / ITS / AliITSsimulationSDD.cxx
index c2e6d0b38976df6e98a38a9ac018c7959960d484..903488620db0a7fd6e93dc01fd8fbb61adbfdb78 100644 (file)
@@ -136,7 +136,7 @@ void FastFourierTransform(AliITSetfSDD *alisddetf,Double_t *real,
     return;
 }
 //______________________________________________________________________
-AliITSsimulationSDD::AliITSsimulationSDD(){
+AliITSsimulationSDD::AliITSsimulationSDD() {
     // Default constructor
 
     fResponse      = 0;
@@ -204,6 +204,7 @@ AliITSsimulationSDD::AliITSsimulationSDD(AliITSsegmentation *seg,
     fMaxNofSamples = 0;
     fITS           = 0;
     fTreeB         = 0;
+    SetDebug(kFALSE);
 
     Init((AliITSsegmentationSDD*)seg,(AliITSresponseSDD*)resp);
 }
@@ -528,10 +529,12 @@ void AliITSsimulationSDD::HitsToAnalogDigits( AliITSmodule *mod ) {
         // continue if the particle did not lose energy
         // passing through detector
         if (!depEnergy) {
+         if(GetDebug()){ 
             Warning("HitsToAnalogDigits", 
                     "fTrack = %d hit=%d module=%d This particle has"
                     " passed without losing energy!",
                     itrack,ii,mod->GetIndex());
+         }
             continue;
         } // end if !depEnergy
 
@@ -542,11 +545,13 @@ void AliITSsimulationSDD::HitsToAnalogDigits( AliITSmodule *mod ) {
         if(drPath < 0) drPath = -drPath;
         drPath = sddLength-drPath;
         if(drPath < 0) {
+         if(GetDebug()){ // this should be fixed at geometry level
             Warning("HitsToAnalogDigits",
                     "negative drift path drPath=%e sddLength=%e dxL[0]=%e "
                     "xL[0]=%e",
                     drPath,sddLength,dxL[0],xL[0]);
-            continue;
+         }
+         continue;
         } // end if drPath < 0
 
         // Compute number of segments to brake step path into
@@ -573,9 +578,11 @@ void AliITSsimulationSDD::HitsToAnalogDigits( AliITSmodule *mod ) {
             driftPath = sddLength-driftPath;
             detector  = 2*(hitDetector-1) + iWing;
             if(driftPath < 0) {
+              if(GetDebug()){ // this should be fixed at geometry level
                 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