* provided "as is" without express or implied warranty. *
**************************************************************************/
+// Base class fro anlyzing EMCAL raww data
+// Further documentation found in base class
+// --------------
+// --------------
+// --------------
+// --------------
+
+
#include "AliHLTEMCALRawAnalyzerComponent.h"
#include "AliHLTEMCALMapper.h"
#include "AliHLTEMCALDefinitions.h"
+#include "AliCaloConstants.h"
-AliHLTEMCALRawAnalyzerComponent::AliHLTEMCALRawAnalyzerComponent() : AliHLTCaloRawAnalyzerComponentv3()
-{
-
+using namespace Algo;
+AliHLTEMCALRawAnalyzerComponent::AliHLTEMCALRawAnalyzerComponent( fitAlgorithm algo ) : AliHLTCaloRawAnalyzerComponentv3("EMCAL", algo)
+{
+ //fDebug = true;
+ fDebug = false;
}
}
-
void
AliHLTEMCALRawAnalyzerComponent::GetInputDataTypes( vector <AliHLTComponentDataType>& list)
{
}
-
-bool
-AliHLTEMCALRawAnalyzerComponent::CheckInputDataType(const AliHLTComponentDataType &datatype)
+AliHLTComponentDataType
+AliHLTEMCALRawAnalyzerComponent::GetOutputDataType()
{
- if ( datatype == AliHLTEMCALDefinitions::fgkDDLRawDataType )
- {
- return true;
- }
- else
- {
- return false;
- }
+ //comment
+ return AliHLTEMCALDefinitions::fgkChannelDataType;
}
-
void
-AliHLTEMCALRawAnalyzerComponent::InitMapping()
+AliHLTEMCALRawAnalyzerComponent::InitMapping( const int specification )
{
- fMapperPtr = new AliHLTEMCALMapper();
+ // Comment
+ if ( fMapperPtr == 0 )
+ {
+ fMapperPtr = new AliHLTEMCALMapper( specification );
+ }
+
+ if(fMapperPtr->GetIsInitializedMapping() == false )
+ {
+ HLTError("%d:%d, ERROR, mapping not initialized ", __FILE__, __LINE__ );
+ exit(-2);
+ }
}
+
+