DDASToys for NSCLDAQ  6.2-000
Public Member Functions | List of all members
ddastoys::DDASFitHit Class Reference

Encapsulates data for DDAS hits that may have fitted traces. More...

#include <DDASFitHit.h>

Inheritance diagram for ddastoys::DDASFitHit:
Inheritance graph
[legend]
Collaboration diagram for ddastoys::DDASFitHit:
Collaboration graph
[legend]

Public Member Functions

 DDASFitHit ()
 Constructor.
 
virtual ~DDASFitHit ()
 Destructor.
 
DDASFitHitoperator= (const DDASFitHit &rhs)
 Assignment operator. More...
 
void Reset ()
 Reset the hit information.
 
void setExtension (const HitExtension &extension)
 Set the hit extension information for this hit. More...
 
bool hasExtension () const
 Check whether hit has a fit extension. More...
 
const HitExtensiongetExtension () const
 Get the extension data from the current hit. More...
 

Detailed Description

Encapsulates data for DDAS hits that may have fitted traces.

These objects are produced by DDASFitHitUnpacker::decode(). They are basically just ddasfmt::DDASHits with some extra fields.

Member Function Documentation

◆ getExtension()

const HitExtension& ddastoys::DDASFitHit::getExtension ( ) const
inline

Get the extension data from the current hit.

Exceptions
std::logic_errorIf the hit does not contain an extension.
Returns
Reference to the extension of the current hit.

◆ hasExtension()

bool ddastoys::DDASFitHit::hasExtension ( ) const
inline

Check whether hit has a fit extension.

Returns
True if the hit contains an extension, false otherwise.

◆ operator=()

DDASFitHit& ddastoys::DDASFitHit::operator= ( const DDASFitHit rhs)
inline

Assignment operator.

Parameters
rhsReference to DDASFitHit for assignment.
Returns
Reference to lhs.

Calls base class operator= and sets the hit extension (if present).

◆ setExtension()

void ddastoys::DDASFitHit::setExtension ( const HitExtension extension)
inline

Set the hit extension information for this hit.

Parameters
extensionReference to the extension for this hit.

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