// -*- mode: c++ -*- // // $Id: BrHistIOModule.h,v 1.2 2001/12/14 15:37:49 cholm Exp $ // #ifndef BRAT_BrHistIOModule #define BRAT_BrHistIOModule #ifndef ROOT_TFile #include "TFile.h" #endif #ifndef BRAT_BrIOModule #include "BrIOModule.h" #endif #ifndef BRAT_BrEvent #include "BrEvent.h" #endif class BrHistIOModule : public BrIOModule { private: TFile* fFile; // Pointer to ROOT file public: BrHistIOModule(); BrHistIOModule(const Char_t* name, const Char_t* title); virtual ~BrHistIOModule (); void SetIOMode(UInt_t) {}; virtual Bool_t Close(); virtual void Begin() { SetState(kBegin); } virtual void Event(BrEventNode*,BrEventNode*) { SetState(kEvent); } virtual void Event(BrEvent*) { SetState(kEvent); } virtual void End() { SetState(kEnd); } virtual void Finish(); virtual Bool_t Open(const Char_t* fileName, const Option_t* option=0); virtual void Print(Option_t* option="B") const; // *MENU* ClassDef(BrHistIOModule,0) // }; #endif // // $Log: BrHistIOModule.h,v $ // Revision 1.2 2001/12/14 15:37:49 cholm // Modified the classes to allow the concept of file set, introduced via // BrIOModule. Also use new Info method rather than explicit // if (Verbose() > 4) // cout << "Opening file ladida" << endl; // // Revision 1.1.1.1 2001/06/21 14:55:07 hagel // Initial revision of brat2 // // Revision 1.3 2001/05/31 01:38:45 cholm // Clean up of the module // // Revision 1.2 2001/03/12 18:46:18 cholm // Fixed a few mistakes. Added a hack to histogram module, to make // sure it's file is closed as the very last thing in Finish. // // Revision 1.1 2001/03/05 14:42:57 cholm // Added module to manage histogram file(s) // //