From a9ebbc7a95e41ecc9e6c9bfb2f976a12373c3a29 Mon Sep 17 00:00:00 2001 From: dsilverm Date: Mon, 8 Feb 2010 17:59:25 +0000 Subject: [PATCH] index order bug fix - from Paola --- EMCAL/AliCaloRawAnalyzerNN.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EMCAL/AliCaloRawAnalyzerNN.cxx b/EMCAL/AliCaloRawAnalyzerNN.cxx index 070cc9a18e7..80edcdab77c 100644 --- a/EMCAL/AliCaloRawAnalyzerNN.cxx +++ b/EMCAL/AliCaloRawAnalyzerNN.cxx @@ -124,8 +124,8 @@ AliCaloRawAnalyzerNN::Evaluate( const vector &bunchvector, // double amp = maxamp*fNeuralNet->Value( 0, fNNInput[0], fNNInput[1], fNNInput[2], fNNInput[3], fNNInput[4]); // double tof = (fNeuralNet->Value( 1, fNNInput[0], fNNInput[1], fNNInput[2], fNNInput[3], fNNInput[4]) + maxrev )*256 ; - double amp = maxamp*fNeuralNet->Value( 0, fNNInput[4], fNNInput[3], fNNInput[2], fNNInput[1], fNNInput[0]); - double tof = (fNeuralNet->Value( 1, fNNInput[4], fNNInput[3], fNNInput[2], fNNInput[1], fNNInput[0]) + maxrev )*256 ; + double amp = (maxamp - ped)*fNeuralNet->Value( 0, fNNInput[0], fNNInput[1], fNNInput[2], fNNInput[3], fNNInput[4]); + double tof = (fNeuralNet->Value( 1, fNNInput[0], fNNInput[1], fNNInput[2], fNNInput[3], fNNInput[4]) + maxrev )*256 ; // double tof = fNeuralNet->Value( 1, fReversed[maxrev-2]/maxamp, fReversed[maxrev -1]/maxamp, fReversed[maxrev]/maxamp, fReversed[maxrev+1]/maxamp, fReversed[maxrev+2]/maxamp); -- 2.43.0