#include <ERRcontributionIterator.h>
Collaboration diagram for ERRcontributionIterator:

Public Types | |
| ERR_PastEnd = 1 | |
| enum | { ERR_PastEnd = 1 } |
Public Member Functions | |
| ERRcontributionIterator (EBFevent *event, TEMcontribution *contribution, TWRmap *map) | |
| ERRcontributionIterator constructor initializing the class according to the passed in parameters. | |
| ERRcontributionIterator (EBFevent *event, TEMcontribution *contribution) | |
| ERRcontributionIterator constructor initializing the class according to the passed in parameters. | |
| ERRcontributionIterator () | |
| ERRcontributionIterator constructor initializing the class to an invalid state. | |
| unsigned | iterate () |
| Iterate over error contributions. | |
| unsigned | iterate (EBFevent *event, TEMcontribution *contribution) |
| Iterate over error contributions. | |
| unsigned | iterate (EBFevent *event, TEMcontribution *contribution, TWRmap *map) |
| Iterate over error contributions. | |
| const EBFevent * | event () const |
| const TEMcontribution * | contribution () const |
| const TWRmap * | map () const |
| int | status () const |
| unsigned | size () const |
| void | offset (unsigned o) |
| Set the offset into the TEM contribution where the diagnostic data starts. | |
| const ErrorSummary | theError () |
| virtual int | handleError (TEMcontribution *contribution, unsigned code, unsigned p1=0, unsigned p2=0) const |
| Handle all errors possible in ERRcontributionIterator. | |
| virtual int | gcccError (unsigned tower, unsigned gccc, GCCCerror err) |
| Dispatch function for GCCC errors. | |
| virtual int | gtccError (unsigned tower, unsigned gtcc, GTCCerror err) |
| Dispatch function for GTCC errors. | |
| virtual int | phaseError (unsigned tower, unsigned short err) |
| Dispatch function for cable phase errors. | |
| virtual int | timeoutError (unsigned tower, unsigned short err) |
| Dispatch function for cable timeout errors. | |
| virtual int | gtrcPhaseError (unsigned tower, unsigned gtcc, unsigned gtrc, GTRCerror err) |
| Dispatch function for GTCC "GTRC phase error" errors. | |
| virtual int | gtfePhaseError (unsigned tower, unsigned gtcc, unsigned gtrc, unsigned short err1, unsigned short err2, unsigned short err3, unsigned short err4, unsigned short err5) |
| Dispatch function for GTCC "GTFE phase error" errors. | |
| virtual int | gtccFIFOerror (unsigned tower, unsigned gtcc, unsigned short err) |
| Dispatch function for GTCC "FIFO full error" errors. | |
| virtual int | gtccTMOerror (unsigned tower, unsigned gtcc) |
| Dispatch function for GTCC "cable timeout error" errors. | |
| virtual int | gtccHDRParityError (unsigned tower, unsigned gtcc) |
| Dispatch function for GTCC "header parity error" errors. | |
| virtual int | gtccWCParityError (unsigned tower, unsigned gtcc) |
| Dispatch function for GTCC "word count parity error" errors. | |
| virtual int | gtrcSummaryError (unsigned tower, unsigned gtcc) |
| Dispatch function for GTCC "GTRC summary error" errors. | |
| virtual int | gtccDataParityError (unsigned tower, unsigned gtcc) |
| Dispatch function for GTCC "data parity error" errors. | |
Copyright: Copyright 2004 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved.
| ERRcontributionIterator::ERRcontributionIterator | ( | EBFevent * | event, | |
| TEMcontribution * | contribution, | |||
| TWRmap * | map | |||
| ) | [inline] |
ERRcontributionIterator constructor initializing the class according to the passed in parameters.
| event | - The event containing the error contribution | |
| contribution | - The TEM contribution containing the error contribution | |
| map | - The electronic space to detector space map for a tower |
| ERRcontributionIterator::ERRcontributionIterator | ( | EBFevent * | event, | |
| TEMcontribution * | contribution | |||
| ) | [inline] |
ERRcontributionIterator constructor initializing the class according to the passed in parameters.
| event | - A pointer to the event containing the error contribution | |
| contribution | - A pointer to the TEM contribution containing the error contribution |
| const TEMcontribution * ERRcontributionIterator::contribution | ( | ) | const [inline] |
Return a pointer to the start of this contribution
| const EBFevent * ERRcontributionIterator::event | ( | ) | const [inline] |
Return a pointer to the EBFevent containing this contribution
| int ERRcontributionIterator::gcccError | ( | unsigned | tower, | |
| unsigned | gccc, | |||
| GCCCerror | err | |||
| ) | [inline, virtual] |
Dispatch function for GCCC errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
| tower | The remapped tower number | |
| gccc | The remapped GCCC number (see _GCCC()) | |
| err | The error message |
| int ERRcontributionIterator::gtccDataParityError | ( | unsigned | tower, | |
| unsigned | gtcc | |||
| ) | [inline, virtual] |
Dispatch function for GTCC "data parity error" errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
| tower | The remapped tower number | |
| gtcc | The remapped GTCC number (see _GTCC()) |
| int ERRcontributionIterator::gtccError | ( | unsigned | tower, | |
| unsigned | gtcc, | |||
| GTCCerror | err | |||
| ) | [inline, virtual] |
Dispatch function for GTCC errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
| tower | The remapped tower number | |
| gtcc | The remapped GTCC number (see _GTCC()) | |
| err | The error message |
| int ERRcontributionIterator::gtccFIFOerror | ( | unsigned | tower, | |
| unsigned | gtcc, | |||
| unsigned short | err | |||
| ) | [inline, virtual] |
Dispatch function for GTCC "FIFO full error" errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
| tower | The remapped tower number | |
| gtcc | The remapped GTCC number (see _GTCC()) | |
| err | The projected word count |
| int ERRcontributionIterator::gtccHDRParityError | ( | unsigned | tower, | |
| unsigned | gtcc | |||
| ) | [inline, virtual] |
Dispatch function for GTCC "header parity error" errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
| tower | The remapped tower number | |
| gtcc | The remapped GTCC number (see _GTCC()) |
| int ERRcontributionIterator::gtccTMOerror | ( | unsigned | tower, | |
| unsigned | gtcc | |||
| ) | [inline, virtual] |
Dispatch function for GTCC "cable timeout error" errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
| tower | The remapped tower number | |
| gtcc | The remapped GTCC number (see _GTCC()) |
| int ERRcontributionIterator::gtccWCParityError | ( | unsigned | tower, | |
| unsigned | gtcc | |||
| ) | [inline, virtual] |
Dispatch function for GTCC "word count parity error" errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
| tower | The remapped tower number | |
| gtcc | The remapped GTCC number (see _GTCC()) |
| int ERRcontributionIterator::gtfePhaseError | ( | unsigned | tower, | |
| unsigned | gtcc, | |||
| unsigned | gtrc, | |||
| unsigned short | err1, | |||
| unsigned short | err2, | |||
| unsigned short | err3, | |||
| unsigned short | err4, | |||
| unsigned short | err5 | |||
| ) | [inline, virtual] |
Dispatch function for GTCC "GTFE phase error" errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
Five GTFE tag words for FEphase error. Ugly construction because passing a ushort to Python is hard in SIP. The GTFE tags are supplied in the generated order, i.e. not reversed.
| tower | The remapped tower number | |
| gtcc | The remapped GTCC number (see _GTCC()) | |
| gtrc | The GTRC number | |
| err1 | The first GTFE tag word | |
| err2 | The second GTFE tag word | |
| err3 | The third GTFE tag word | |
| err4 | The fourth GTFE tag word | |
| err5 | The fifth GTFE tag word |
| int ERRcontributionIterator::gtrcPhaseError | ( | unsigned | tower, | |
| unsigned | gtcc, | |||
| unsigned | gtrc, | |||
| GTRCerror | err | |||
| ) | [inline, virtual] |
Dispatch function for GTCC "GTRC phase error" errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
| tower | The remapped tower number | |
| gtcc | The remapped GTCC number (see _GCCC()) | |
| gtrc | The GTRC number | |
| err | A GTRC tag mismatch structure |
| int ERRcontributionIterator::gtrcSummaryError | ( | unsigned | tower, | |
| unsigned | gtcc | |||
| ) | [inline, virtual] |
Dispatch function for GTCC "GTRC summary error" errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
| tower | The remapped tower number | |
| gtcc | The remapped GTCC number (see _GTCC()) |
| int ERRcontributionIterator::handleError | ( | TEMcontribution * | contrib, | |
| unsigned | code, | |||
| unsigned | p1 = 0, |
|||
| unsigned | p2 = 0 | |||
| ) | const [inline, virtual] |
Handle all errors possible in ERRcontributionIterator.
This method is used to handle errors occurring during the iteration over an ERRcontribution. By default it does nothing, however it is virtual and is able to be overridden by the user.
| contrib | The contribution in error | |
| code | The error code | |
| p1 | a parameter associated with the error code | |
| p2 | a parameter associated with the error code |
| unsigned ERRcontributionIterator::iterate | ( | EBFevent * | event, | |
| TEMcontribution * | contribution, | |||
| TWRmap * | map | |||
| ) |
Iterate over error contributions.
| event | A pointer to the EBFevent containing the contribution | |
| contribution | A pointer to the TEMcontribution to iterate over | |
| map | A pointer to a tower map |
| unsigned ERRcontributionIterator::iterate | ( | EBFevent * | event, | |
| TEMcontribution * | contribution | |||
| ) | [inline] |
Iterate over error contributions.
This method iterates over the supplied contribution using the cached map.
| event | A pointer to the EBFevent containing the contribution | |
| contribution | A pointer to the contribution to iterate over |
| unsigned ERRcontributionIterator::iterate | ( | ) | [inline] |
Iterate over error contributions.
This method uses the cached contribution to interate over.
| const TWRmap * ERRcontributionIterator::map | ( | ) | const [inline] |
Return a pointer to the tower map
| int ERRcontributionIterator::phaseError | ( | unsigned | tower, | |
| unsigned short | err | |||
| ) | [inline, virtual] |
Dispatch function for cable phase errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
| tower | The remapped tower number | |
| err | The error message |
| unsigned ERRcontributionIterator::size | ( | ) | const [inline] |
Return the size of the diagnostic contribution
| int ERRcontributionIterator::status | ( | ) | const [inline] |
Return the iteration status code
| const ErrorSummary ERRcontributionIterator::theError | ( | ) | [inline] |
Return the error summary word from the contribution
| int ERRcontributionIterator::timeoutError | ( | unsigned | tower, | |
| unsigned short | err | |||
| ) | [inline, virtual] |
Dispatch function for cable timeout errors.
These may be implemented by the user. These are *not* pure virtual because the user doesn't need to always implement them.
| tower | The remapped tower number | |
| err | The error message |
1.4.7