Belle II Software development
|
Marks hits as background based on the result of a filter. More...
#include <AsicBackgroundDetector.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 | |
AsicBackgroundDetector ()=default | |
Default constructor. | |
void | initialize () final |
Access database here: | |
void | beginRun () final |
Reload channel map if needed. | |
std::string | getDescription () final |
Short description of the findlet. | |
virtual void | exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) final |
Expose the parameters to a module. | |
virtual void | apply (std::vector< CDCWireHit > &wireHits) final |
Main algorithm marking hit as background. | |
virtual void | apply (ToVector< AIOTypes > &... ioVectors)=0 |
Main function executing the algorithm. | |
void | beginEvent () override |
Receive and dispatch signal for the start of a new event. | |
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 | addProcessingSignalListener (ProcessingSignalListener *psl) |
Register a processing signal listener to be notified. | |
int | getNProcessingSignalListener () |
Get the number of currently registered listeners. | |
Private Types | |
using | Super = Findlet< CDCWireHit & > |
Type of the base class. | |
Private Member Functions | |
void | applyAsicFilter (std::vector< CDCWireHit * > &wireHits) |
Algorithm marking hit as background for each CDC ASIC. | |
Private Attributes | |
std::unique_ptr< DBArray< CDCChannelMap > > | m_channelMapFromDB |
Channel map retrieved from DB. | |
std::map< int, std::pair< int, int > > | m_map |
map from ewire to board/channel ID | |
size_t | m_minimal_hit_number {4} |
min. number of hits in ASIC for background check | |
double | m_deviation_from_median {10.} |
distance from median TDC, to be considered as bg. | |
size_t | m_nsignal_max {4} |
max. number of signal-like hits in ASIC for background check | |
size_t | m_max_asic_error_messages {1} |
max. number of logged error messages for number of hits per ASIC check | |
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. | |
Marks hits as background based on the result of a filter.
Definition at line 26 of file AsicBackgroundDetector.h.
|
inherited |
|
inherited |
|
private |
Type of the base class.
Definition at line 29 of file AsicBackgroundDetector.h.
|
protectedinherited |
|
protectedinherited |
Register a processing signal listener to be notified.
Definition at line 55 of file CompositeProcessingSignalListener.cc.
|
finalvirtual |
Main algorithm marking hit as background.
Definition at line 57 of file AsicBackgroundDetector.cc.
|
private |
Algorithm marking hit as background for each CDC ASIC.
Extra information:
This is abnormal situation, detected for few runs, related to CDC unpacker. Hits are to be marked as background.
Definition at line 93 of file AsicBackgroundDetector.cc.
|
overridevirtualinherited |
Receive and dispatch signal for the start of a new event.
Reimplemented from ProcessingSignalListener.
Reimplemented in SpacePointTagger< Belle2::CKFToPXDResult, Belle2::PXDCluster >, SpacePointTagger< Belle2::CKFToSVDResult, Belle2::SVDCluster >, BaseEventTimeExtractor< RecoTrack * >, BaseEventTimeExtractor< TrackFindingCDC::CDCWireHit & >, SharingHitsMatcher< Belle2::TrackFindingCDC::CDCTrack, Belle2::TrackFindingCDC::CDCSegment2D >, MCSymmetric< BaseAxialSegmentPairFilter >, MCSymmetric< BaseFacetFilter >, MCSymmetric< BaseFacetRelationFilter >, MCSymmetric< BaseSegmentPairFilter >, MCSymmetric< BaseSegmentPairRelationFilter >, MCSymmetric< BaseSegmentRelationFilter >, MCSymmetric< BaseSegmentTripleFilter >, MCSymmetric< BaseSegmentTripleRelationFilter >, MCSymmetric< BaseTrackRelationFilter >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCFacet >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCWireHit, true >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCSegment2D >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCTrack >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCSegmentPair >, StoreVectorSwapper< Belle2::TrackFindingCDC::CDCSegmentTriple >, RecoTrackStorer, ROIFinder, and SVDHoughTracking.
Definition at line 31 of file CompositeProcessingSignalListener.cc.
|
finalvirtual |
Reload channel map if needed.
Reimplemented from ProcessingSignalListener.
Definition at line 36 of file AsicBackgroundDetector.cc.
|
overridevirtualinherited |
Receive and dispatch signal for the end of the run.
Reimplemented from ProcessingSignalListener.
Definition at line 39 of file CompositeProcessingSignalListener.cc.
|
finalvirtual |
Expose the parameters to a module.
Reimplemented from Findlet< CDCWireHit & >.
Definition at line 76 of file AsicBackgroundDetector.cc.
|
finalvirtual |
Short description of the findlet.
Reimplemented from Findlet< CDCWireHit & >.
Definition at line 52 of file AsicBackgroundDetector.cc.
|
protectedinherited |
Get the number of currently registered listeners.
Definition at line 60 of file CompositeProcessingSignalListener.cc.
|
finalvirtual |
Access database here:
Reimplemented from ProcessingSignalListener.
Definition at line 23 of file AsicBackgroundDetector.cc.
|
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.
|
private |
Channel map retrieved from DB.
Definition at line 57 of file AsicBackgroundDetector.h.
|
private |
distance from median TDC, to be considered as bg.
Definition at line 66 of file AsicBackgroundDetector.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 |
map from ewire to board/channel ID
Definition at line 60 of file AsicBackgroundDetector.h.
|
private |
max. number of logged error messages for number of hits per ASIC check
Definition at line 72 of file AsicBackgroundDetector.h.
|
private |
min. number of hits in ASIC for background check
Definition at line 63 of file AsicBackgroundDetector.h.
|
private |
max. number of signal-like hits in ASIC for background check
Definition at line 69 of file AsicBackgroundDetector.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.