1 |
joshmt |
1.1 |
/*
|
2 |
|
|
a place for very simple functions that don't depend on anything else
|
3 |
|
|
|
4 |
|
|
can be easily #included into other code
|
5 |
|
|
*/
|
6 |
|
|
|
7 |
|
|
#include "TString.h"
|
8 |
|
|
|
9 |
|
|
namespace jmt {
|
10 |
|
|
|
11 |
|
|
//======misc utilities======
|
12 |
|
|
//gets rid of = > < from cuts in order to be better included in file names
|
13 |
|
|
TString fortranize(TString cut) {
|
14 |
|
|
|
15 |
|
|
cut.ReplaceAll("==","eq");
|
16 |
|
|
cut.ReplaceAll(">=","gte");
|
17 |
|
|
cut.ReplaceAll("<=","lte");
|
18 |
|
|
|
19 |
|
|
cut.ReplaceAll(">","gt");
|
20 |
|
|
cut.ReplaceAll("<","lt");
|
21 |
|
|
|
22 |
|
|
return cut;
|
23 |
|
|
}
|
24 |
|
|
|
25 |
|
|
}
|