]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/EMCAL/AliHLTEMCALAgent.cxx
Add a task to a train
[u/mrichter/AliRoot.git] / HLT / EMCAL / AliHLTEMCALAgent.cxx
index 29db8073f2765f6b9b75b24fb0a89c84622f0b40..729c535a3d4c6fe3cf893ac6e41a2f8b0b910288 100644 (file)
@@ -1,3 +1,4 @@
+// $Id$
 
 //**************************************************************************
 //* This file is property of and copyright by the ALICE HLT Project        * 
@@ -107,7 +108,7 @@ int AliHLTEMCALAgent::CreateConfigurations(AliHLTConfigurationHandler* handler,
         TString sinkClusterInput;
         TString emInput;
         
-        for (int module = moduleStart; module < moduleEnd; module++) 
+        for (int module = moduleStart; module <= moduleEnd; module++) 
         {
             TString clInput;
             
@@ -206,9 +207,11 @@ int AliHLTEMCALAgent::GetHandlerDescription(AliHLTComponentDataType dt,
                                             AliHLTOUTHandlerDesc& desc) const
 {
     // see header file for class documentation
-    
+
+    // FIXME: there is memory allocated in the mapper, this happens for every event
+    // and is time consuming, think about initializing the mappers only once, or make
+    // the mapper class more flexible to handle more than one specification
     AliHLTEMCALMapper mapper(spec);
-    mapper.InitDDLSpecificationMapping();
     
     // raw data blocks to be fed into offline reconstruction
     if (dt==(kAliHLTDataTypeDDLRaw|kAliHLTDataOriginEMCAL))