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;
17 if (gSystem->AccessPathName(
p1 + v) == kFALSE)
24 if (gSystem->AccessPathName(v))
32 TPMERegexp re(
"CMSSW_(\\d+)_(\\d+)_");
34 if (re.NMatches() > 2)
36 out[0] = re[1].Atoi();
37 out[1] = re[2].Atoi();
45 static int mm[] = {0, 0, 0};
49 if (gSystem->Getenv(
"CMSSW_VERSION"))
51 v = gSystem->Getenv(
"CMSSW_VERSION");
56 TString versionFileName = gSystem->Getenv(
"CMSSW_BASE");
57 versionFileName +=
"/src/Fireworks/Core/data/version.txt";
58 std::ifstream fs(versionFileName);
60 infoText.ReadLine(fs); infoText.ReadLine(fs);
73 int data[] = {0, 0, 0};
78 if ((data[0] == 6 && running[0] == 5 && running[1] > 1) ||
79 (data[0] == 5 && data[1] > 1 && running[0] == 6))
82 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]