AliPhysics  fde8a9f (fde8a9f)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Upload.C
Go to the documentation of this file.
1 // Generated by ExtractELoss.C
2 TString MakeDest(const TString& dest, const TString& fname)
3 {
4  TString tmp(dest);
5  if (!tmp.IsNull()) {
6  if (!tmp.EndsWith("/")) tmp.Append("/");
7  tmp.Append(fname);
8  }
9  return tmp;
10 }
11 
12 void Upload(const TString& dest="", const TString& src="fmd_corrections.root")
13 {
14  const char* fwd = "$ALICE_PHYSICS/PWGLF/FORWARD/analysis2";
15  if (gSystem->Getenv("ANA_SRC")) fwd = gSystem->Getenv("ANA_SRC");
16  gROOT->Macro(Form("%s/scripts/LoadLibs.C",fwd));
17 
18  const char* fmdFile = gSystem->BaseName(src.Data());
19  TString fdest = MakeDest(dest, fmdFile);
20 
22 }
23 // EOF
24 
virtual Bool_t Append(const TString &addition, const TString &destination="") const
TSystem * gSystem
void Upload(const TString &dest="", const TString &src="fmd_corrections.root")
Definition: Upload.C:12
TString MakeDest(const TString &dest, const TString &fname)
Definition: Upload.C:2
const char * fwd
static AliForwardCorrectionManager & Instance()