9#include "TClonesArray.h"
21 static const double kStsDx = 6. / 1024;
22 static const double kStsDy =
kStsDx / std::tan(7.5 * TMath::Pi() / 180);
109 std::set<int>
GetUnits(
const std::vector<int32_t> addresses);
116 std::vector<int32_t>
GetUnitModules(
const std::vector<int32_t> addresses,
const uint32_t unit);
Data class for a reconstructed hit in the STS.
friend fvec sqrt(const fvec &a)
data class for a reconstructed 3-d hit in the STS
Parameters for one STS module.
Namespace containing utility functions for STS detector.
int32_t GetHitCluSizeB(CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
Get the cluster size of a hit from the back side.
double GetHitChargeAsy(CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
Get the charge asymmetry of a hit.
static const double kStsDy
double GetHitChargeF(CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
Get the charge of a hit from the front side.
static const double kStsErrX
double GetHitTimeB(CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
Get the charge of a hit from the back side.
std::pair< HBinning, HBinning > ChargeBinning(const CbmStsParModule &par_module, const uint32_t max_clu_size=1)
Generate the charge binning from module config obj.
double GetHitSizeAsy(CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
Get the size asymmetry of a hit.
static const double kStsClock
double GetHitChargeB(CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
Get the charge of a hit from the back side.
std::set< int > GetUnits(const std::vector< int32_t > addresses)
Return the STS units from a list of addresses.
double GetHitCharge(CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
Get the charge of a hit as the average of front and back cluster charges.
double GetHitTimeF(CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
Get the charge of a hit from the front side.
static const double kStsDx
static const double kStsErrY
std::vector< int32_t > 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.
int32_t GetHitCluSizeF(CbmStsHit *hit=nullptr, TClonesArray *clusters=nullptr)
Get the cluster size of a hit from the front side.
Structure to hold the binning for 1D histogram.