]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/AnalysisMacros/Local/Tags/CreateTags.C
Last modifictaions for PWG2 -> PWGLF
[u/mrichter/AliRoot.git] / PWG2 / AnalysisMacros / Local / Tags / CreateTags.C
1 //_________________________________________________________________________
2 // Macro to create the tag files from:
3 // i)  AliESDs that are stored locally.
4 // ii) AliESDs that are stored in the CAF.
5 // iii)AliESDs that are stored in alien.
6 // The tag files are stored according to the value set in the SetStorage method
7 // Use Case : 
8 //          SetStorage(0) --> store the tags locally
9 //          SetStorage(1) --> store the tags in the grid
10 //          else the program will abort!!!                                    
11 //                                             
12 // As a final step the user can create a single merged tag file.         
13 //_________________________________________________________________________
14 void CreateTags() {
15   //___________________________________//
16   //create an AliTagCreator object
17   AliESDTagCreator *t = new AliESDTagCreator(); 
18     
19   //___________________________________//
20   //_____ Storage of the tag files:____//
21   //________0-->local, 1-->alien_______//
22   //___________________________________//
23   t->SetStorage(0);
24   //Define the grid's path where the tag files will be stored
25   //t->SetGridPath("Tags/output");
26   //Define the SE where the tag files will be stored
27   //t->SetSE("ALICE::CERN::se01");
28
29   //___________________________________//
30   //________Locally stored ESDs________//
31   //___________________________________//
32   //create the tag files for the locally stored ESDs
33   t->ReadLocalCollection("../PDC07");
34
35   //___________________________________//
36   //___________Merge the tags__________//
37   //___________________________________//
38   //Merge the tags and store the merged file
39   t->MergeTags("ESD");
40 }
41