50 main(
int argc,
char** argv)
52 waveDescription::setDebug(
true);
56 particleDataTable::readFile();
59 const string keyFileName =
"testWaveDescription.key";
65 topo->writeGraphViz(
"testWaveDescription.dot");
66 gSystem->Exec(
"dot -Tps -o testWaveDescription.ps testWaveDescription.dot");
67 waveDesc.
writeKeyFile(
"testWaveDescriptionWrite.key", *amp);
72 TFile* outFile = TFile::Open(
"testWaveDescription.root",
"RECREATE");
73 waveDesc.Write(waveName.c_str());
78 <<
"--------------------------------------------------------------------------------"
81 TFile* inFile = TFile::Open(
"testWaveDescription.root",
"READ");
83 inFile->GetObject(waveName.c_str(), waveDesc2);
85 printErr <<
"cannot find wave description '" << waveName <<
"'" << endl;
87 printInfo <<
"key file:" << endl;
89 waveDesc2->constructAmplitude(amp);
90 waveDesc2->writeKeyFile(
"testWaveDescriptionWrite2.key", *amp);