Public Member Functions | Public Attributes | Friends | List of all members
fnex::EventInfo_struct_RunSubrunCycle Struct Reference

Public Member Functions

 EventInfo_struct_RunSubrunCycle ()
 
 EventInfo_struct_RunSubrunCycle (int const &r, int const &s, int const &c)
 
bool operator< (const EventInfo_struct_RunSubrunCycle &other) const
 

Public Attributes

int run
 
int subrun
 
int cycle
 

Friends

std::ostream & operator<< (std::ostream &o, EventInfo_struct_RunSubrunCycle const &eventinfo)
 

Detailed Description

Definition at line 314 of file CompareFNEXCAFEventListFiles_module.cc.

Constructor & Destructor Documentation

fnex::EventInfo_struct_RunSubrunCycle::EventInfo_struct_RunSubrunCycle ( )
inline
fnex::EventInfo_struct_RunSubrunCycle::EventInfo_struct_RunSubrunCycle ( int const &  r,
int const &  s,
int const &  c 
)
inline

Member Function Documentation

bool fnex::EventInfo_struct_RunSubrunCycle::operator< ( const EventInfo_struct_RunSubrunCycle other) const
inline

Definition at line 334 of file CompareFNEXCAFEventListFiles_module.cc.

References cycle, run, and subrun.

334  {
335  if(this->run < other.run)
336  return true;
337  else if(this->run == other.run && this->subrun < other.subrun)
338  return true;
339  else if( this->run == other.run && this->subrun == other.subrun && this->cycle < other.cycle)
340  return true;
341 
342  return false;
343 
344  }//end of less than operator
Definition: run.py:1

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
EventInfo_struct_RunSubrunCycle const &  eventinfo 
)
friend

Definition at line 346 of file CompareFNEXCAFEventListFiles_module.cc.

346  {
347  o
348  << eventinfo.run
349  << " "
350  << eventinfo.subrun
351  << " "
352  << eventinfo.cycle
353  << std::endl;
354 
355  return o;
356  }//end of << operator to cout

Member Data Documentation

int fnex::EventInfo_struct_RunSubrunCycle::cycle
int fnex::EventInfo_struct_RunSubrunCycle::run
int fnex::EventInfo_struct_RunSubrunCycle::subrun

Definition at line 331 of file CompareFNEXCAFEventListFiles_module.cc.

Referenced by operator<().


The documentation for this struct was generated from the following file: