CbmRoot
|
#include <Clusterizer.h>
Public Types | |
typedef std::tuple< std::vector< Hit >, std::vector< size_t >, std::vector< u32 >, std::vector< int32_t > > | resultType |
Public Member Functions | |
Clusterizer (ClusterizerRpcPar params) | |
Constructor. | |
Clusterizer ()=default | |
Default constructor. | |
resultType | operator() (const std::vector< std::pair< CbmTofDigi, int32_t > > &digisIn) |
Build clusters out of ToF Digis and store the resulting info in a TofHit. | |
Private Types | |
typedef std::vector< std::pair< const CbmTofDigi *, int32_t > > | inputType |
Private Member Functions | |
std::vector< inputType > | chanSortDigis (const std::vector< std::pair< CbmTofDigi, int32_t > > &digisIn) |
resultType | buildClusters (std::vector< inputType > &input) |
bool | AddNextChan (std::vector< inputType > &input, int32_t iLastChan, Hit &cluster, std::vector< Hit > &clustersOut, std::vector< int32_t > &digiIndRef, std::vector< inputType::iterator > *lastChanPos=nullptr) |
Private Attributes | |
ClusterizerRpcPar | fParams |
Parameter container. | |
Definition at line 25 of file tof/Clusterizer.h.
|
private |
Definition at line 45 of file tof/Clusterizer.h.
std::tuple<std::vector<Hit>, std::vector<size_t>, std::vector<u32>, std::vector<int32_t> > cbm::algo::tof::Clusterizer::resultType |
Definition at line 27 of file tof/Clusterizer.h.
|
inline |
Constructor.
Definition at line 32 of file tof/Clusterizer.h.
|
default |
Default constructor.
|
private |
Definition at line 195 of file tof/Clusterizer.cxx.
References cbm::algo::tof::Hit::add(), AddNextChan(), cbm::algo::tof::ClusterizerRpcPar::fChanPar, cbm::algo::tof::ClusterizerRpcPar::fDeadStrips, cbm::algo::tof::ClusterizerRpcPar::fdMaxSpaceDist, cbm::algo::tof::ClusterizerRpcPar::fdMaxTimeDist, cbm::algo::tof::Hit::finalize(), fParams, cbm::algo::tof::ClusterizerRpcPar::fPosYMaxScal, cbm::algo::tof::ClusterizerRpcPar::fSigVel, cbm::algo::tof::ClusterizerRpcPar::fTimeRes, CbmTofDigi::GetSide(), CbmTofDigi::GetTime(), CbmTofDigi::GetTot(), cbm::algo::tof::Hit::hitPos, cbm::algo::tof::Hit::hitTime, cbm::algo::tof::Hit::normalize(), pos, cbm::algo::tof::Hit::reset(), cbm::algo::tof::TofCell::sizeX, cbm::algo::tof::TofCell::sizeY, and cbm::algo::tof::Hit::weightsSum.
Referenced by AddNextChan(), and buildClusters().
|
private |
Definition at line 50 of file tof/Clusterizer.cxx.
References cbm::algo::tof::Hit::add(), AddNextChan(), cbm::algo::tof::ClusterizerRpcPar::fChanPar, cbm::algo::tof::ClusterizerRpcPar::fDeadStrips, cbm::algo::tof::ClusterizerRpcPar::fdMaxSpaceDist, cbm::algo::tof::ClusterizerRpcPar::fdMaxTimeDist, cbm::algo::tof::Hit::finalize(), fParams, cbm::algo::tof::ClusterizerRpcPar::fPosYMaxScal, cbm::algo::tof::ClusterizerRpcPar::fSigVel, cbm::algo::tof::ClusterizerRpcPar::fTimeRes, CbmTofDigi::GetSide(), CbmTofDigi::GetTime(), CbmTofDigi::GetTot(), cbm::algo::tof::Hit::normalize(), cbm::algo::tof::Hit::numChan(), pos, cbm::algo::tof::Hit::reset(), cbm::algo::tof::TofCell::sizeX, and cbm::algo::tof::TofCell::sizeY.
Referenced by operator()().
|
private |
Sort channel-wise by time // not needed if digis are pre-sorted
Definition at line 26 of file tof/Clusterizer.cxx.
References cbm::algo::tof::ClusterizerRpcPar::fChanPar, fParams, and CbmTofDigi::GetChannel().
Referenced by operator()().
Clusterizer::resultType cbm::algo::tof::Clusterizer::operator() | ( | const std::vector< std::pair< CbmTofDigi, int32_t > > & | digisIn | ) |
Build clusters out of ToF Digis and store the resulting info in a TofHit.
Definition at line 19 of file tof/Clusterizer.cxx.
References buildClusters(), and chanSortDigis().
|
private |
Parameter container.
Definition at line 47 of file tof/Clusterizer.h.
Referenced by AddNextChan(), buildClusters(), and chanSortDigis().