Skip to content

Commit

Permalink
missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
jkiesele committed Apr 10, 2017
1 parent d061945 commit 3088398
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
18 changes: 18 additions & 0 deletions modules/interface/helper.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* helper.h
*
* Created on: 8 Apr 2017
* Author: jkiesele
*/

#ifndef DEEPJET_MODULES_INTERFACE_HELPER_H_
#define DEEPJET_MODULES_INTERFACE_HELPER_H_


#include <dirent.h>
#include <stdlib.h>
#include "TString.h"

TString prependXRootD(const TString& path);

#endif /* DEEPJET_MODULES_INTERFACE_HELPER_H_ */
23 changes: 23 additions & 0 deletions modules/src/helper.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* helper.cpp
*
* Created on: 8 Apr 2017
* Author: jkiesele
*/


#include "../interface/helper.h"


TString prependXRootD(const TString& path){

TString full_path = realpath(path, NULL);
if(full_path.BeginsWith("/eos/cms/")){
TString append="root://eoscms.cern.ch//";
TString s_remove="/eos/cms/";
TString newpath (full_path(s_remove.Length(),full_path.Length()));
newpath=append+newpath;
return newpath;
}
return path;
}

0 comments on commit 3088398

Please sign in to comment.