CHeT Library
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
CHeTGlobalSettings.cc File Reference
#include "CHeT/CHeTGlobalSettings.hh"
Include dependency graph for CHeTGlobalSettings.cc:

Go to the source code of this file.

Namespaces

namespace  CHeT
 Root namespace for the Cylindrical Helix Tracker (CHeT) project.
 
namespace  CHeT::Config
 Global Settings namespace containing configuration structures, physical constants, and utility functions for the detector geometry.
 

Macros

#define M_PI   3.14159265358979323846
 

Functions

double CHeT::Config::GetOffsetExp ()
 Retrieves the current experimental angular offset (OFFSET_EXP).
 
void CHeT::Config::SetOffsetExp (double val)
 Sets the experimental angular offset (OFFSET_EXP).
 
double CHeT::Config::GetDeltaI (int cylIdx)
 Retrieves the current experimental parameter DELTA for a specific cylinder.
 
void CHeT::Config::SetDeltaI (int cylIdx, double val)
 Sets the experimental parameter DELTA for a specific cylinder.
 
void CHeT::Config::SetDeltas (const std::vector< double > &deltas)
 Sets the experimental parameter DELTA for all cylinders.
 
std::vector< double > CHeT::Config::GetDeltas ()
 Gets the experimental parameter DELTA for all cylinders.
 
void CHeT::Config::SetRotation (double rx, double ry, double rz)
 Sets the global rotation of the detector using Euler angles. Rotations are applied in order: X, then Y, then Z.
 
void CHeT::Config::GetRotation (double &rx, double &ry, double &rz)
 Retrieves the current global rotation angles.
 
void CHeT::Config::SetTranslation (double tx, double ty, double tz)
 Sets the global translation of the detector origin.
 
void CHeT::Config::GetTranslation (double &tx, double &ty, double &tz)
 Retrieves the current global translation.
 
void CHeT::Config::ApplyRotation (double &x, double &y, double &z)
 Rotates a 3D VECTOR in-place from the Detector Local Frame to the Global Lab Frame. Uses the currently set rotation angles. This applies ONLY rotation (suitable for direction vectors).
 
void CHeT::Config::ApplyInverseRotation (double &x, double &y, double &z)
 Rotates a 3D VECTOR in-place from the Global Lab Frame to the Detector Local Frame. (Inverse of ApplyRotation). This applies ONLY rotation (suitable for direction vectors).
 
void CHeT::Config::ApplyTransformation (double &x, double &y, double &z)
 Transforms a 3D POINT in-place from the Detector Local Frame to the Global Lab Frame. Applies Rotation then Translation. P_global = R * P_local + T.
 
void CHeT::Config::ApplyInverseTransformation (double &x, double &y, double &z)
 Transforms a 3D POINT in-place from the Global Lab Frame to the Detector Local Frame. Applies Inverse Translation then Inverse Rotation. P_local = R^T * (P_global - T)
 
int CHeT::Config::GetBoardGlobalOffset (int board_id)
 Returns the global offset (bundle count) for a specific board.
 
void CHeT::Config::SetActiveCylinders (const std::vector< int > &active_ids)
 Sets the list of active cylinder IDs. This defines the physical composition of the detector for the current run/simulation. Only these cylinders will be returned by GetCylinders().
 
std::vector< int > CHeT::Config::GetActiveCylinders ()
 Retrieves the list of currently active cylinder IDs.
 
const std::vector< CylinderConfig > & CHeT::Config::GetCylinders ()
 Retrieves the configuration for all active cylinders.
 
double CHeT::Config::wrap0_2pi (double angle)
 Wraps an angle into the [0, 2*PI) range.
 
FiberProp CHeT::Config::GetFiberProp (int b_id)
 Retrieves fiber properties given a global bundle ID.
 
int CHeT::Config::GetGlobalBundleId (int board_id, int channel_id)
 Converts Hardware Board/Channel to Global Bundle ID.
 
std::vector< BundlesIntersectionCHeT::Config::FindIntersections (const std::vector< int > &hit_ids)
 Finds 3D intersections between a list of hit bundles.
 
int CHeT::Config::GetGlobalIdFromGeometry (int cyl_id, int layer_id, int layer_idx)
 Helper: Converts Geometry (Cyl, Layer, Index) to Global ID.
 
void CHeT::Config::PrintBundleMapping (int global_id)
 Helper: Prints mapping details for a given Global ID to stdout.
 
void CHeT::Config::MapExplorer ()
 Interactive CLI menu to explore the mapping.
 

Macro Definition Documentation

◆ M_PI

#define M_PI   3.14159265358979323846

Definition at line 5 of file CHeTGlobalSettings.cc.