Belle II Software development
|
Generic findlet applying a certain time extractor multiple times. More...
#include <IterativeEventTimeExtractor.dcl.h>
Public Types | |
using | IOTypes = std::tuple< AIOTypes... > |
Types that should be served to apply on invocation. | |
using | IOVectors = std::tuple< std::vector< AIOTypes >... > |
Vector types that should be served to apply on invocation. | |
Public Member Functions | |
IterativeEventTimeExtractor () | |
Add the subfindlet as listener. | |
void | exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) override |
Expose the parameters. | |
void | apply (std::vector< RecoTrack * > &recoTracks) override final |
Timing extraction for this findlet. | |
bool | wasSuccessful () const |
Returns true if the last run t0 extraction was successful. | |
virtual void | initialize () override |
Initialize the event t0 store obj ptr. | |
virtual void | beginEvent () override |
Create the event t0 store obj ptr. | |
virtual std::string | getDescription () |
Brief description of the purpose of the concrete findlet. | |
virtual void | apply (ToVector< AIOTypes > &... ioVectors)=0 |
Main function executing the algorithm. | |
void | beginRun () override |
Receive and dispatch signal for the beginning of a new run. | |
void | endRun () override |
Receive and dispatch signal for the end of the run. | |
void | terminate () override |
Receive and dispatch Signal for termination of the event processing. | |
Protected Types | |
using | ToVector = typename ToVectorImpl< T >::Type |
Short hand for ToRangeImpl. | |
Protected Member Functions | |
void | resetEventT0 () const |
Reset the t0 value to cached value if it exists or clear it otherwise. | |
void | addProcessingSignalListener (ProcessingSignalListener *psl) |
Register a processing signal listener to be notified. | |
int | getNProcessingSignalListener () |
Get the number of currently registered listeners. | |
Protected Attributes | |
StoreObjPtr< EventT0 > | m_eventT0 |
Pointer to the storage of the eventwise T0 estimation in the data store. | |
bool | m_wasSuccessful |
Variable to show that the execution was successful. | |
Private Types | |
using | Super = BaseEventTimeExtractor< RecoTrack * > |
Type of the base class. | |
Private Attributes | |
unsigned int | m_param_maxIterations = 10 |
Parameter: how many iterations should be done maximally? | |
unsigned int | m_param_minIterations = 1 |
Parameter: how many iterations should be done minimally? | |
double | m_param_minimalDeltaT0 = 0.2 |
Parameter: What is the final precision? | |
bool | m_param_abortOnUnsuccessfulStep = true |
Parameter: abort if a single iteration is not working. | |
bool | m_param_useLastEventT0 = true |
Parameter: use the last event t0 instead of the best one. | |
AFindlet | m_findlet |
The subfindlet. | |
std::vector< EventT0::EventT0Component > | m_eventT0WithQuality |
Pool for the event t0s with chi2. | |
bool | m_param_overwriteExistingEstimation |
Parameter if it is fine to overwrite the current EventT0. | |
std::optional< EventT0::EventT0Component > | m_eventT0Before |
Storage for the event t0 before this module ran. | |
std::vector< ProcessingSignalListener * > | m_subordinaryProcessingSignalListeners |
References to subordinary signal processing listener contained in this findlet. | |
bool | m_initialized = false |
Flag to keep track whether initialization happened before. | |
bool | m_terminated = false |
Flag to keep track whether termination happened before. | |
std::string | m_initializedAs |
Name of the type during initialisation. | |
Generic findlet applying a certain time extractor multiple times.
Will abort if the extraction was not successful (can be controlled by a parameter).
Definition at line 27 of file IterativeEventTimeExtractor.dcl.h.
|
inherited |
|
inherited |
|
private |
Type of the base class.
Definition at line 30 of file IterativeEventTimeExtractor.dcl.h.
|
protectedinherited |
|
protectedinherited |
Register a processing signal listener to be notified.
Definition at line 55 of file CompositeProcessingSignalListener.cc.
|
overridevirtualinherited |
Create the event t0 store obj ptr.
Reimplemented from CompositeProcessingSignalListener.
Definition at line 39 of file BaseEventTimeExtractor.icc.h.
|
overridevirtualinherited |
Receive and dispatch signal for the beginning of a new run.
Reimplemented from ProcessingSignalListener.
Reimplemented in LayerRelationFilter< AFilter >, FourHitFilter, QualityIndicatorFilter, ThreeHitFilter, TwoHitVirtualIPFilter, TwoHitVirtualIPQIFilter, RecoTrackStorer, ROIFinder, SpacePointLoaderAndPreparer, and TrackCandidateResultRefiner.
Definition at line 23 of file CompositeProcessingSignalListener.cc.
|
overridevirtualinherited |
Receive and dispatch signal for the end of the run.
Reimplemented from ProcessingSignalListener.
Definition at line 39 of file CompositeProcessingSignalListener.cc.
|
inlinevirtualinherited |
Brief description of the purpose of the concrete findlet.
Reimplemented in HitBasedT0Extractor.
Definition at line 60 of file Findlet.h.
|
protectedinherited |
Get the number of currently registered listeners.
Definition at line 60 of file CompositeProcessingSignalListener.cc.
|
overridevirtualinherited |
Initialize the event t0 store obj ptr.
Reimplemented from CompositeProcessingSignalListener.
Definition at line 36 of file BaseEventTimeExtractor.icc.h.
|
protectedinherited |
Reset the t0 value to cached value if it exists or clear it otherwise.
Definition at line 43 of file BaseEventTimeExtractor.icc.h.
|
overridevirtualinherited |
Receive and dispatch Signal for termination of the event processing.
Reimplemented from ProcessingSignalListener.
Reimplemented in StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::HyperHough >, StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::QuadraticLegendre >, and StereoHitTrackQuadTreeMatcher< Belle2::TrackFindingCDC::Z0TanLambdaLegendre >.
Definition at line 47 of file CompositeProcessingSignalListener.cc.
|
inherited |
Returns true if the last run t0 extraction was successful.
Definition at line 30 of file BaseEventTimeExtractor.icc.h.
|
protectedinherited |
Pointer to the storage of the eventwise T0 estimation in the data store.
Definition at line 46 of file BaseEventTimeExtractor.dcl.h.
|
privateinherited |
Storage for the event t0 before this module ran.
Definition at line 56 of file BaseEventTimeExtractor.dcl.h.
|
private |
Pool for the event t0s with chi2.
Definition at line 56 of file IterativeEventTimeExtractor.dcl.h.
|
private |
The subfindlet.
Definition at line 54 of file IterativeEventTimeExtractor.dcl.h.
|
privateinherited |
Flag to keep track whether initialization happened before.
Definition at line 52 of file ProcessingSignalListener.h.
|
privateinherited |
Name of the type during initialisation.
Definition at line 58 of file ProcessingSignalListener.h.
|
private |
Parameter: abort if a single iteration is not working.
Definition at line 50 of file IterativeEventTimeExtractor.dcl.h.
|
private |
Parameter: how many iterations should be done maximally?
Definition at line 44 of file IterativeEventTimeExtractor.dcl.h.
|
private |
Parameter: What is the final precision?
Definition at line 48 of file IterativeEventTimeExtractor.dcl.h.
|
private |
Parameter: how many iterations should be done minimally?
Definition at line 46 of file IterativeEventTimeExtractor.dcl.h.
|
privateinherited |
Parameter if it is fine to overwrite the current EventT0.
Definition at line 53 of file BaseEventTimeExtractor.dcl.h.
|
private |
Parameter: use the last event t0 instead of the best one.
Definition at line 52 of file IterativeEventTimeExtractor.dcl.h.
|
privateinherited |
References to subordinary signal processing listener contained in this findlet.
Definition at line 52 of file CompositeProcessingSignalListener.h.
|
privateinherited |
Flag to keep track whether termination happened before.
Definition at line 55 of file ProcessingSignalListener.h.
|
protectedinherited |
Variable to show that the execution was successful.
Definition at line 49 of file BaseEventTimeExtractor.dcl.h.