EvtGen 2.2.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
Loading...
Searching...
No Matches
EvtStdHep.hh
Go to the documentation of this file.
1
2/***********************************************************************
3* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
4* *
5* This file is part of EvtGen. *
6* *
7* EvtGen is free software: you can redistribute it and/or modify *
8* it under the terms of the GNU General Public License as published by *
9* the Free Software Foundation, either version 3 of the License, or *
10* (at your option) any later version. *
11* *
12* EvtGen is distributed in the hope that it will be useful, *
13* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15* GNU General Public License for more details. *
16* *
17* You should have received a copy of the GNU General Public License *
18* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
19***********************************************************************/
20
21#ifndef EVTSTDHEP_HH
22#define EVTSTDHEP_HH
23
25
26#include <iosfwd>
27
28const int EVTSTDHEPLENGTH = 1000;
29
30class EvtStdHep {
31 public:
34
35 void init();
36
37 int getFirstMother( int i ) { return m_prntfirst[i]; }
38 int getLastMother( int i ) { return m_prntlast[i]; }
39 int getFirstDaughter( int i ) { return m_daugfirst[i]; }
40 int getLastDaughter( int i ) { return m_dauglast[i]; }
41
42 int getStdHepID( int i ) { return m_id[i]; }
43 int getIStat( int i ) { return m_istat[i]; }
44
45 EvtVector4R getP4( int i ) { return m_p4[i]; }
46 EvtVector4R getX4( int i ) { return m_x[i]; }
47
48 void translate( EvtVector4R d );
49
50 int getNPart();
51 void createParticle( EvtVector4R p4, EvtVector4R x, int prntfirst,
52 int prntlast, int id );
53
54 friend std::ostream& operator<<( std::ostream& s, const EvtStdHep& stdhep );
55
56 private:
66};
67
68#endif
const int EVTSTDHEPLENGTH
Definition EvtStdHep.hh:28
friend std::ostream & operator<<(std::ostream &s, const EvtStdHep &stdhep)
int m_daugfirst[EVTSTDHEPLENGTH]
Definition EvtStdHep.hh:62
int getIStat(int i)
Definition EvtStdHep.hh:43
int m_prntfirst[EVTSTDHEPLENGTH]
Definition EvtStdHep.hh:60
void translate(EvtVector4R d)
Definition EvtStdHep.cpp:67
EvtVector4R m_x[EVTSTDHEPLENGTH]
Definition EvtStdHep.hh:59
int getFirstMother(int i)
Definition EvtStdHep.hh:37
int m_id[EVTSTDHEPLENGTH]
Definition EvtStdHep.hh:64
int m_prntlast[EVTSTDHEPLENGTH]
Definition EvtStdHep.hh:61
int m_npart
Definition EvtStdHep.hh:57
int getLastMother(int i)
Definition EvtStdHep.hh:38
void createParticle(EvtVector4R p4, EvtVector4R x, int prntfirst, int prntlast, int id)
Definition EvtStdHep.cpp:39
void init()
Definition EvtStdHep.cpp:29
EvtVector4R m_p4[EVTSTDHEPLENGTH]
Definition EvtStdHep.hh:58
int getLastDaughter(int i)
Definition EvtStdHep.hh:40
int m_istat[EVTSTDHEPLENGTH]
Definition EvtStdHep.hh:65
int getStdHepID(int i)
Definition EvtStdHep.hh:42
int getFirstDaughter(int i)
Definition EvtStdHep.hh:39
int m_dauglast[EVTSTDHEPLENGTH]
Definition EvtStdHep.hh:63
int getNPart()
Definition EvtStdHep.cpp:34
EvtVector4R getP4(int i)
Definition EvtStdHep.hh:45
EvtVector4R getX4(int i)
Definition EvtStdHep.hh:46