1 #ifndef ALIEXTERNALINFO_H 2 #define ALIEXTERNALINFO_H 67 AliExternalInfo (TString localStorageDirectory =
".", TString configLocation =
"", Int_t verbose=1);
69 void ReadConfig( TString configLocation =
"$ALICE_ROOT/STAT/Macros/AliExternalInfo.cfg", Int_t verbose=0);
72 Bool_t
Cache(TString type=
"", TString period =
"", TString pass=
"");
74 Bool_t
CacheRCT(TString period, TString pass) {
return Cache(
"MonALISA.RCT", period, pass);}
75 Bool_t
CacheDataQA(TString detector, TString period, TString pass) {
return Cache(
"QA." + detector, period, pass);}
81 static void CacheProduction(TPRegexp select, TPRegexp reject, TString sourceList);
83 TTree*
GetTree(TString type, TString period, TString pass, Int_t buildIndex=1);
84 TTree*
GetTree(TString type, TString period, TString pass, TString friendList);
87 TTree*
GetTreeRCT(TString period, TString pass) {
return GetTree(
"MonALISA.RCT", period, pass);}
88 TTree*
GetTreeDataQA(TString detector, TString period, TString pass) {
return GetTree(
"QA." + detector, period, pass);}
94 TTree*
GetCPassTree(
const char * period,
const char *pass);
103 TChain*
GetChain(TString type, TString period, TString pass, Int_t buildIndex=1);
104 TChain*
GetChain(TString type, TString period, TString pass, TString friendList);
120 static void BuildHashIndex(TTree*
tree,
const char *chbranchName,
const char *chindexName);
121 static void PrintMapSelected(std::map<TString, TString> infoMap,
const char *expName=
"",
const char *expValue=
"");
125 Bool_t
AddChain(TString type, TString period, TString pass);
126 void SetupVariables(TString& internalFilename, TString& internalLocation, Bool_t& resourceIsTree, TString& pathStructure, \
127 TString& detector, TString& rootFileName, TString& treeName,
const TString& type,
const TString& period,
const TString& pass, TString &indexName);
129 const TString
CurlMif(TString& mifFilePath,
const TString& internalLocation, TString rootFileName,
const TString& externalLocation);
130 const TString
CurlTree(
const TString internalFilename,
const TString& externalLocation);
131 const TString
CreatePath(TString type, TString period, TString pass);
151 #endif // ALIEXTERNALINFO_H const TString CreatePath(TString type, TString period, TString pass)
TTree * GetTreeProdCycleByID(TString ID)
TChain * GetFriendsChain() const
Bool_t fLoadMetadata
flag load metadata
void SetupVariables(TString &internalFilename, TString &internalLocation, Bool_t &resourceIsTree, TString &pathStructure, TString &detector, TString &rootFileName, TString &treeName, const TString &type, const TString &period, const TString &pass, TString &indexName)
Sets up all variables according to period, pass and type. Extracts information from the config file...
TTree * GetTreeMCPassGuess()
Bool_t Cache(TString type="", TString period="", TString pass="")
TTree * GetProductionTree(TString period, TString pass)
Bool_t AddChain(TString type, TString period, TString pass)
TChain * GetChainRCT(TString period, TString pass)
TTree * GetTreeAliVersMC()
void PrintConfigSelected(const char *expName="", const char *expValue="")
const TString GetYearFromPeriod(const TString &period)
TChain * GetChainProdCycle()
AliExternalInfo(TString localStorageDirectory=".", TString configLocation="", Int_t verbose=1)
TTree * GetTreeRCT(TString period, TString pass)
Bool_t CacheRCT(TString period, TString pass)
static void PrintMapSelected(std::map< TString, TString > infoMap, const char *expName="", const char *expValue="")
static const TString & GetDefaultConfig()
TTree * GetCPassTree(const char *period, const char *pass)
TTree * GetTreeTriggerClasses(TString period)
Bool_t CacheLogbook(TString period)
Bool_t CacheDataQA(TString detector, TString period, TString pass)
static const TString fgkDefaultConfig
default config file
TChain * GetChainDataQA(TString detector, TString period, TString pass)
void SetMaxCacheSize(Long64_t size)
TTree * GetLogbookCache()
static void BuildHashIndex(TTree *tree, const char *chbranchName, const char *chindexName)
TTree * GetTree(TString type, TString period, TString pass, Int_t buildIndex=1)
TTree * fTree
master tree with friends
Int_t fVerbose
verbosity flag
void PrintConfig()
Prints out the config which was read in previously. Useful to check if anything went wrong...
TTree * GetTreeDataQA(TString detector, TString period, TString pass)
TChain * GetChainLogbook(TString period)
const TString CurlTree(const TString internalFilename, const TString &externalLocation)
Bool_t IsDownloadNeeded(TString file, TString type)
This class gives you an interface to different trees of information spread throughout ALICE...
static void CacheProduction(TPRegexp select, TPRegexp reject, TString sourceList)
Long64_t fMaxCacheSize
maximum chache size for trees and chains
TChain * GetChain(TString type, TString period, TString pass, Int_t buildIndex=1)
TTree * GetTreeLogbook(TString period)
TChain * GetChainProdCycleByID(TString ID)
const TString CurlMif(TString &mifFilePath, const TString &internalLocation, TString rootFileName, const TString &externalLocation)
TTree * GetTreeAliVersRD()
TString GetMCAnchPerGuess(const char *runlist)
TString fConfigLocation
location of the config file
std::map< TString, TChain * > fChainMap
map of chains
TChain * GetChainTriggerClasses(TString period)
Bool_t CacheProdCycleByID(TString ID)
Bool_t BuildIndex(TTree *tree, TString type)
Bool_t CacheTriggerClasses(TString period)
TString fLocalStorageDirectory
location of the local cache directory
TTree * GetTreeProdCycle()
std::map< TString, TString > fConfigMap
map with tree DB configuration parameters
Long64_t GetMaxCacheSize() const
virtual ~AliExternalInfo()
TChain * fChain
master chain with friends
TTree * GetFriendsTree() const
TTree * fMCGuessTree
tree holding information for Anchor Pass guessing
TString GetMCPassGuess(TString MCprodname)
void ReadConfig(TString configLocation="$ALICE_ROOT/STAT/Macros/AliExternalInfo.cfg", Int_t verbose=0)
TTree * fLogCache
TChain for Logbook.