StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EvtStdHep.hh
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 "EvtGenBase/EvtVector4R.hh"
25 #include <iosfwd>
26 
27 const int EVTSTDHEPLENGTH =1000;
28 
29 class EvtStdHep {
30 
31 public:
32 
33  EvtStdHep(){}
34  ~EvtStdHep(){}
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,
53  int prntlast, int id);
54 
55  friend std::ostream& operator<<(std::ostream& s, const EvtStdHep& stdhep);
56 
57 private:
58 
59  int _npart;
60  EvtVector4R _p4[EVTSTDHEPLENGTH];
61  EvtVector4R _x[EVTSTDHEPLENGTH];
62  int _prntfirst[EVTSTDHEPLENGTH];
63  int _prntlast[EVTSTDHEPLENGTH];
64  int _daugfirst[EVTSTDHEPLENGTH];
65  int _dauglast[EVTSTDHEPLENGTH];
66  int _id[EVTSTDHEPLENGTH];
67  int _istat[EVTSTDHEPLENGTH];
68 
69 };
70 
71 #endif
72