1 //--------------------------------------------------------------------------
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
13 // Description: Class for particle Id used in EvtGen.
15 // Modification history:
17 // RYD May 26, 1998 Module created
19 //------------------------------------------------------------------------
21 #include "EvtGenBase/EvtPatches.hh"
23 #include "EvtGenBase/EvtId.hh"
24 #include "EvtGenBase/EvtPDL.hh"
29 ostream& operator<<(ostream& s, const EvtId& id){
31 s<<"(Id="<<id._id<<" Alias="<<id._alias<<")";
38 int EvtId::isConjugate(const EvtId & id) const {
39 return EvtPDL::getStdHep(*this) == - EvtPDL::getStdHep(id);