CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtId.hh
Go to the documentation of this file.
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: EvtGen/EvtId.hh
12//
13// Description:Class for particle Id used in EvtGen.
14//
15// Modification history:
16//
17// DJL/RYD May 26, 1998 Module created
18//
19//------------------------------------------------------------------------
20
21#ifndef EVTID_HH
22#define EVTID_HH
23
24#include <iostream>
25//class ostream;
26
27class EvtId {
28
29public:
30
31 //need a default constructor
32 EvtId():_id(-1),_alias(-1){}
33
34 EvtId(int id,int alias):_id(id),_alias(alias){}
35
36 friend std::ostream& operator<<(std::ostream& s, const EvtId& v);
37
38 int operator==(const EvtId& id) const { return _id==id._id; }
39 int operator!=(const EvtId& id) const { return _id!=id._id; }
40
41 int getId() const { return _id;}
42
43 int getAlias() const { return _alias;}
44
45 int isAlias() const { return _id!=_alias;}
46
47private:
48
49 //particle number 0..n. The order of particles are determined
50 //by the order in pdt.table
51 int _id;
52 //if the particle is an alias to another particle alias!=id
53 //The only place where the alias should be used is for looking
54 //up decays in the decay table.
55 int _alias;
56
57};
58
59#endif
60
XmlRpcServer s
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition KarLud.h:35
Definition EvtId.hh:27
int getAlias() const
Definition EvtId.hh:43
EvtId()
Definition EvtId.hh:32
int getId() const
Definition EvtId.hh:41
int operator!=(const EvtId &id) const
Definition EvtId.hh:39
EvtId(int id, int alias)
Definition EvtId.hh:34
friend std::ostream & operator<<(std::ostream &s, const EvtId &v)
int isAlias() const
Definition EvtId.hh:45
int operator==(const EvtId &id) const
Definition EvtId.hh:38