Belle II Software development
GetWireHit Struct Reference

Generic functor to get the wire hit from an object. More...

#include <CDCWireHit.h>

Public Member Functions

 operator FunctorTag ()
 Marker function for the isFunctor test.
 
template<class T , class SFINAE = decltype(&T::getWireHit)>
const CDCWireHitoperator() (const T &t) const
 Returns the wire hit of an object.
 
const CDCWireHitoperator() (const CDCWireHit &wireHit) const
 If given a wire hit return it unchanged.
 

Detailed Description

Generic functor to get the wire hit from an object.

Definition at line 345 of file CDCWireHit.h.

Member Function Documentation

◆ operator()() [1/2]

const CDCWireHit & operator() ( const CDCWireHit wireHit) const
inline

If given a wire hit return it unchanged.

Definition at line 357 of file CDCWireHit.h.

358 {
359 return wireHit;
360 }

◆ operator()() [2/2]

const CDCWireHit & operator() ( const T &  t) const
inline

Returns the wire hit of an object.

Definition at line 351 of file CDCWireHit.h.

352 {
353 return t.getWireHit();
354 }

The documentation for this struct was generated from the following file: