4 print "I need to be debugged, please fix me"
9 output.append ("namespace AliSpectraNameSpace\n")
11 output.append (" const char * kHistName[] =\n")
12 output.append (" {\n")
14 # print histogram names
15 ifile = open("Histograms.h", "rb")
17 lineNoWS = line.strip()
18 if(not lineNoWS.startswith("k")): # skip everything which is not an entry in the enum
20 if("=" in lineNoWS): # skip histogram type delimeters
24 output.append(" \"h"+col[0].strip()[1:]+"\",\n");
26 output.append (" };\n")
30 outfile = open("HistogramNames.h", "w")
31 outfile.write("#ifndef HISTOGRAMNAMES_H\n");
32 outfile.write("#define HISTOGRAMNAMES_H\n\n");
33 outfile.write("//This file was generated automatically, please do not edit!!\n\n");
34 outfile.writelines(output)
35 outfile.write("\n#endif\n");
39 ## def skipLines(lineNoWS):
40 ## beginningsToSkip = ["//", "{", "namespace", "enum"]
41 ## for entry in beginningsToSkip:
42 ## if lineNoWS.startswith(entry):
48 #######################################################################
49 if __name__ == "__main__":