Skip to content
Snippets Groups Projects
Commit f4864ed2 authored by Christopher Rob Jones's avatar Christopher Rob Jones
Browse files

RichDecodedData: Add constructor from SmartIDs

parent afeec2e0
No related branches found
No related tags found
1 merge request!4251Add support for RICH 4D reconstruction
Pipeline #6070342 passed
......@@ -118,9 +118,7 @@ namespace Rich::Future::MC {
for ( const auto id : ids ) { ri_debug( id, endmsg ); }
// create, fill, and return decoded data structure
OutData data;
data.addSmartIDs( ids );
return data;
return OutData( ids );
}
private:
......
......@@ -114,6 +114,9 @@ namespace Rich::Future::DAQ {
}
}
/// Constructor from SmartIDs
DecodedData( const LHCb::RichSmartID::Vector& ids ) : DecodedData() { addSmartIDs( ids ); }
public:
/// Returns the total number of hits in the decoded data for the given RICH detector
[[nodiscard]] auto nTotalHits( const Rich::DetectorType rich ) const noexcept { return m_nTotalHits[rich]; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment