CbmRoot
Loading...
Searching...
No Matches
CbmStsUtils.h File Reference
#include "CbmStsHit.h"
#include "TClonesArray.h"
#include <set>
Include dependency graph for CbmStsUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cbm_sts_utils::HBinning
 Structure to hold the binning for 1D histogram. More...
 

Namespaces

namespace  cbm_sts_utils
 Namespace containing utility functions for STS detector.
 

Functions

int32_t cbm_sts_utils::GetHitCluSizeF (CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
 Get the cluster size of a hit from the front side.
 
int32_t cbm_sts_utils::GetHitCluSizeB (CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
 Get the cluster size of a hit from the back side.
 
double cbm_sts_utils::GetHitCharge (CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
 Get the charge of a hit as the average of front and back cluster charges.
 
double cbm_sts_utils::GetHitChargeB (CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
 Get the charge of a hit from the back side.
 
double cbm_sts_utils::GetHitChargeF (CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
 Get the charge of a hit from the front side.
 
double cbm_sts_utils::GetHitTimeB (CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
 Get the charge of a hit from the back side.
 
double cbm_sts_utils::GetHitTimeF (CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
 Get the charge of a hit from the front side.
 
double cbm_sts_utils::GetHitSizeAsy (CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
 Get the size asymmetry of a hit.
 
double cbm_sts_utils::GetHitChargeAsy (CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
 Get the charge asymmetry of a hit.
 
std::pair< HBinning, HBinningcbm_sts_utils::ChargeBinning (const CbmStsParModule &par_module, const uint32_t max_clu_size=1)
 Generate the charge binning from module config obj.
 
std::set< int > cbm_sts_utils::GetUnits (const std::vector< int32_t > addresses)
 Return the STS units from a list of addresses.
 
std::vector< int32_t > cbm_sts_utils::GetUnitModules (const std::vector< int32_t > addresses, const uint32_t unit)
 From a list of module address, return those that belong to a selected unit.
 

Variables

static const double cbm_sts_utils::kStsClock = 3.125
 
static const double cbm_sts_utils::kStsDx = 6. / 1024
 
static const double cbm_sts_utils::kStsDy = kStsDx / std::tan(7.5 * TMath::Pi() / 180)
 
static const double cbm_sts_utils::kStsErrX = kStsDx / sqrt(12)
 
static const double cbm_sts_utils::kStsErrY = kStsDy / sqrt(12)