]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSRawAnalyzerComponentv3.cxx
85bd9b3b873b4d46c7d0f1ca34aa2783b4e75b40
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzerComponentv3.cxx
1
2 /**************************************************************************
3  * This file is property of and copyright by the ALICE HLT Project        * 
4  * All rights reserved.                                                   *
5  *                                                                        *
6  * Primary Authors: Per Thomas Hille, Oystein Djuvsland                   *
7  *                                                                        *
8  * Permission to use, copy, modify and distribute this software and its   *
9  * documentation strictly for non-commercial purposes is hereby granted   *
10  * without fee, provided that the above copyright notice appears in all   *
11  * copies and that both the copyright notice and this permission notice   *
12  * appear in the supporting documentation. The authors make no claims     *
13  * about the suitability of this software for any purpose. It is          * 
14  * provided "as is" without express or implied warranty.                  *
15  **************************************************************************/
16
17 #include "AliHLTPHOSRawAnalyzerComponentv3.h"
18 #include "AliHLTPHOSMapper.h"
19 #include "AliHLTPHOSDefinitions.h"
20 #include "AliHLTPHOSUtilities.h"
21
22 AliHLTPHOSRawAnalyzerComponentv3::AliHLTPHOSRawAnalyzerComponentv3():
23   AliHLTCaloRawAnalyzerComponentv3(),
24 {
25   //comment
26 }
27
28
29 AliHLTPHOSRawAnalyzerComponentv3::~AliHLTPHOSRawAnalyzerComponentv3()
30 {
31   //comment
32 }
33
34 int 
35 AliHLTPHOSRawAnalyzerComponentv3::Deinit()
36 {
37   //comment
38   return 0;
39 }
40
41 void
42 AliHLTPHOSRawAnalyzerComponentv3::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
43 {
44   //comment
45   list.clear();
46   list.push_back( AliHLTPHOSDefinitions::fgkDDLPackedRawDataType | kAliHLTDataOriginPHOS );
47 }
48
49 int
50 AliHLTPHOSRawAnalyzerComponentv3::InitMapping( const int spec)
51
52
53   //See base class for documentation
54   // fPrintInfo = kFALSE;
55
56   if(fMapperPtr == 0)
57     {
58       fMapperPtr = new AliHLTPHOSMapper();
59     }
60  
61   if(fMapperPtr->GetIsInitializedMapping() == false)
62     {
63       HLTError("%d:%d, ERROR, mapping not initialized ", __FILE__, __LINE__ );
64       exit(-2);
65     }
66
67   return iResult;
68 }
69
70