]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTreeManager.cxx
Adding PiKP-only histograms and eliminating a number of switches where histograms...
[u/mrichter/AliRoot.git] / MUON / AliMUONTreeManager.cxx
index a545c7f120e1f6b4bcd63ded1da6590ed9b8b265..f4e46ea2737c52aaa21c6179d5ca2dc47c78e7da 100644 (file)
@@ -15,8 +15,7 @@
 
 // $Id$
 
-
-/// 
+//-----------------------------------------------------------------------------
 /// \class AliMUONTreeManager
 ///
 /// Helper class to handle the relationships TTree<->MUON data containers
@@ -38,6 +37,7 @@
 /// TTree to store the relationship branch -> MUON store classname.
 ///
 /// \author Laurent Aphecetche, Subatech
+//-----------------------------------------------------------------------------
 
 #include "AliMUONTreeManager.h"
 
@@ -221,7 +221,7 @@ AliMUONTreeManager::UpdateBranchStatuses(TTree& tree, const char* pattern) const
 }
 
 //_____________________________________________________________________________
-const char* 
+TString
 AliMUONTreeManager::GetClassName(const TTree& tree, const char* pattern,
                                  Bool_t makeDefault) const
 {
@@ -244,17 +244,17 @@ AliMUONTreeManager::GetClassName(const TTree& tree, const char* pattern,
     TString value = (static_cast<TObjString*>(pair->Second()))->String();
     if ( key.Contains(pattern,TString::kIgnoreCase) ) 
     {
-      return value.Data();
+      return value;
     }
   }
   
   if ( makeDefault ) return DefaultClassName(tree.GetName(),pattern);
   
-  return 0x0;
+  return "";
 }
 
 //_____________________________________________________________________________
-const char* 
+TString
 AliMUONTreeManager::DefaultClassName(const char* treeName, const char* pattern) const
 {
   /// For backward compatibility only. Decides, based on the tree name and a