ATLAS Offline Software
BeamSpotID.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "BeamSpotID.h"
6 
7 bool BeamSpot::ID::operator<( const ID & rhs) const {
8  if ( m_timeStamp < rhs.m_timeStamp ) return true;
9  if ( m_timeStamp > rhs.m_timeStamp ) return false;
10  if ( m_pileup < rhs.m_pileup ) return true;
11  if ( m_pileup > rhs.m_pileup ) return false;
12  if ( m_bcid < rhs.m_bcid ) return true;
13  if ( m_bcid > rhs.m_bcid ) return false;
14  if ( m_lumiBlock < rhs.m_lumiBlock ) return true;
15  if ( m_lumiBlock > rhs.m_lumiBlock ) return false;
16  if ( m_runNumber < rhs.m_runNumber ) return true;
17  if ( m_runNumber > rhs.m_runNumber ) return false;
18  return false;
19 }
20 
21 
BeamSpot::ID::m_lumiBlock
unsigned int m_lumiBlock
Definition: BeamSpotID.h:30
BeamSpotID.h
BeamSpot::ID::m_timeStamp
unsigned long m_timeStamp
Definition: BeamSpotID.h:33
BeamSpot::ID::operator<
bool operator<(const ID &) const
Definition: BeamSpotID.cxx:7
BeamSpot::ID
Definition: BeamSpotID.h:10
BeamSpot::ID::m_runNumber
unsigned int m_runNumber
Definition: BeamSpotID.h:29
BeamSpot::ID::m_pileup
unsigned int m_pileup
Definition: BeamSpotID.h:31
BeamSpot::ID::m_bcid
unsigned int m_bcid
Definition: BeamSpotID.h:32