set ToT signal in TDC counts also in simulation
authorarcelli <arcelli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Mar 2007 16:32:42 +0000 (16:32 +0000)
committerarcelli <arcelli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Mar 2007 16:32:42 +0000 (16:32 +0000)
TOF/AliTOFDigitizer.cxx

index 09cb983..8734d7c 100644 (file)
@@ -465,7 +465,7 @@ void AliTOFDigitizer::DecalibrateTOFSignal( AliTOFcalib *calib){
     detId[3] = dig->GetPadz();
     detId[4] = dig->GetPadx();
     // For Data with no Miscalibration, set ToT signal == Adc
-    dig->SetToT(dig->GetAdc());
+    dig->SetToT(dig->GetAdc()/AliTOFGeometry::TdcBinWidth());
     if(hToT->GetEntries()>0){  
       Float_t trix = 0;
       Float_t triy = 0;
@@ -479,7 +479,7 @@ void AliTOFDigitizer::DecalibrateTOFSignal( AliTOFcalib *calib){
        simToT=hToT->GetBinContent(binx);
       }
     // Setting realistic ToT signal (only for Miscalibrated Data)   
-      dig->SetToT(trix);
+      dig->SetToT(trix/AliTOFGeometry::TdcBinWidth());
     }
     Int_t index = calib->GetIndex(detId);     
     AliTOFChannel *calChannel = cal->GetChannel(index);