]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliCaloRawAnalyzerFactory.cxx
updates for Reaction Plane and coverity fix
[u/mrichter/AliRoot.git] / EMCAL / AliCaloRawAnalyzerFactory.cxx
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 "AliCaloRawAnalyzerLMS.h"
25 #include "AliCaloRawAnalyzerPeakFinder.h"
26 #include "AliCaloRawAnalyzerCrude.h"
27 #include "AliCaloRawAnalyzerLMSOffline.h"
28 #include "AliCaloRawAnalyzerKStandard.h"
29 #include "AliCaloRawAnalyzerFakeALTRO.h"
30
31 AliCaloRawAnalyzerFactory::AliCaloRawAnalyzerFactory()
32 {
33
34 }
35
36 AliCaloRawAnalyzerFactory::~AliCaloRawAnalyzerFactory()
37 {
38
39 }
40
41
42 AliCaloRawAnalyzer*
43 AliCaloRawAnalyzerFactory::CreateAnalyzer( const int algo )
44 {
45   // return new AliCaloRawAnalyzerKStandard();
46   switch ( algo) 
47     {
48     case  kFastFit:
49       return new  AliCaloRawAnalyzerFastFit();
50       break;
51     case kNeuralNet:
52       return new AliCaloRawAnalyzerNN();
53       break;
54     case kLMS:
55       //return new AliCaloRawAnalyzerLMS();
56       return new AliCaloRawAnalyzerLMSOffline();
57       break;
58     case kPeakFinder:
59       return new AliCaloRawAnalyzerPeakFinder();
60       break;
61     case kCrude:
62       return  new AliCaloRawAnalyzerCrude();
63       break;
64     case kLMSOffline:
65       return new AliCaloRawAnalyzerLMSOffline();
66       break;
67     case kStandard:
68       return new AliCaloRawAnalyzerKStandard();
69       break;
70     case kFakeAltro:
71       return  new AliCaloRawAnalyzerFakeALTRO();
72       break;
73     default:
74       return  new AliCaloRawAnalyzerCrude();
75       break;
76    }
77 }
78
79
80
81
82