EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#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.
View newest version in sPHENIX GitHub at line 52 of file functions.cxx
References Acts::UnitConstants::e, k, and phi.
Referenced by erhic::ParticleMCbase::ComputeEventDependentQuantities().
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.
View newest version in sPHENIX GitHub at line 31 of file functions.cxx
Referenced by erhic::EventFromAsciiFactory< T >::Create().