Mēnsūra
Public Member Functions | List of all members
EventID Class Reference

The class aggregates event ID information. More...

#include <EventID.hpp>

Public Member Functions

 EventID ()
 Default constructor.
 
 EventID (unsigned long runNumber_, unsigned long lumiBlockNumber_, unsigned long eventNumber_)
 Constructor to specify the ID.
 
 EventID (unsigned long runNumber_, bool minimal=true)
 Constructor from run number solely. More...
 
 EventID (EventID const &)=default
 Default copy constructor.
 
EventIDoperator= (EventID const &)=default
 Default assignment operator.
 
void Set (unsigned long runNumber_, unsigned long lumiBlockNumber_, unsigned long eventNumber_)
 Sets the ID.
 
void Set (unsigned long runNumber_, bool minimal=true)
 Sets the ID with the run number only. More...
 
bool operator< (EventID const &rhs) const
 Comparison operator.
 
bool operator== (EventID const &rhs) const
 Equality operator.
 
bool operator<= (EventID const &rhs) const
 Unstrict comparison operator.
 
unsigned long Run () const
 Get the run number.
 
unsigned long LumiBlock () const
 Get the luminosity block number.
 
unsigned long Event () const
 Get the event number.
 

Detailed Description

The class aggregates event ID information.

Constructor & Destructor Documentation

EventID::EventID ( unsigned long  runNumber_,
bool  minimal = true 
)

Constructor from run number solely.

Consult the documentation for method Set(unsigned long, bool) for the description.

Member Function Documentation

void EventID::Set ( unsigned long  runNumber_,
bool  minimal = true 
)

Sets the ID with the run number only.

Sets the specified run number. If the second argument is true (default), the lumiBlockNumber and eventNumber are set to 0, hence this instance of EventID is guaranteed to be smaller or equal than all the events with the same run number. Otherwise lumiBlockNumber and eventNumber are set to (-1), hence this event is greater than any one with the same run number. This method is useful if the user wants to specify some range based on the run numbers only.


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