23 xpu::push_timer(
"HitMultTrigger");
28 auto [triggers, moniData] =
fAlgo(hitTimes);
29 result.first = std::move(triggers);
30 result.second = std::move(moniData);
31 result.second.time = xpu::pop_timer();
33 L_(info) <<
"HitMultTrigger: hits " << hitTimes.size() <<
", triggers " << result.first.size();
43 std::vector<double> result;
49 L_(error) <<
"HitMultTrigger::GetHitTimes: Unknown system " << system;
62 std::stringstream out;
@ kTrd
Transition Radiation Detector.
@ kTof
Time-of-flight Detector.
@ kSts
Silicon Tracking System.
Data class for a reconstructed hit in the STS.
Class for hits in TRD detector.
ECbmModuleId Detector() const
Trigger detector.
std::string ToString() const
Info to string.
std::pair< std::vector< double >, TimeClusterTriggerMonitorData > Result
std::vector< double > GetTimeStamps(const gsl::span< const T > data) const
Get vector of time stamps from a data container [template].
DigiTriggerConfig fConfig
Configuration.
TimeClusterTrigger fAlgo
Algorithm.
std::vector< double > GetHitTimes(const RecoResults &recoData, ECbmModuleId system) const
Extract the hit time stamps for the selected trigger detector.
Result operator()(const RecoResults &recoData) const
Execution.
std::string ToString() const
Info to string.
PartitionedVector< trd::Hit > trdHits
PartitionedVector< tof::Hit > tofHits
PartitionedSpan< sts::Hit > stsHits