EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SmearSTAR_0_0.cxx File Reference
+ Include dependency graph for SmearSTAR_0_0.cxx:

Go to the source code of this file.

Functions

static double etaToTheta (const double eta)
 
static Smear::Acceptance::Zone makeZone (double etaMin, double etaMax)
 
Smear::Detector BuildSTAR_0_0 ()
 

Detailed Description

Example smearing script for the STAR detector

Author
Thomas Burton
Date
2014-01-10

Definition in file SmearSTAR_0_0.cxx.

Function Documentation

Smear::Detector BuildSTAR_0_0 ( )

Smearing parameterisations for the STAR detector.

These parameterisations are non-exhaustive: they do not cover elements such as particle identification, and they are only for the central elements of the detector - essentially, just TPC and B/EEMC.

Note: you must gSystem->Load("libeicsmear") BEFORE loading this script, as ROOT needs to understand what a Smear::Detector is.

Definition at line 52 of file SmearSTAR_0_0.cxx.

View newest version in sPHENIX GitHub at line 52 of file SmearSTAR_0_0.cxx

References Smear::Smearer::Accept, Smear::Detector::AddDevice(), Smear::Acceptance::AddZone(), Smear::kCharged, Smear::kE, Smear::kElectromagnetic, Smear::kP, Smear::kPhi, Smear::kTheta, makeZone(), momentum, phi, Smear::Acceptance::SetCharge(), Smear::Detector::SetEventKinematicsCalculator(), star(), and theta().

Referenced by BuildByName().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static double etaToTheta ( const double  eta)
static

Convert pseudorapidity (eta) to polar angle (theta) in radians. Make use of TLorentzVector to do eta-to-theta conversion.

Definition at line 25 of file SmearSTAR_0_0.cxx.

View newest version in sPHENIX GitHub at line 25 of file SmearSTAR_0_0.cxx

References v.

static Smear::Acceptance::Zone makeZone ( double  etaMin,
double  etaMax 
)
static

Returns an Acceptance::Zone spanning a range in eta.

Definition at line 34 of file SmearSTAR_0_0.cxx.

View newest version in sPHENIX GitHub at line 34 of file SmearSTAR_0_0.cxx

References etaToTheta().

Referenced by BuildSTAR_0_0().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: