BOSS 8.0.0
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>
25#include "EvtVector4R.hh"
26#include <iosfwd>
27
28const int EVTSTDHEPLENGTH = 1000;
29
30class EvtStdHep {
31
32public:
35
36 void init();
37
38 int getFirstMother( int i ) { return _prntfirst[i]; }
39 int getLastMother( int i ) { return _prntlast[i]; }
40 int getFirstDaughter( int i ) { return _daugfirst[i]; }
41 int getLastDaughter( int i ) { return _dauglast[i]; }
42
43 int getStdHepID( int i ) { return _id[i]; }
44 int getIStat( int i ) { return _istat[i]; }
45
46 EvtVector4R getP4( int i ) { return _p4[i]; }
47 EvtVector4R getX4( int i ) { return _x[i]; }
48
49 void translate( EvtVector4R d );
50
51 int getNPart();
52 void createParticle( EvtVector4R p4, EvtVector4R x, int prntfirst, int prntlast, int id );
53
54 friend std::ostream& operator<<( std::ostream& s, const EvtStdHep& stdhep );
55
56private:
57 int _npart;
60 int _prntfirst[EVTSTDHEPLENGTH];
61 int _prntlast[EVTSTDHEPLENGTH];
62 int _daugfirst[EVTSTDHEPLENGTH];
63 int _dauglast[EVTSTDHEPLENGTH];
64 int _id[EVTSTDHEPLENGTH];
65 int _istat[EVTSTDHEPLENGTH];
66};
67
68#endif
const int EVTSTDHEPLENGTH
Definition EvtStdHep.hh:28
XmlRpcServer s
friend std::ostream & operator<<(std::ostream &s, const EvtStdHep &stdhep)
int getIStat(int i)
Definition EvtStdHep.hh:44
void translate(EvtVector4R d)
Definition EvtStdHep.cc:65
int getFirstMother(int i)
Definition EvtStdHep.hh:38
int getLastMother(int i)
Definition EvtStdHep.hh:39
void createParticle(EvtVector4R p4, EvtVector4R x, int prntfirst, int prntlast, int id)
Definition EvtStdHep.cc:37
void init()
Definition EvtStdHep.cc:33
int getLastDaughter(int i)
Definition EvtStdHep.hh:41
int getStdHepID(int i)
Definition EvtStdHep.hh:43
int getFirstDaughter(int i)
Definition EvtStdHep.hh:40
int getNPart()
Definition EvtStdHep.cc:35
EvtVector4R getP4(int i)
Definition EvtStdHep.hh:46
EvtVector4R getX4(int i)
Definition EvtStdHep.hh:47