11 const TString
datadir(
"/src/Fireworks/Core/");
12 const TString
p1 = gSystem->Getenv(
"CMSSW_BASE") +
datadir;
13 const TString
p2 = gSystem->Getenv(
"CMSSW_RELEASE_BASE") +
datadir;
16 if (gSystem->AccessPathName(p1 + v) == kFALSE) {
22 if (gSystem->AccessPathName(v))
27 TPMERegexp re(
"CMSSW_(\\d+)_(\\d+)_");
29 if (re.NMatches() > 2) {
30 out[0] = re[1].Atoi();
31 out[1] = re[2].Atoi();
36 static int mm[] = {0, 0, 0};
40 if (gSystem->Getenv(
"CMSSW_VERSION")) {
41 v = gSystem->Getenv(
"CMSSW_VERSION");
44 TString versionFileName = gSystem->Getenv(
"CMSSW_BASE");
45 versionFileName +=
"/src/Fireworks/Core/data/version.txt";
46 std::ifstream fs(versionFileName);
48 infoText.ReadLine(fs);
49 infoText.ReadLine(fs);
61 int data[] = {0, 0, 0};
65 if ((data[0] == 6 && running[0] == 5 && running[1] > 1) || (data[0] == 5 && data[1] > 1 && running[0] == 6))
68 return data[0] == running[0];
void getDecomposedVersion(const TString &s, int *out)
const TString datadir("/src/Fireworks/Core/")
int * supportedDataFormatsVersion()
bool acceptDataFormatsVersion(TString &n)
char data[epos_bytes_allocation]