BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtStdHep.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/EvtStdHep.hh
12//
13// Description: Class produce the StdHep representation of the decay.
14//
15// Modification history:
16//
17// RYD March. 11, 1998 Module created
18//
19//------------------------------------------------------------------------
20
21#ifndef EVTSTDHEP_HH
22#define EVTSTDHEP_HH
23
24//#include <iostream.h>
26#include <iosfwd>
27
28const int EVTSTDHEPLENGTH =1000;
29
30class EvtStdHep {
31
32public:
33
36
37 void init();
38
39 int getFirstMother(int i) { return _prntfirst[i]; }
40 int getLastMother(int i) { return _prntlast[i]; }
41 int getFirstDaughter(int i) { return _daugfirst[i]; }
42 int getLastDaughter(int i) { return _dauglast[i]; }
43
44 int getStdHepID(int i) { return _id[i]; }
45 int getIStat(int i) { return _istat[i]; }
46
47 EvtVector4R getP4(int i) { return _p4[i]; }
48 EvtVector4R getX4(int i) { return _x[i]; }
49
50 void translate(EvtVector4R d);
51
52 int getNPart();
53 void createParticle(EvtVector4R p4,EvtVector4R x,int prntfirst,
54 int prntlast, int id);
55
56 friend std::ostream& operator<<(std::ostream& s, const EvtStdHep& stdhep);
57
58private:
59
60 int _npart;
63 int _prntfirst[EVTSTDHEPLENGTH];
64 int _prntlast[EVTSTDHEPLENGTH];
65 int _daugfirst[EVTSTDHEPLENGTH];
66 int _dauglast[EVTSTDHEPLENGTH];
67 int _id[EVTSTDHEPLENGTH];
68 int _istat[EVTSTDHEPLENGTH];
69
70};
71
72#endif
73
const int EVTSTDHEPLENGTH
Definition: EvtStdHep.hh:28
XmlRpcServer s
Definition: HelloServer.cpp:11
friend std::ostream & operator<<(std::ostream &s, const EvtStdHep &stdhep)
int getIStat(int i)
Definition: EvtStdHep.hh:45
void translate(EvtVector4R d)
Definition: EvtStdHep.cc:69
int getFirstMother(int i)
Definition: EvtStdHep.hh:39
int getLastMother(int i)
Definition: EvtStdHep.hh:40
void createParticle(EvtVector4R p4, EvtVector4R x, int prntfirst, int prntlast, int id)
Definition: EvtStdHep.cc:41
void init()
Definition: EvtStdHep.cc:33
int getLastDaughter(int i)
Definition: EvtStdHep.hh:42
~EvtStdHep()
Definition: EvtStdHep.hh:35
int getStdHepID(int i)
Definition: EvtStdHep.hh:44
int getFirstDaughter(int i)
Definition: EvtStdHep.hh:41
int getNPart()
Definition: EvtStdHep.cc:37
EvtVector4R getP4(int i)
Definition: EvtStdHep.hh:47
EvtVector4R getX4(int i)
Definition: EvtStdHep.hh:48