return;
}
//______________________________________________________________________
-AliITSsimulationSDD::AliITSsimulationSDD(){
+AliITSsimulationSDD::AliITSsimulationSDD() {
// Default constructor
fResponse = 0;
fMaxNofSamples = 0;
fITS = 0;
fTreeB = 0;
+ SetDebug(kFALSE);
Init((AliITSsegmentationSDD*)seg,(AliITSresponseSDD*)resp);
}
// 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
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
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