//-------------------------------------------------------------------------- // // Environment: // This software is part of the EvtGen package developed jointly // for the BaBar and CLEO collaborations. If you use all or part // of it, please give an appropriate acknowledgement. // // Copyright Information: See EvtGen/COPYRIGHT // Copyright (C) 1998 Caltech, UCSB // // Module: EvtGen/EvtId.hh // // Description:Class for particle Id used in EvtGen. // // Modification history: // // DJL/RYD May 26, 1998 Module created // //------------------------------------------------------------------------ #ifndef EVTID_HH #define EVTID_HH #include #include class EvtId { public: //need a default constructor EvtId():_id(-1),_alias(-1){} EvtId(int id,int alias):_id(id),_alias(alias){} friend std::ostream& operator<<(std::ostream& s, const EvtId& v); int operator==(const EvtId& id) const { return _id==id._id; } int operator!=(const EvtId& id) const { return _id!=id._id; } int operator<(const EvtId& id) const { return _id