#include <LATcomponentIterator.h>
Inheritance diagram for LATcomponentIterator:
Public Member Functions | |
LATcomponentIterator (EBFevent *) | |
Constructor initializing the iterator with an EBFevent. | |
LATcomponentIterator () | |
Do nothing constructor. | |
unsigned | iterate (EBFevent *event) |
Class for iterating over a EBF event contributions Iterate over the EBF contributions in an event. | |
virtual int | handleError (EBFcontribution *contribution, unsigned code, unsigned p1=0, unsigned p2=0) const |
Handle all errors possible in LATcomponentIterator. | |
virtual int | handleError (EBFevent *event, unsigned code, unsigned p1=0, unsigned p2=0) const |
Handle all errors possible in LATcomponentIterator. | |
int | OSW (EBFevent *event, EBFcontribution *contribution) |
Method to call back the application with an OSWcontribution. | |
int | GLT (EBFevent *event, EBFcontribution *contribution) |
Method to call back the application with an GLTcontribution. | |
int | GEM (EBFevent *event, EBFcontribution *contribution) |
Method to call back the application with an GEMcontribution. | |
int | AEM (EBFevent *event, EBFcontribution *contribution) |
Method to call back the application with an AEMcontribution. | |
int | TEM (EBFevent *event, EBFcontribution *contribution) |
Method that iterates over TEMcontributions, calling the application back. | |
int | UDF (EBFevent *event, EBFcontribution *contribution) |
Method to call back the application with an EBFcontribution when the contribution is unrecognized. | |
int | CAL (EBFevent *event, TEMcontribution *contribution) |
Method to call back the application with an CALcontribution. | |
int | TKR (EBFevent *event, TEMcontribution *contribution) |
Method to call back the application with an TKRcontribution. | |
virtual int | UDFcomponent (EBFevent *event, EBFcontribution *contribution) |
Default method called when the application doesn't supply a method to handle undefined EBFcontributions. | |
virtual int | OSWcomponent (EBFevent *event, OSWcontribution *contribution) |
Default method called when the application doesn't supply a method to handle OSWcontributions. | |
virtual int | GLTcomponent (EBFevent *event, GLTcontribution *contribution) |
Default method called when the application doesn't supply a method to handle GLTcontributions. | |
virtual int | GEMcomponent (EBFevent *event, GEMcontribution *contribution) |
Default method called when the application doesn't supply a method to handle GEMcontributions. | |
virtual int | ACDcomponent (EBFevent *event, AEMcontribution *contribution) |
Default method called when the application doesn't supply a method to handle AEMcontributions. | |
virtual int | CALcomponent (EBFevent *event, CALcontribution *contribution) |
Default method called when the application doesn't supply a method to handle CALcontributions. | |
virtual int | TKRcomponent (EBFevent *event, TKRcontribution *contribution) |
Default method called when the application doesn't supply a method to handle TKRcontributions. | |
virtual int | diagnostic (EBFevent *event, TEMcontribution *contribution) |
Default method called when the application doesn't supply a method to handle diagnostic contributions. | |
virtual int | error (EBFevent *event, TEMcontribution *contribution) |
Default method called when the application doesn't supply a method to handle error contributions. | |
virtual int | cleanup (EBFevent *event, TEMcontribution *contribution) |
Default method called when the application doesn't supply a "cleanup" method. |
The idea behind this class was to make one iterator that runs over all components of the event, calling all the subiterators necessary to parse the event in the finest detail. The user of this class only had to provide the virtual methods for those leaf iterators in which his application is interested. Those in which he is not intersted are defaulted to no-op methods to make this a concrete class.
Another consideration is that it appears that having the CPU cross the C++/Python boundary is an expensive operation, so in order to minimize the impact of this, as much as possible was done on the C++ side.
The conflict is that each time additional iterators are created the class interface changes, causing backward compatibility problems. For the moment (March 10, 2004), this class is set up to only do the first layers of iteration, leaving iteration down to the leaf items up to the application.
Copyright: Copyright 2004 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved.
|
Constructor initializing the iterator with an EBFevent.
|
|
Default method called when the application doesn't supply a method to handle AEMcontributions.
|
|
Method to call back the application with an AEMcontribution. With this example class, this method is called by the EBFcontributionIterator. It should not be called from the application that instantiates this class.
Implements EBFcontributionIterator. |
|
Method to call back the application with an CALcontribution. With this example class, this method is called by the TEMcontributionIterator. It should not be called from the application that instantiates this class.
Implements TEMcontributionIterator. |
|
Default method called when the application doesn't supply a method to handle CALcontributions.
|
|
Default method called when the application doesn't supply a "cleanup" method. The "cleanup" method is used to do additional checking on data following the last contribution in the event. In some examples, it is used to verify that the event is padded out to a LATp cell boundary with zeros.
Implements TEMcontributionIterator. |
|
Default method called when the application doesn't supply a method to handle diagnostic contributions.
Implements TEMcontributionIterator. |
|
Default method called when the application doesn't supply a method to handle error contributions.
Implements TEMcontributionIterator. |
|
Method to call back the application with an GEMcontribution. With this example class, this method is called by the EBFcontributionIterator. It should not be called from the application that instantiates this class.
Implements EBFcontributionIterator. |
|
Default method called when the application doesn't supply a method to handle GEMcontributions.
|
|
Method to call back the application with an GLTcontribution. With this example class, this method is called by the EBFcontributionIterator. It should not be called from the application that instantiates this class.
Implements EBFcontributionIterator. |
|
Default method called when the application doesn't supply a method to handle GLTcontributions.
|
|
Handle all errors possible in LATcomponentIterator. This method is used to handle errors occurring during the iteration over an LATcomponent. By default it does nothing, however it is virtual and is able to be overridden by the user.
Reimplemented from EBFcontributionIterator. |
|
Handle all errors possible in LATcomponentIterator. This method is used to handle errors occurring during the iteration over an LATcomponent. By default it does nothing, however it is virtual and is able to be overridden by the user.
|
|
Class for iterating over a EBF event contributions Iterate over the EBF contributions in an event. This method calls back a virtual contribution handlers for each contribution it finds. Which handler is called back is determined by the contribution source ID and the _map method. Contribution handlers take the event and the contribution as arguments.
Reimplemented from EBFcontributionIterator. |
|
Method to call back the application with an OSWcontribution. With this example class, this method is called by the EBFcontributionIterator. It should not be called from the application that instantiates this class.
Implements EBFcontributionIterator. |
|
Default method called when the application doesn't supply a method to handle OSWcontributions.
|
|
Method that iterates over TEMcontributions, calling the application back. With this example class, this method is called by the EBFcontributionIterator. It should not be called from the application that instantiates this class.
Implements EBFcontributionIterator. |
|
Method to call back the application with an TKRcontribution. With this example class, this method is called by the TEMcontributionIterator. It should not be called from the application that instantiates this class.
Implements TEMcontributionIterator. |
|
Default method called when the application doesn't supply a method to handle TKRcontributions.
|
|
Method to call back the application with an EBFcontribution when the contribution is unrecognized. With this example class, this method is called by the EBFcontributionIterator. It should not be called from the application that instantiates this class.
Implements EBFcontributionIterator. |
|
Default method called when the application doesn't supply a method to handle undefined EBFcontributions.
|