message: TGrid::Conect  if alien:// file requested
diff: @@ -670,6 +670,13 @@ void AliOCDBtoolkit::DumpOCDB(const TMap *cdbMap0, const TList *cdbList0, const
  /// AliOCDBtoolkit::DumpOCDBFile("/lustre/nyx/alice/users/miranov/NOTESData/alice-tpc-notes/JIRA/ALIROOT-7077/test1211_PbPb_MCTail_2_2/OCDB/OCDBrec.root", "TPC/Calib/RecoParam", "TPC_Calib_RecoParamReco.xml",1,"XML")
  ///
  Int_t AliOCDBtoolkit::DumpOCDBFile(const char *fileName, const char*objectName, const char *foutput, Bool_t dumpMetaData, TString printOption){
  + if (TString(fileName).Contains("alien://") && gGrid==0){
  + TGrid *myGrid = TGrid::Connect("alien://"); //Oddly this will return also a pointer if connection fails
  + if(myGrid->GetPort()==0){ //if connection fails port 0 is saved, using this to check for successful connection
  + cerr << "Cannot connect to grid!" << endl;
  + return 1;
  + }
  + }
  TString optionString = printOption;
  optionString.ToLower();
  TFile * f = TFile::Open(fileName);
  