HPS-MC
 
Loading...
Searching...
No Matches
stdhep_util.hh
Go to the documentation of this file.
1#include <vector>
2using namespace std;
3
4extern bool xdr_init_done;
5extern bool has_hepev4;
6
8 int isthep; /* status code */
9 int idhep; /* The particle id */
10 int jmohep[2]; /* The position of the mother particle */
11 int jdahep[2]; /* Position of the first daughter... */
12 double phep[5]; /* 4-Momentum, mass */
13 double vhep[4]; /* Vertex information */
14 //double spinlh[3];
15 //double icolorflowlh[2];
16};
17
19 vector<stdhep_entry> particles;
20 int nevhep;
24 //double alphaqedlh;
25 //double alphaqcdlh;
26 //double scalelh[10];
27};
28
29int read_stdhep(vector<stdhep_entry> *new_event);
30void read_stdhep(stdhep_event *new_event);
31void write_stdhep(vector<stdhep_entry> *new_event, int nevhep);
32void write_stdhep(stdhep_event *new_event);
33void add_filler_particle(vector<stdhep_entry> *new_event);
34int append_stdhep(vector<stdhep_entry> *event, const vector<stdhep_entry> *new_event);
35
36int open_read(char *filename, int istream, int n_events=1000000);
37void open_write(char *filename, int ostream, int n_events);
38void close_write(int ostream);
39void write_file(int ostream);
40bool read_next(int istream);
41void close_read(int istream);
42void print_entry(stdhep_entry entry);
void add_filler_particle(vector< stdhep_entry > *new_event)
bool has_hepev4
void open_write(char *filename, int ostream, int n_events)
bool xdr_init_done
int open_read(char *filename, int istream, int n_events=1000000)
int append_stdhep(vector< stdhep_entry > *event, const vector< stdhep_entry > *new_event)
void write_stdhep(vector< stdhep_entry > *new_event, int nevhep)
int read_stdhep(vector< stdhep_entry > *new_event)
bool read_next(int istream)
void close_read(int istream)
void print_entry(stdhep_entry entry)
void write_file(int ostream)
void close_write(int ostream)
Definition stdhep_util.hh:7
int idhep
Definition stdhep_util.hh:9
double vhep[4]
int jmohep[2]
double phep[5]
int isthep
Definition stdhep_util.hh:8
int jdahep[2]
vector< stdhep_entry > particles
double eventweightlh