EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
functions.cxx File Reference
#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"
+ Include dependency graph for functions.cxx:

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)
 

Detailed Description

Global function implementations.

Author
Thomas Burton
Date
2011-07-07

Definition in file functions.cxx.

Function Documentation

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().

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function: