]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/EvtGenBase/EvtId.cpp
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenBase / EvtId.cpp
CommitLineData
da0e9ce3 1//--------------------------------------------------------------------------
2//
3// Environment:
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.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtId.cc
12//
13// Description: Class for particle Id used in EvtGen.
14//
15// Modification history:
16//
17// RYD May 26, 1998 Module created
18//
19//------------------------------------------------------------------------
20//
21#include "EvtGenBase/EvtPatches.hh"
22
23#include "EvtGenBase/EvtId.hh"
24#include "EvtGenBase/EvtPDL.hh"
25#include <iostream>
26using std::ostream;
27
28
29ostream& operator<<(ostream& s, const EvtId& id){
30
31 s<<"(Id="<<id._id<<" Alias="<<id._alias<<")";
32
33 return s;
34
35}
36
37
38int EvtId::isConjugate(const EvtId & id) const {
39 return EvtPDL::getStdHep(*this) == - EvtPDL::getStdHep(id);
40}
41
0ca57c2f 42std::string EvtId::getName() const {
43
44 return EvtPDL::name(*this);
45
46}