]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Access to the chain of tags
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Mar 2009 12:05:35 +0000 (12:05 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Mar 2009 12:05:35 +0000 (12:05 +0000)
ANALYSIS/AliTagAnalysis.cxx
ANALYSIS/AliTagAnalysis.h

index f49a8f8471e4916066241699b9afe2fede2cf8fc..be12fb05d13d36ff1f3e8f122e3afba922b2e983 100644 (file)
@@ -126,7 +126,7 @@ void AliTagAnalysis::ChainLocalTags(const char *dirname) {
 
 
 //___________________________________________________________________________
-void AliTagAnalysis::ChainGridTags(TGridResult *res) {
+TChain * AliTagAnalysis::ChainGridTags(TGridResult *res) {
   //Loops overs the entries of the TGridResult
   //Chains the tags that are stored in the GRID
   ftagresult = res;
@@ -140,7 +140,8 @@ void AliTagAnalysis::ChainGridTags(TGridResult *res) {
   for(Int_t i = 0; i < nEntries; i++) {
     alienUrl = ftagresult->GetKey(i,"turl");
     fChain->Add(alienUrl);
-  }//grid result loop  
+  }//grid result loop
+  return fChain;
 }
 
 
index ad3b2347f8c878a58b0e1a82b22c918c67dfe824..844e02871dfa6c38f57bf5c39f601deba42d72cc 100644 (file)
@@ -48,7 +48,7 @@ class AliTagAnalysis : public TObject {
   const char* GetType() {return fAnalysisType.Data();}
   Bool_t AddTagsFile(const char *alienUrl);
   void ChainLocalTags(const char *dirname);
-  void ChainGridTags(TGridResult *result);
+  TChain *ChainGridTags(TGridResult *result);
   
   TChain *QueryTags(AliRunTagCuts *runTagCuts, 
                    AliLHCTagCuts *lhcTagCuts,