1 #ifndef SIO_LCIORandomAccess_H
2 #define SIO_LCIORandomAccess_H 1
18 RunEvent(): RunNum( 0 ), EvtNum( 0 ) {}
19 RunEvent(
int run,
int evt): RunNum( run ), EvtNum( evt ) {}
20 RunEvent(long64 runEvt): RunNum( (runEvt >> 32 ) & 0xffffffff ), EvtNum( runEvt & 0xffffffff ) {}
24 operator long64()
const {
return ( long64( RunNum ) << 32 | ( long64(EvtNum) & 0xffffffff ) ) ; }
27 std::ostream & operator<<(std::ostream& os,
const RunEvent& re ) ;
51 friend std::ostream & operator<<(std::ostream& os,
const LCIORandomAccess& ra ) ;
58 long64 getIndexLocation()
const {
return _indexLocation ; }
59 long64 getPrevLocation()
const {
return _prevLocation ; }
61 long64 getFirstRecordLocation()
const {
return _firstRecordLocation ; }
64 void setIndexLocation(long64 il) { _indexLocation = il ; }
65 void setPreviousLocation(long64 pl) { _prevLocation = pl ; }
67 void setFirstRecordLocation(long64 fl) { _firstRecordLocation = fl ; }
74 int _recordsAreInOrder ;
75 long64 _indexLocation ;
76 long64 _prevLocation ;
77 long64 _nextLocation ;
78 long64 _firstRecordLocation ;
Manager class for LCIO direct access.
Definition: LCIORandomAccessMgr.h:38
Helper struct that stores run and event positions in the file.
Definition: LCIORandomAccess.h:17
long long long64
64 bit signed integer,e.g.to be used for timestamps
Definition: LCIOTypes.h:14
Implementation class for LCIORandomAccess records.
Definition: LCIORandomAccess.h:47
Handler for LCIOrandomAccess and LCIOIndex objects/blocks.
Definition: SIORandomAccessHandler.h:16