12#include "Math/Rotation3D.h"
13#include "Math/Vector3Dfwd.h"
17#include <unordered_map>
42 typedef std::pair<Hit, std::vector<DigiRec>>
inputType;
43 typedef std::pair<std::vector<inputType>, std::vector<inputType>>
outputType;
56 std::pair<int, HitFactory2D>
ProjectDigis(std::vector<DigiRec>* cid, std::vector<DigiRec>* cjd);
60 int CheckMerge(std::vector<DigiRec>* cid, std::vector<DigiRec>* cjd);
84 void CalibrateHit(
Hit*
h,
const double dx,
const double dy,
const double edx,
const double edy,
const double edt,
85 const double time,
const double tdrift,
const double eloss,
const HitFactory2D& hitF);
Data class with information on a STS local track.
static float Clk(eCbmTrdAsicType ty)
DAQ clock accessor for each ASIC.
Extend the TRD(2D) digi class to incorporate FEE calibration.
Cluster finding and hit reconstruction algorithms for the TRD(2D) module.
HitMerger2D(const HitMerger2D &ref)
HitFinder2DModPar fParams
Parameter container.
void CalibrateHit(Hit *h, const double dx, const double dy, const double edx, const double edy, const double edt, const double time, const double tdrift, const double eloss, const HitFactory2D &hitF)
const HitMerger2D & operator=(const HitMerger2D &ref)
bool MergeHits(Hit *h, int a0, HitFactory2D &hitF)
Algorithm for hit merging.
std::pair< std::vector< inputType >, std::vector< inputType > > outputType
void SetHitTimeOffset(int dt)
Time offset to synchronize TRD2D hits to the rest of detectors.
outputType operator()(std::vector< inputType > &hitsRow1, std::vector< inputType > &hitsRow2)
Steering routine for building hits.
std::pair< int, HitFactory2D > ProjectDigis(std::vector< DigiRec > *cid, std::vector< DigiRec > *cjd)
std::pair< Hit, std::vector< DigiRec > > inputType
HitMerger2D()
Default constructor.
int GetPadRowCol(int address, int &c)
Addressing ASIC on module based on id.
int CheckMerge(std::vector< DigiRec > *cid, std::vector< DigiRec > *cjd)
Implement topologic cuts for hit merging.
A light-weight TRD hit class for online reconstruction, based on CbmTrdHit. .
A light-weight TRD hit class for online reconstruction, based on CbmTrdHit. .