LCOV - code coverage report
Current view: top level - EMCAL/EMCALraw - AliCaloRawAnalyzerFactory.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 4 11 36.4 %
Date: 2016-06-14 17:26:59 Functions: 1 3 33.3 %

          Line data    Source code
       1             : // -*- mode: c++ -*-
       2             : 
       3             : /**************************************************************************
       4             :  * This file is property of and copyright by the Experimental Nuclear     *
       5             :  * Physics Group, Dep. of Physics                                         *
       6             :  * University of Oslo, Norway, 2007                                       *
       7             :  *                                                                        *
       8             :  * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.*
       9             :  * Contributors are mentioned in the code where appropriate.              *
      10             :  * Please report bugs to perthi@fys.uio.no                                *
      11             :  *                                                                        *
      12             :  * Permission to use, copy, modify and distribute this software and its   *
      13             :  * documentation strictly for non-commercial purposes is hereby granted   *
      14             :  * without fee, provided that the above copyright notice appears in all   *
      15             :  * copies and that both the copyright notice and this permission notice   *
      16             :  * appear in the supporting documentation. The authors make no claims     *
      17             :  * about the suitability of this software for any purpose. It is          *
      18             :  * provided "as is" without express or implied warranty.                  *
      19             :  **************************************************************************/
      20             : 
      21             : #include "AliCaloRawAnalyzerFactory.h"
      22             : #include "AliCaloRawAnalyzerFastFit.h"
      23             : #include "AliCaloRawAnalyzerNN.h"
      24             : #include "AliCaloRawAnalyzerPeakFinder.h"
      25             : #include "AliCaloRawAnalyzerCrude.h"
      26             : #include "AliCaloRawAnalyzerKStandard.h"
      27             : #include "AliCaloRawAnalyzerFakeALTRO.h"
      28             : 
      29             : AliCaloRawAnalyzerFactory::AliCaloRawAnalyzerFactory()
      30           0 : {
      31             :   // default constructor
      32           0 : }
      33             : 
      34             : AliCaloRawAnalyzer*
      35             : AliCaloRawAnalyzerFactory::CreateAnalyzer( const int algo )
      36             : {
      37             :   // Return the requested algorithm
      38             :   
      39          40 :   switch ( algo)
      40             :   {
      41             :     case  kFastFit:
      42           0 :       return new  AliCaloRawAnalyzerFastFit();
      43             :       break;
      44             :     case kNeuralNet:
      45           0 :       return new AliCaloRawAnalyzerNN();
      46             :       break;
      47             :     case kPeakFinder:
      48           0 :       return new AliCaloRawAnalyzerPeakFinder();
      49             :       break;
      50             :     case kCrude:
      51           0 :       return  new AliCaloRawAnalyzerCrude();
      52             :       break;
      53             :     case kStandard:
      54          24 :       return new AliCaloRawAnalyzerKStandard();
      55             :       break;
      56             :     case kFakeAltro:
      57          16 :       return  new AliCaloRawAnalyzerFakeALTRO();
      58             :       break;
      59             :     default:
      60           0 :       return  new AliCaloRawAnalyzerCrude();
      61             :       break;
      62             :    }
      63          20 : }
      64             : 
      65             : 
      66             : 
      67             : 
      68             : 

Generated by: LCOV version 1.11