Line data Source code
1 : /**************************************************************************
2 : * This file is property of and copyright by the Experimental Nuclear *
3 : * Physics Group, Dep. of Physics *
4 : * University of Oslo, Norway, 2007 *
5 : * *
6 : * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.*
7 : * Contributors are mentioned in the code where appropriate. *
8 : * Please report bugs to perthi@fys.uio.no *
9 : * *
10 : * Permission to use, copy, modify and distribute this software and its *
11 : * documentation strictly for non-commercial purposes is hereby granted *
12 : * without fee, provided that the above copyright notice appears in all *
13 : * copies and that both the copyright notice and this permission notice *
14 : * appear in the supporting documentation. The authors make no claims *
15 : * about the suitability of this software for any purpose. It is *
16 : * provided "as is" without express or implied warranty. *
17 : **************************************************************************/
18 :
19 : // Base class fro anlyzing EMCAL raww data
20 : // Further documentation found in base class
21 : // --------------
22 : // --------------
23 : // --------------
24 : // --------------
25 :
26 :
27 : #include "AliHLTCaloMapper.h"
28 : #include "AliHLTEMCALRawAnalyzerComponent.h"
29 : #include "AliHLTEMCALMapper.h"
30 : #include "AliHLTEMCALDefinitions.h"
31 : #include "AliHLTEMCALTRURawDigitMaker.h"
32 :
33 : #include "AliCaloConstants.h"
34 :
35 : using namespace Algo;
36 :
37 36 : AliHLTEMCALRawAnalyzerComponent::AliHLTEMCALRawAnalyzerComponent( fitAlgorithm algo ) : AliHLTCaloRawAnalyzerComponentv3("EMCAL", algo)
38 54 : {
39 : //fDebug = true;
40 18 : fDebug = false;
41 1620 : for(Int_t iddl = 0; iddl < 44; iddl++) { fMapperArray[iddl] = NULL; }
42 18 : }
43 :
44 :
45 0 : AliHLTEMCALRawAnalyzerComponent::~AliHLTEMCALRawAnalyzerComponent()
46 0 : {
47 :
48 36 : }
49 :
50 :
51 : void
52 : AliHLTEMCALRawAnalyzerComponent::GetInputDataTypes( vector <AliHLTComponentDataType>& list)
53 : {
54 0 : list.clear();
55 0 : list.push_back( AliHLTEMCALDefinitions::fgkDDLRawDataType | kAliHLTDataOriginEMCAL );
56 0 : }
57 :
58 :
59 : AliHLTComponentDataType
60 : AliHLTEMCALRawAnalyzerComponent::GetOutputDataType()
61 : {
62 : //comment
63 0 : return AliHLTEMCALDefinitions::fgkChannelDataType;
64 : }
65 :
66 : int
67 : AliHLTEMCALRawAnalyzerComponent::DoDeinit()
68 : {
69 : //comment
70 0 : for(Int_t iddl = 0; iddl < 44; iddl++){
71 0 : if(fMapperArray[iddl]) delete fMapperArray[iddl];
72 : }
73 :
74 0 : return AliHLTCaloRawAnalyzerComponentv3::DoDeinit();
75 : }
76 :
77 :
78 : void
79 : AliHLTEMCALRawAnalyzerComponent::InitMapping( const int specification )
80 : {
81 : // Comment
82 0 : if(specification >= 44) return; // Do not handle STU DDLs
83 0 : if ( fMapperArray[specification] == 0 )
84 : {
85 0 : fMapperArray[specification] = new AliHLTEMCALMapper( specification );
86 0 : fMapperPtr = fMapperArray[specification];
87 0 : } else {
88 0 : fMapperPtr = fMapperArray[specification];
89 : }
90 :
91 0 : if(fMapperPtr->GetIsInitializedMapping() == false )
92 : {
93 0 : HLTError("%d:%d, ERROR, mapping not initialized ", __FILE__, __LINE__ );
94 0 : exit(-2);
95 : }
96 0 : }
97 :
|