|
//____________________________________________________________________ // // // //____________________________________________________________________ // // $Id: BrFileTag.cxx,v 1.1.1.1 2001/06/21 14:54:58 hagel Exp $ // $Author: hagel $ // $Date: 2001/06/21 14:54:58 $ // $Copyright: (C) 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov> // #ifndef BRAT_BrFileTag #include "BrFileTag.h" #endif #ifndef ROOT_TSystem #include "TSystem.h" #endif #ifndef WIN32 #include <iostream> #else #include <iostream.h> #endif //____________________________________________________________________ ClassImp(BrFileTag); //____________________________________________________________________ BrFileTag::BrFileTag() { // Defualt ctor. Only used by ROOT IO fFile = 0; } //____________________________________________________________________ BrFileTag::BrFileTag(EFileMode mode, TFile* file) : TNamed(BRAT_FILE_TAG_NAME, BRAT_FILE_TAG_TITLE), fFileMode(mode), fFile(file) { // Normal constructor. fHost = gSystem->GetHostByName(gSystem->HostName()); } //____________________________________________________________________ void BrFileTag::Print(Option_t* option) const { // BrFileTag - BRAHMS ROOT IO File cout << GetName() << " - " << GetTitle() << endl << "------------------------------" << endl << " Mode: " << flush; switch(fFileMode) { case kSerial: cout << "Serial" << endl; break; case kTree: cout << "TTree" << endl; break; default: cout << "UNKNOWN" << endl; break; } cout << " Date: " << fTime.AsString() << endl << " Host: " << fHost.GetHostName() << "/" << fHost.GetHostAddress() << endl << " " << flush; fBratVersion.Print(option); if (fFile) fFile->Print(option); else cout << " File pointer not set " << endl; } //____________________________________________________________________ // // $Log: BrFileTag.cxx,v $ // Revision 1.1.1.1 2001/06/21 14:54:58 hagel // Initial revision of brat2 // // Revision 1.1 2001/06/04 13:34:13 cholm // Warm-up for BRAT2. // Added file tag class. Added version class. Added path manager. // // |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|