Skip to content
Snippets Groups Projects

Migrate away from using (3 value) RICH RadiatorArray to (2 value) DetectorArray

Merged Christopher Rob Jones requested to merge RichSupportTwoValueRadArrayInit into master
Compare and
8 files
+ 132
70
Compare changes
  • Side-by-side
  • Inline
Files
8
@@ -39,16 +39,25 @@ namespace Rich {
* @param detector RICH detector enumeration
* @return Detector type as a string
*/
std::string text( const Rich::DetectorType detector );
std::string text( const DetectorType detector );
/// Implement textual ostream << method for Rich::DetectorType enumeration
inline std::ostream& operator<<( std::ostream& s, const Rich::DetectorType& detector ) {
return s << Rich::text( detector );
inline std::ostream& operator<<( std::ostream& os, const DetectorType& detector ) {
return os << Rich::text( detector );
}
/// Print a vector of Detector IDs
inline std::ostream& operator<<( std::ostream& str, const Detectors& dets ) {
return GaudiUtils::details::ostream_joiner( str << '[', dets, ", " ) << ']';
inline std::ostream& operator<<( std::ostream& os, const Detectors& dets ) {
return GaudiUtils::details::ostream_joiner( os << '[', dets, ", " ) << ']';
}
/// Print contents of a DetectorArray templated type
template <typename TYPE>
inline std::ostream& operator<<( std::ostream& os, const DetectorArray<TYPE>& dets ) {
return GaudiUtils::details::ostream_joiner( os << '[', dets, ", " ) << ']';
}
/// Convert RICH enum to Radiator enum
inline auto radType( const DetectorType rich ) { return ( Rich1 == rich ? Rich1Gas : Rich2Gas ); }
} // namespace Rich
Loading