![]() |
eic-smear
1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
|
#include "eicsmear/functions.h"
#include <cmath>
#include <fstream>
#include <set>
#include <sstream>
#include <string>
#include <TLorentzVector.h>
#include <TMath.h>
#include <TParticlePDG.h>
#include <TVector2.h>
#include <TVector3.h>
#include "eicsmear/erhic/EventMC.h"
#include "eicsmear/erhic/ParticleMC.h"
Go to the source code of this file.
Classes | |
struct | Pair |
Functions | |
char | getFirstNonBlank (const std::string &line) |
double | computeHermesPhiH (const TLorentzVector &hadronInPrf, const TLorentzVector &leptonInPrf, const TLorentzVector &photonInPrf) |
Global function implementations.
Definition in file functions.cxx.
double computeHermesPhiH | ( | const TLorentzVector & | hadronInPrf, |
const TLorentzVector & | leptonInPrf, | ||
const TLorentzVector & | photonInPrf | ||
) |
Calculate the hadron azimuthal angle around the virtual photon direction with respect to the lepton scattering plane in the proton rest frame. We use the HERMES convention, returning an angle in the range [0,2pi]. The vectors passed as arguments should already be boosted to the proton rest frame. Incident and scattered leptons, incident protons and virtual photons all return -999.
Definition at line 52 of file functions.cxx.
char getFirstNonBlank | ( | const std::string & | line | ) |
Returns the first non-blank character in a line. Returns \0 if there are no non-blank characters in the line.
Definition at line 31 of file functions.cxx.