HPS-MC
 
Loading...
Searching...
No Matches
add_mother_full_truth.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <stdhep_util.hh>
#include <unistd.h>
#include <iostream>
#include <vector>

Go to the source code of this file.

Classes

struct  LHEParticle
 

Enumerations

enum  EventType { EVENT_APRIME , EVENT_RADIATIVE , EVENT_UNKNOWN }
 

Functions

bool read_lhe_event_aprime (FILE *lhe_file, int nup, LHEParticle &scattered_electron, LHEParticle &aprime, int id_pair)
 
bool read_lhe_event_radiative (FILE *lhe_file, int nup, LHEParticle &scattered_lepton, LHEParticle &electron, LHEParticle &positron)
 
bool read_lhe_event (FILE *lhe_file, EventType &event_type, int &nup, LHEParticle &scattered_particle, LHEParticle &pair_or_electron, LHEParticle &positron, int id_pair)
 
int main (int argc, char **argv)
 

Variables

const double ELECTRON_MASS = 0.000511
 
const double BEAM_ENERGY = 3.74
 

Enumeration Type Documentation

◆ EventType

enum EventType
Enumerator
EVENT_APRIME 
EVENT_RADIATIVE 
EVENT_UNKNOWN 

Definition at line 28 of file add_mother_full_truth.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 157 of file add_mother_full_truth.cc.

◆ read_lhe_event()

bool read_lhe_event ( FILE *  lhe_file,
EventType event_type,
int &  nup,
LHEParticle scattered_particle,
LHEParticle pair_or_electron,
LHEParticle positron,
int  id_pair 
)

Definition at line 123 of file add_mother_full_truth.cc.

◆ read_lhe_event_aprime()

bool read_lhe_event_aprime ( FILE *  lhe_file,
int  nup,
LHEParticle scattered_electron,
LHEParticle aprime,
int  id_pair 
)

Definition at line 34 of file add_mother_full_truth.cc.

◆ read_lhe_event_radiative()

bool read_lhe_event_radiative ( FILE *  lhe_file,
int  nup,
LHEParticle scattered_lepton,
LHEParticle electron,
LHEParticle positron 
)

Definition at line 75 of file add_mother_full_truth.cc.

Variable Documentation

◆ BEAM_ENERGY

const double BEAM_ENERGY = 3.74

Definition at line 19 of file add_mother_full_truth.cc.

◆ ELECTRON_MASS

const double ELECTRON_MASS = 0.000511

Adds mother particles (623 scattered electron/muon and 622 A-prime/virtual photon) to events and builds proper genealogy from LHE and STDHEP input files. Handles both A-prime (nup=7) and radiative (nup=6) cases.

Definition at line 18 of file add_mother_full_truth.cc.