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
functions.h File Reference
#include <string>
#include <Rtypes.h>
#include <TString.h>
#include "eicsmear/smear/Smear.h"
#include "eicsmear/smear/Detector.h"

Go to the source code of this file.

Classes

class  EventToDot
 

Functions

char getFirstNonBlank (const std::string &)
 
double computeHermesPhiH (const TLorentzVector &hadronInPrf, const TLorentzVector &leptonInPrf, const TLorentzVector &photonInPrf)
 
Long64_t BuildTree (const TString &inputFileName, const TString &outputDirName=".", const Long64_t maxEvent=0, const std::string &logFileName="")
 

Detailed Description

Global function declarations.

Author
Thomas Burton
Date
2011-07-07

Definition in file functions.h.

Function Documentation

Long64_t BuildTree ( const TString &  inputFileName,
const TString &  outputDirName,
const Long64_t  maxEvent,
const std::string &  logFileName 
)

This is an example function to generate ROOT files. It can be used "out of the box". If more control over the output is desired, then the settings of the Forester can be tweaked to do so.

Definition at line 25 of file BuildTree.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.