Logo ROOT   6.14/05
Reference Guide
camera_restore.C File Reference

Detailed Description

void camera_restore(const char* fname, int mode = 0)
{
writeCurrentCamera(fname);
}
void writeCurrentCamera(const char* fname)
{
TFile* f = TFile::Open(fname, "RECREATE");
c.Write();
f->Close();
}
void readCurrentCamera(const char* fname)
{
TFile* f = TFile::Open(fname, "READ");
if (!f)
return;
if (f->GetKey(c.ClassName())) {
f->GetKey(c.ClassName())->Read(&c);
}
}
Author
Matevz Tadel

Definition in file camera_restore.C.