ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Namespaces | Classes | Functions
AtTools Namespace Reference

Namespaces

 Kinematics
 

Classes

class  AtELossManager
 
class  AtELossModel
 
class  AtELossTable
 
class  AtKinematics
 
class  AtParsers
 
class  AtTrackTransformer
 
class  AtVirtualTerminal
 
struct  IonFitInfo
 

Functions

std::unique_ptr< TF1 > GetHitFunctionTB (const AtHit &hit, const AtDigiPar *par=nullptr)
 Get charge as a function of TB. More...
 
std::unique_ptr< TF1 > GetHitFunction (const AtHit &hit, const AtDigiPar *par=nullptr)
 Get charge as a function of z (mm). More...
 
double GetTB (double z, const AtDigiPar *par=nullptr)
 Get TB that corresponds to the passed z position [mm]. More...
 
double GetDriftTB (double d, const AtDigiPar *par=nullptr)
 Get TB that corresponds to a drift of distance d [mm]. More...
 
std::vector< std::string > SplitString (const std::string &s, char delim)
 split string, s, into vector of tokens split by delim. More...
 
template<class Vector >
ROOT::Math::AxisAngle GetRotationToZ (const Vector &vec)
 
template<class Vector1 , class Vector2 >
ROOT::Math::XYZPoint GetIntersection (const std::vector< Vector1 > &point, const std::vector< Vector2 > &direction)
 

Detailed Description

Namespace for helper functions manipulating things in AtData (and others). Will take in the parameter class to use. If nullptr then looks for it in the runtime DB N.B. FairRoot implentations mean only the primary thread can find things (the underlying static variable referenced FairRun::Instance() is thread_local).

Function Documentation

◆ GetDriftTB()

double AtTools::GetDriftTB ( double  d,
const AtDigiPar par = nullptr 
)

Get TB that corresponds to a drift of distance d [mm].

Definition at line 37 of file AtDataManip.cxx.

◆ GetHitFunction()

std::unique_ptr< TF1 > AtTools::GetHitFunction ( const AtHit hit,
const AtDigiPar par = nullptr 
)

Get charge as a function of z (mm).

Definition at line 48 of file AtDataManip.cxx.

◆ GetHitFunctionTB()

std::unique_ptr< TF1 > AtTools::GetHitFunctionTB ( const AtHit hit,
const AtDigiPar par = nullptr 
)

Get charge as a function of TB.

Definition at line 74 of file AtDataManip.cxx.

◆ GetIntersection()

template<class Vector1 , class Vector2 >
ROOT::Math::XYZPoint AtTools::GetIntersection ( const std::vector< Vector1 > &  point,
const std::vector< Vector2 > &  direction 
)

Get the intersection (or point of closest approach) between two lines. The lines are parameterized as point[i] + t*direction[i].

Definition at line 32 of file AtVectorUtil.h.

◆ GetRotationToZ()

template<class Vector >
ROOT::Math::AxisAngle AtTools::GetRotationToZ ( const Vector &  vec)

Get the rotation matrix that will take vec and make it the z-axis. That is vec*GetRotationToZ(vec) == |vec|\hat{z}.

Definition at line 20 of file AtVectorUtil.h.

◆ GetTB()

double AtTools::GetTB ( double  z,
const AtDigiPar fPar = nullptr 
)

Get TB that corresponds to the passed z position [mm].

Assumes that window is at z = 0, and the electrons are drifting towards the pad plane at the z locations specified in the parameter file.

Definition at line 21 of file AtDataManip.cxx.

◆ SplitString()

std::vector< std::string > AtTools::SplitString ( const std::string &  s,
char  delim 
)

split string, s, into vector of tokens split by delim.

Definition at line 6 of file AtStringManip.cxx.