Belle II Software development
|
Findlet to extract the T0 time of an event only using CDC Hits. More...
#include <HitBasedT0Extractor.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 | |
HitBasedT0Extractor ()=default | |
Constructor registering the subordinary findlets to the processing signal distribution machinery. | |
virtual | ~HitBasedT0Extractor ()=default |
Make destructor of interface virtual. | |
std::string | getDescription () override final |
Short description of the findlet. | |
void | exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) override final |
Expose the parameters to a module. | |
void | apply (std::vector< TrackFindingCDC::CDCWireHit > &inputWireHits) override final |
Collects all Wire Hits and executes the t0 fit. | |
void | initialize () override final |
Initialize the event meta data. | |
bool | wasSuccessful () const |
Returns true if the last run t0 extraction was successful. | |
virtual void | beginEvent () override |
Create the event t0 store obj ptr. | |
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< TrackFindingCDC::CDCWireHit & > |
Type of the base class. | |
Private Attributes | |
unsigned int | m_param_minHitCount = 20 |
minimum number of hits | |
float | m_param_searchWindow = 70.0f |
the window (+-m_param_searchWindow) in ns where to search for the best t0 | |
float | m_param_fitWindow = 100.0f |
the space (+-m_param_fitWindow) in ns used to fit the t0 | |
int | m_param_binCountTimeHistogram = 50 |
number of bins in the timing histogram | |
bool | m_param_rejectByBackgroundFlag = false |
don't use hits for the fit which have been flagged as background | |
bool | m_param_rejectIfNotTakenFlag = true |
don't use hits for the fit which have not been assigned to any track | |
bool | m_param_storeAllFits = false |
store an image of the histogram and fit result, for debug purpose only | |
float | m_param_rejectIfChiSquareLargerThan = std::numeric_limits<float>::max() |
largest allowable chi2 value | |
float | m_param_rejectIfUncertaintyLargerThan = 12.0f |
largest allowable uncertainty value | |
float | m_param_refitWindow = 50.0f |
the width of the window in ns (+- m_param_refitWindow) used to refit the final t0 value | |
StoreObjPtr< EventMetaData > | m_eventMetaData |
access to event nr for debugging purposes | |
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. | |
Findlet to extract the T0 time of an event only using CDC Hits.
Definition at line 27 of file HitBasedT0Extractor.h.
|
inherited |
|
inherited |
|
private |
Type of the base class.
Definition at line 31 of file HitBasedT0Extractor.h.
|
protectedinherited |
|
protectedinherited |
Register a processing signal listener to be notified.
Definition at line 55 of file CompositeProcessingSignalListener.cc.
|
finaloverride |
Collects all Wire Hits and executes the t0 fit.
Definition at line 98 of file HitBasedT0Extractor.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.
|
finaloverridevirtual |
Expose the parameters to a module.
Reimplemented from BaseEventTimeExtractor< TrackFindingCDC::CDCWireHit & >.
Definition at line 41 of file HitBasedT0Extractor.cc.
|
finaloverridevirtual |
Short description of the findlet.
Reimplemented from Findlet< AIOTypes... >.
Definition at line 30 of file HitBasedT0Extractor.cc.
|
protectedinherited |
Get the number of currently registered listeners.
Definition at line 60 of file CompositeProcessingSignalListener.cc.
|
finaloverridevirtual |
Initialize the event meta data.
Reimplemented from BaseEventTimeExtractor< TrackFindingCDC::CDCWireHit & >.
Definition at line 35 of file HitBasedT0Extractor.cc.
|
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.
|
private |
access to event nr for debugging purposes
Definition at line 75 of file HitBasedT0Extractor.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.
|
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 |
number of bins in the timing histogram
Definition at line 60 of file HitBasedT0Extractor.h.
|
private |
the space (+-m_param_fitWindow) in ns used to fit the t0
Definition at line 58 of file HitBasedT0Extractor.h.
|
private |
minimum number of hits
Definition at line 54 of file HitBasedT0Extractor.h.
|
privateinherited |
Parameter if it is fine to overwrite the current EventT0.
Definition at line 53 of file BaseEventTimeExtractor.dcl.h.
|
private |
the width of the window in ns (+- m_param_refitWindow) used to refit the final t0 value
Definition at line 73 of file HitBasedT0Extractor.h.
|
private |
don't use hits for the fit which have been flagged as background
Definition at line 62 of file HitBasedT0Extractor.h.
|
private |
largest allowable chi2 value
Definition at line 69 of file HitBasedT0Extractor.h.
|
private |
don't use hits for the fit which have not been assigned to any track
Definition at line 64 of file HitBasedT0Extractor.h.
|
private |
largest allowable uncertainty value
Definition at line 71 of file HitBasedT0Extractor.h.
|
private |
the window (+-m_param_searchWindow) in ns where to search for the best t0
Definition at line 56 of file HitBasedT0Extractor.h.
|
private |
store an image of the histogram and fit result, for debug purpose only
Definition at line 66 of file HitBasedT0Extractor.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.