2 #if !defined(__CINT__) || defined(__MAKECINT__)
7 #include <TObjString.h>
10 TObjArray* findClassesForAlias(THashList &list, const char* aliasName)
13 TObjArray* matchingTrClasses = new TObjArray(2);
17 while((n = dynamic_cast<TNamed*>(iter.Next()))){
18 TString aliasList(n->GetTitle());
19 if(aliasList.Contains(aliasName)){
20 TObjArray* arrAliases = aliasList.Tokenize(',');
21 Int_t nAliases = arrAliases->GetEntries();
22 for(Int_t i=0; i<nAliases; i++){
23 TObjString *alias = (TObjString*) arrAliases->At(i);
24 if(alias->String()==TString(aliasName)){
25 TObjString *trClass = new TObjString(n->GetName());
26 matchingTrClasses->Add(trClass);
32 return matchingTrClasses;