]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/SPECTRA/PiKaPr/TestAOD/createNames.py
Split: removed dirs now in AliPhysics
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / PiKaPr / TestAOD / createNames.py
diff --git a/PWGLF/SPECTRA/PiKaPr/TestAOD/createNames.py b/PWGLF/SPECTRA/PiKaPr/TestAOD/createNames.py
deleted file mode 100755 (executable)
index 5a54a89..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/python
-
-def main():
-    print "I need to be debugged, please fix me"
-    return
-
-    # print header
-    output = list()
-    output.append ("namespace AliSpectraNameSpace\n")
-    output.append ("{\n")
-    output.append ("   const char * kHistName[] =\n")
-    output.append ("   {\n")
-
-    # print histogram names
-    ifile  = open("Histograms.h", "rb")
-    for line in ifile:
-        lineNoWS = line.strip()
-        if(not lineNoWS.startswith("k")): # skip everything which is not an entry in the enum
-            continue
-        if("=" in lineNoWS): # skip histogram type delimeters
-            continue
-        col=line.split(",")
-        
-        output.append("     \"h"+col[0].strip()[1:]+"\",\n");
-
-    output.append ("   };\n")
-    output.append ("}\n")
-
-    # write file
-    outfile = open("HistogramNames.h", "w")
-    outfile.write("#ifndef HISTOGRAMNAMES_H\n");
-    outfile.write("#define HISTOGRAMNAMES_H\n\n");
-    outfile.write("//This file was generated automatically, please do not edit!!\n\n");
-    outfile.writelines(output)
-    outfile.write("\n#endif\n");
-    outfile.close()
-
-
-## def skipLines(lineNoWS):
-##     beginningsToSkip = ["//", "{", "namespace", "enum"]
-##     for entry in beginningsToSkip:
-##         if lineNoWS.startswith(entry):
-##             return 1 
-##     return 0
-    
-    
-
-#######################################################################
-if __name__ == "__main__":
-    main()