Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
compReactionPerTime Struct Reference

#include <G4ITReaction.hh>

Public Member Functions

bool operator() (G4ITReactionPtr rhs, G4ITReactionPtr lhs) const
 

Detailed Description

Definition at line 70 of file G4ITReaction.hh.

Member Function Documentation

bool compReactionPerTime::operator() ( G4ITReactionPtr  rhs,
G4ITReactionPtr  lhs 
) const

Definition at line 40 of file G4ITReaction.cc.

42 {
43  double time1 = rhs->GetTime();
44  double time2 = lhs->GetTime();
45  if (time1 == time2)
46  {
47  return rhs->GetHash() < lhs->GetHash();
48  }
49  return rhs->GetTime() < lhs->GetTime();
50 }

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