LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LCIORandomAccess.cc
Go to the documentation of this file.
1 #include "SIO/LCIORandomAccess.h"
2 
3 
4 namespace SIO {
5 
6  bool operator<(const LCIORandomAccess& ra0, const LCIORandomAccess& other) {
7  return ra0._maxRunEvt < other._minRunEvt ;
8  }
9 
10  //----------------------------------------------------------------------------
11 
13  os << " LCIORandomAccess: ----------------------- " << std::endl
14  << " minRun " << ra._minRunEvt.RunNum << std::endl
15  << " minEvt " << ra._minRunEvt.EvtNum << std::endl
16  << " maxRun " << ra._maxRunEvt.RunNum << std::endl
17  << " maxEvt " << ra._maxRunEvt.EvtNum << std::endl
18  << " nRunHeaders " << ra._nRunHeaders << std::endl
19  << " nEvents " << ra._nEvents << std::endl
20  << " recordsAreInOrder " << ra._recordsAreInOrder << std::endl
21  << " indexLocation " << ra._indexLocation << std::endl
22  << " prevLocation " << ra._prevLocation << std::endl
23  << " nextLocation " << ra._nextLocation << std::endl
24  << " firstRecordLocation " << ra._firstRecordLocation << std::endl
25  << "---------------------------------------------"
26  << std::endl ;
27  return os ;
28  }
29 
30  //----------------------------------------------------------------------------
31 
33  return _indexLocation ;
34  }
35 
36  //----------------------------------------------------------------------------
37 
39  return _prevLocation ;
40  }
41 
42  //----------------------------------------------------------------------------
43 
45  return _firstRecordLocation ;
46  }
47 
48  //----------------------------------------------------------------------------
49 
51  _indexLocation = il ;
52  }
53 
54  //----------------------------------------------------------------------------
55 
57  _prevLocation = pl ;
58  }
59 
60  //----------------------------------------------------------------------------
61 
64  }
65 
66 }
long64 getIndexLocation() const
Get the random access index location.
RunEvent::long64 long64
T endl(T...args)
std::ostream & operator<<(std::ostream &os, const LCIORandomAccess &ra)
void setIndexLocation(long64 il)
Set the random access index location.
Implementation class for LCIORandomAccess records.
long64 getFirstRecordLocation() const
Get the first record location.
void setPreviousLocation(long64 pl)
Set the previous record location.
void setFirstRecordLocation(long64 fl)
Set the first record location.
STL class.
bool operator<(const LCIORandomAccess &ra0, const LCIORandomAccess &other)
long64 getPrevLocation() const
Get the previous record location.