1 #ifndef ALITAGANALYSIS_H
2 #define ALITAGANALYSIS_H
3 /* See cxx source for full Copyright notice */
8 //-------------------------------------------------------------------------
9 // Class AliTagAnalysis
10 // This is the AliTagAnalysis class for the tag analysis
12 // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
13 //-------------------------------------------------------------------------
17 //////////////////////////////////////////////////////////////////////////
21 // Implementation of the tag analysis mechanism. //
23 //////////////////////////////////////////////////////////////////////////
29 #include <TEntryList.h>
33 class AliEventTagCuts;
34 class AliDetectorTagCuts;
40 //____________________________________________________//
41 class AliTagAnalysis : public TObject {
44 AliTagAnalysis(const char* type);
47 void SetType(const char* type) {fAnalysisType = type;}
48 const char* GetType() {return fAnalysisType.Data();}
49 Bool_t AddTagsFile(const char *alienUrl, Bool_t checkFile=kTRUE);
50 void ChainLocalTags(const char *dirname);
51 TChain *ChainGridTags(TGridResult *result);
53 TChain *QueryTags(AliRunTagCuts *runTagCuts,
54 AliLHCTagCuts *lhcTagCuts,
55 AliDetectorTagCuts *detTagCuts,
56 AliEventTagCuts *evTagCuts);
57 TChain *QueryTags(const char *fRunCut,
59 const char *fDetectorCut,
60 const char *fEventCut);
62 Bool_t CreateXMLCollection(const char* name,
63 AliRunTagCuts *runTagCuts,
64 AliLHCTagCuts *lhcTagCuts,
65 AliDetectorTagCuts *detTagCuts,
66 AliEventTagCuts *evTagCuts);
67 Bool_t CreateXMLCollection(const char* name,
70 const char *fDetectorCut,
71 const char *fEventCut);
73 TChain *GetInputChain(const char* system, const char *wn);
75 static TChain* CreateChainFromCollection(const char* collectionname, const char* treename);
77 TEntryList *GetGlobalList() {return fGlobalList;}
78 //____________________________________________________//
80 TGridResult *ftagresult; //the results from the tag grid query
81 TString fTagDirName; //the location of the locally stored tags
82 TChain *fChain; //tag chain
83 TString fAnalysisType; //define the type of analysis (esd or aod)
84 TEntryList *fGlobalList; //global TEntryList
86 //____________________________________________________//
88 AliTagAnalysis(const AliTagAnalysis & source);
89 AliTagAnalysis & operator=(const AliTagAnalysis & source);
91 ClassDef(AliTagAnalysis,0)