BOSS 8.0.0
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 // need a default constructor
31 EvtId() : _id( -1 ), _alias( -1 ) {}
32
33 EvtId( int id, int alias ) : _id( id ), _alias( alias ) {}
34
35 friend std::ostream& operator<<( std::ostream& s, const EvtId& v );
36
37 int operator==( const EvtId& id ) const { return _id == id._id; }
38 int operator!=( const EvtId& id ) const { return _id != id._id; }
39
40 int getId() const { return _id; }
41
42 int getAlias() const { return _alias; }
43
44 int isAlias() const { return _id != _alias; }
45
46private:
47 // particle number 0..n. The order of particles are determined
48 // by the order in pdt.table
49 int _id;
50 // if the particle is an alias to another particle alias!=id
51 // The only place where the alias should be used is for looking
52 // up decays in the decay table.
53 int _alias;
54};
55
56#endif
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
int getAlias() const
Definition EvtId.hh:42
EvtId()
Definition EvtId.hh:31
int getId() const
Definition EvtId.hh:40
int operator!=(const EvtId &id) const
Definition EvtId.hh:38
EvtId(int id, int alias)
Definition EvtId.hh:33
friend std::ostream & operator<<(std::ostream &s, const EvtId &v)
int isAlias() const
Definition EvtId.hh:44
int operator==(const EvtId &id) const
Definition EvtId.hh:37