// $Id$
-
-///
+//-----------------------------------------------------------------------------
/// \class AliMUONTreeManager
///
/// Helper class to handle the relationships TTree<->MUON data containers
/// TTree to store the relationship branch -> MUON store classname.
///
/// \author Laurent Aphecetche, Subatech
+//-----------------------------------------------------------------------------
#include "AliMUONTreeManager.h"
}
//_____________________________________________________________________________
-const char*
+TString
AliMUONTreeManager::GetClassName(const TTree& tree, const char* pattern,
Bool_t makeDefault) const
{
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