Skip to content
Snippets Groups Projects
Commit 3e4d4ebd authored by Chao Peng's avatar Chao Peng
Browse files

follow up: fix the bug in IsOpen

parent 23ad8308
No related branches found
No related tags found
No related merge requests found
......@@ -38,14 +38,14 @@ public:
virtual Int_t Attach(et_stat_id sid);
virtual Int_t Detach();
virtual Bool_t IsOpen() const { return (et_id == nullptr) || (et_alive(et_id) > 0); }
virtual Bool_t IsOpen() const { return (et_id != nullptr) && et_alive(et_id); }
virtual const UInt_t *GetEvBuffer() const { return buffer; }
virtual const UInt_t &GetEvLength() const { return eSize; }
virtual Int_t ReadEvent();
virtual Int_t SkipToEndOfFile(Int_t skip_max = -1) { return 1; };
virtual Int_t SkipToEndOfFile(Int_t skip_max = -1) { return 1; }
virtual Int_t GetDataVersion() { return version; }
virtual Int_t SetDataVersion(Int_t vers) { version = vers; }
virtual Int_t SetDataVersion(Int_t vers) { version = vers; return 1; }
private:
bool copyEvent();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment