BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtId Class Reference

#include <EvtId.hh>

Public Member Functions

 EvtId ()
 EvtId (int id, int alias)
int operator== (const EvtId &id) const
int operator!= (const EvtId &id) const
int getId () const
int getAlias () const
int isAlias () const

Friends

std::ostream & operator<< (std::ostream &s, const EvtId &v)

Detailed Description

Definition at line 27 of file EvtId.hh.

Constructor & Destructor Documentation

◆ EvtId() [1/2]

EvtId::EvtId ( )
inline

Definition at line 31 of file EvtId.hh.

31: _id( -1 ), _alias( -1 ) {}

Referenced by operator!=(), operator<<, and operator==().

◆ EvtId() [2/2]

EvtId::EvtId ( int id,
int alias )
inline

Definition at line 33 of file EvtId.hh.

33: _id( id ), _alias( alias ) {}

Member Function Documentation

◆ getAlias()

◆ getId()

◆ isAlias()

int EvtId::isAlias ( ) const
inline

Definition at line 44 of file EvtId.hh.

44{ return _id != _alias; }

◆ operator!=()

int EvtId::operator!= ( const EvtId & id) const
inline

Definition at line 38 of file EvtId.hh.

38{ return _id != id._id; }

◆ operator==()

int EvtId::operator== ( const EvtId & id) const
inline

Definition at line 37 of file EvtId.hh.

37{ return _id == id._id; }

◆ operator<<

std::ostream & operator<< ( std::ostream & s,
const EvtId & v )
friend

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