#include <iostream.h>
#include "TFndGenInfo.h"
#include "TObjectTable.h"
ClassImp(TFndGenInfo);
TFndGenInfo::TFndGenInfo() {
fRNum = 0;
fRunTyp = 0;
fDate = new TFndDate();
fGTS = 0;
fTOF = 0;
fISM = 0;
fOSM = 0;
fLMD = 0;
fSTB = 0;
}
TFndGenInfo::~TFndGenInfo() {
delete fDate;
}
TFndGenInfo::TFndGenInfo(UInt_t *raw) {
fRNum = *(raw+4);
fDate = new TFndDate(raw);
//gObjectTable->Add((TObject *) fDate);
fGTS = (*(raw+7));
fTOF = (*(raw+8));
fISM = (*(raw+9));
fOSM = (*(raw+10));
fLMD = (*(raw+11));
fSTB = (*(raw+12));
}
void TFndGenInfo::Print() {
cout << "Run Number: " << fRNum << endl;
cout << "Run Type: " << fRunTyp << endl;
fDate->Print();
cout << "Gts: " << fGTS << endl;
cout << "Tof: " << fTOF << endl;
cout << "Ism: " << fISM << endl;
cout << "Osm: " << fOSM << endl;
cout << "Lmd: " << fLMD << endl;
cout << "Stb: " << fSTB << endl;
}
//______________________________________________________________________________
void TFndGenInfo::Streamer(TBuffer &R__b)
{
// Stream an object of class TFndGenInfo.
if (R__b.IsReading()) {
Version_t R__v = R__b.ReadVersion(); if (R__v) { }
TObject::Streamer(R__b);
R__b >> fRNum;
R__b >> fRunTyp;
if(R__v == 1) {
R__b >> fGTS;
R__b >> fGTS;
R__b >> fGTS;
}
if(R__v > 1) R__b >> fDate;
R__b >> fGTS;
R__b >> fTOF;
R__b >> fISM;
R__b >> fOSM;
R__b >> fLMD;
R__b >> fSTB;
} else {
R__b.WriteVersion(TFndGenInfo::IsA());
TObject::Streamer(R__b);
R__b << fRNum;
R__b << fRunTyp;
R__b << fDate;
R__b << fGTS;
R__b << fTOF;
R__b << fISM;
R__b << fOSM;
R__b << fLMD;
R__b << fSTB;
}
}
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.