]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/CALO/AliHLTCaloConstants.cxx
Bug Fix: Forgot to call the initialization of
[u/mrichter/AliRoot.git] / HLT / CALO / AliHLTCaloConstants.cxx
index d694247719d3bb2da954b192eb72e5803fb0ce80..03c90338ca431705af17d6c2805e71703707d2d7 100644 (file)
 
 #include "AliHLTCaloConstants.h"
 
-
 ClassImp(AliHLTCaloConstants);
 
 
-AliHLTCaloConstants::AliHLTCaloConstants() :   fkCELLSTEP(-1),
+AliHLTCaloConstants::AliHLTCaloConstants() :   fgInstance(0),
+                                              fkCELLSTEP(-1),
                                               fkMAXCELLSTEPETA(-1),
                                               fkMINCELLSTEPETA(-1),
                                               fkCELLSTEPPHI(-1),
@@ -65,4 +65,20 @@ AliHLTCaloConstants::~AliHLTCaloConstants()
 {
   //Default destructor
 }
+
+
+AliHLTCaloConstants*
+AliHLTCaloConstants::Instance()
+{
+  if (fgInstance != 0 )
+    {
+      return fgInstance; 
+    }
+  else
+    {
+      fgInstance = new  AliHLTCaloConstants();
+      return fgInstance; 
+    }
+}