LCOV - code coverage report
Current view: top level - HLT/PHOS - AliHLTPHOSRawAnalyzerCrude.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 13 0.0 %
Date: 2016-06-14 17:26:59 Functions: 0 6 0.0 %

          Line data    Source code
       1             : // $Id$
       2             : 
       3             : /**************************************************************************
       4             :  * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved.      *
       5             :  *                                                                        *
       6             :  * Author: Per Thomas Hille for the ALICE HLT Project.                    *
       7             :  * Contributors are mentioned in the code where appropriate.              *
       8             :  *                                                                        *
       9             :  * Permission to use, copy, modify and distribute this software and its   *
      10             :  * documentation strictly for non-commercial purposes is hereby granted   *
      11             :  * without fee, provided that the above copyright notice appears in all   *
      12             :  * copies and that both the copyright notice and this permission notice   *
      13             :  * appear in the supporting documentation. The authors make no claims     *
      14             :  * about the suitability of this software for any purpose. It is          *
      15             :  * provided "as is" without express or implied warranty.                  *
      16             :  **************************************************************************/
      17             : 
      18             : #include "AliHLTPHOSRawAnalyzerCrude.h"
      19             : 
      20             : //ClassImp(AliHLTPHOSRawAnalyzerCrude) 
      21             : 
      22             : 
      23             : /**
      24             :  * The AliHLTPHOSPeakfinder class is the class for extracting the basic signal parameters
      25             :  * "timing" and "energy" from the PHOS raw data. Physical data will for a given readout channel be
      26             :  * a sequense of ADC digitized 10 bit integer values, however for performance reasons all values used in
      27             :  * calculation is of type double.
      28             :  **/
      29             : //____________________________________________________________________________
      30           0 : AliHLTPHOSRawAnalyzerCrude::AliHLTPHOSRawAnalyzerCrude():AliHLTPHOSRawAnalyzer() 
      31           0 : {
      32             : 
      33           0 : }
      34             : 
      35             : 
      36             : //____________________________________________________________________________
      37             : AliHLTPHOSRawAnalyzerCrude::~AliHLTPHOSRawAnalyzerCrude()
      38           0 : {
      39             : 
      40           0 : } //end AliHLTPHOSRawAnalyzerCrude
      41             : 
      42             : 
      43             : void 
      44             : AliHLTPHOSRawAnalyzerCrude::Evaluate(int start, int length)
      45             : {
      46             :   double tmpAmplitudeMax =0; 
      47             :   double tmpTime = 0;
      48             : 
      49           0 :   for(int i=start; i<length; i++)
      50             :     {
      51           0 :       if(fShortDataPtr[i] >  tmpAmplitudeMax  )      
      52             :         {
      53           0 :           tmpAmplitudeMax = fShortDataPtr[i];
      54           0 :           tmpTime = i;               
      55           0 :         }
      56             :     }
      57             : 
      58           0 :   fDAmpl = tmpAmplitudeMax;
      59           0 :   fDTof =  tmpTime;
      60             :   //thats all 
      61           0 : } //end Crude
      62             : 

Generated by: LCOV version 1.11