SIO Namespace Reference


Functions

bool operator< (const RunEvent &r0, const RunEvent &other)
std::ostream & operator<< (std::ostream &os, const RunEvent &re)
bool operator< (const LCIORandomAccess ra0, const LCIORandomAccess &other)
std::ostream & operator<< (std::ostream &os, const LCIORandomAccess &ra)
std::ostream & operator<< (std::ostream &os, const LCIORandomAccessMgr &ra)
std::ostream & operator<< (std::ostream &os, const RunEventMap &rm)


Function Documentation

bool SIO::operator< ( const RunEvent &  r0,
const RunEvent &  other 
)

Definition at line 7 of file LCIORandomAccess.cc.

00007                                                                { 
00008     
00009     //std::cout << r0 << " < " << other << " : [" 
00010     //<<  ( r0.RunNum == other.RunNum ?  r0.EvtNum < other.EvtNum  :  r0.RunNum < other.RunNum )  << "]" << std::endl;
00011     
00012     if( r0.EvtNum < 0 ) { // sort run records (evtNu == -1 ) first 
00013       
00014       return ( other.EvtNum < 0 ?  r0.RunNum < other.RunNum : true ) ;
00015     }
00016     else if( other.EvtNum < 0 ) return false ;
00017     
00018     return ( r0.RunNum == other.RunNum ?  r0.EvtNum < other.EvtNum  :  r0.RunNum < other.RunNum ) ; 
00019   } 

std::ostream& SIO::operator<< ( std::ostream &  os,
const RunEvent &  re 
)

Definition at line 21 of file LCIORandomAccess.cc.

00021                                                                {
00022     
00023     os << " run: " << re.RunNum << " - evt: " << re.EvtNum ;
00024     
00025     return os ;
00026   }

bool SIO::operator< ( const LCIORandomAccess  ra0,
const LCIORandomAccess &  other 
)

Definition at line 28 of file LCIORandomAccess.cc.

00028                                                                             {  
00029     
00030     return ra0._maxRunEvt < other._minRunEvt ;
00031   } 

std::ostream& SIO::operator<< ( std::ostream &  os,
const LCIORandomAccess &  ra 
)

Definition at line 33 of file LCIORandomAccess.cc.

00033                                                                      {
00034 
00035     os << " LCIORandomAccess:  ----------------------- " << std::endl  
00036        << " minRun " <<  ra._minRunEvt.RunNum << std::endl
00037        << " minEvt " <<  ra._minRunEvt.EvtNum  << std::endl
00038        << " maxRun " <<  ra._maxRunEvt.RunNum << std::endl  
00039        << " maxEvt " <<  ra._maxRunEvt.EvtNum << std::endl  
00040        << " nRunHeaders " <<  ra._nRunHeaders << std::endl 
00041        << " nEvents " <<  ra._nEvents  << std::endl
00042        << " recordsAreInOrder " <<  ra._recordsAreInOrder  << std::endl  
00043        << " indexLocation " <<  ra._indexLocation  << std::endl
00044        << " prevLocation " <<  ra._prevLocation  << std::endl
00045        << " nextLocation " <<  ra._nextLocation  << std::endl
00046        << " firstRecordLocation " <<  ra._firstRecordLocation  << std::endl
00047        << "---------------------------------------------"  
00048        << std::endl ;
00049 
00050     return os ;
00051   }

std::ostream& SIO::operator<< ( std::ostream &  os,
const LCIORandomAccessMgr &  ra 
)

Definition at line 436 of file LCIORandomAccessMgr.cc.

00436                                                                         {
00437     
00438     os << " LCIORandomAccessMgr:  ----------------------- " << std::endl   ;
00439     
00440     for( std::list<LCIORandomAccess* >::const_iterator i = ra._list.begin() ; i != ra._list.end() ; ++i ){
00441       
00442       os << **i ; 
00443     }
00444     
00445     os  <<  ra._runEvtMap   << std::endl ;
00446     
00447     return os ;
00448   }

std::ostream& SIO::operator<< ( std::ostream &  os,
const RunEventMap &  rm 
)

Definition at line 77 of file RunEventMap.cc.

00077                                                                   {
00078 
00079     os << " ------- RunEventMap : " << std::endl ;
00080 
00081     for( RunEventMap::Map_cIT it = rm.begin() ; it != rm.end() ; ++it ){
00082       
00083       os << "  " << RunEvent( it->first).RunNum 
00084          << ", " << RunEvent( it->first).EvtNum << "  :  " << it->second << std::endl;    }
00085     
00086     return os ;
00087   }


Generated on Mon Jan 7 13:19:17 2013 for MicromegasFramework by  doxygen 1.4.7