14 |
|
//gets rid of = > < from cuts in order to be better included in file names |
15 |
|
TString fortranize(TString cut) { |
16 |
|
|
17 |
+ |
cut.ReplaceAll(" ",""); //remove all spaces |
18 |
+ |
|
19 |
|
cut.ReplaceAll("==","eq"); |
20 |
|
cut.ReplaceAll(">=","gte"); |
21 |
|
cut.ReplaceAll("<=","lte"); |
23 |
|
cut.ReplaceAll(">","gt"); |
24 |
|
cut.ReplaceAll("<","lt"); |
25 |
|
|
26 |
+ |
cut.ReplaceAll("&&","and"); |
27 |
+ |
cut.ReplaceAll("||","or"); |
28 |
+ |
|
29 |
|
cut.ReplaceAll("/","Over"); |
30 |
|
cut.ReplaceAll("+","Plus"); |
31 |
|
cut.ReplaceAll("*","Times"); |
32 |
|
|
28 |
– |
cut.ReplaceAll("*","Times"); |
29 |
– |
|
33 |
|
//this is pretty ugly |
34 |
|
cut.ReplaceAll("(","L"); |
35 |
|
cut.ReplaceAll(")","R"); |