ROOT logo
//_________________________________________________________________________
// Macro to merge the tag files from an ESD collection.
// The tag files are stored according to the value set in the SetStorage method
// Use Case : 
//          SetStorage(0) --> store the tgs locally
//          SetStorage(1) --> store the tgs in the grid
//          else the program will abort!!!                                    
//                                             
// As a final step the user can create a single merged tag file.         
//_________________________________________________________________________
void MergeTags(const char* fCollectionName) {
  //connect to AliEn's API services
  TGrid::Connect("alien://pcapiserv01.cern.ch:10000","pchrist");  
  //TGrid::Connect("alien://"); 
    
  //___________________________________//
  //__Create an AliTagCreator object___//
  //___________________________________//
  AliTagCreator *t = new AliTagCreator(); 
    
  //___________________________________//
  //_____ Storage of the tag files:____//
  //________0-->local, 1-->alien_______//
  //___________________________________//
  t->SetStorage(0);

  //___________________________________//
  //__________Merge tag files__________//
  //___________________________________//
  //XML collection
  TAlienCollection *collection = TAlienCollection::Open(fCollectionName);
  TGridResult* result = collection->GetGridResult("");
  //Read the TGridResult and merge the tags
  t->MergeTags(result);
}
 MergeTags.C:1
 MergeTags.C:2
 MergeTags.C:3
 MergeTags.C:4
 MergeTags.C:5
 MergeTags.C:6
 MergeTags.C:7
 MergeTags.C:8
 MergeTags.C:9
 MergeTags.C:10
 MergeTags.C:11
 MergeTags.C:12
 MergeTags.C:13
 MergeTags.C:14
 MergeTags.C:15
 MergeTags.C:16
 MergeTags.C:17
 MergeTags.C:18
 MergeTags.C:19
 MergeTags.C:20
 MergeTags.C:21
 MergeTags.C:22
 MergeTags.C:23
 MergeTags.C:24
 MergeTags.C:25
 MergeTags.C:26
 MergeTags.C:27
 MergeTags.C:28
 MergeTags.C:29
 MergeTags.C:30
 MergeTags.C:31
 MergeTags.C:32
 MergeTags.C:33
 MergeTags.C:34
 MergeTags.C:35
 MergeTags.C:36