Belle II Software development
|
Finds ASICs with single signal hit, records info to the library. More...
#include <AsicBackgroundLibraryCreator.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 | |
AsicBackgroundLibraryCreator ()=default | |
Default constructor. | |
void | initialize () final |
Access database here, open library for writing: | |
void | beginRun () final |
Reload channel map if needed. | |
std::string | getDescription () final |
Short description of the findlet. | |
void | exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) final |
Expose the parameters to a module. | |
void | apply (const std::vector< CDCWireHit > &wireHits, const std::vector< CDCTrack > &tracks) final |
Main algorithm marking hit as background. | |
void | terminate () final |
write out the library | |
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. | |
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< const CDCWireHit, const CDCTrack > |
Type of the base class. | |
Private Member Functions | |
void | selectAsic (const std::vector< const CDCWireHit * > &wireHits, const std::vector< CDCTrack > &tracks) |
Algorithm to select suitable ASIC for library creation. | |
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 | |
std::string | m_library_name {"CDCAsicLibrary.root"} |
output library name | |
size_t | m_minimal_hit_number {1} |
min. number of hits in ASIC for background check | |
double | m_distance_signal_max {0.25} |
maximal distance from track to signal hit | |
double | m_distance_background_min {0.5} |
minimal distance from track to background hit | |
bool | m_use_axial_hits_only {false} |
use axial layers only | |
bool | m_write_extra_vars {false} |
extra vars to the library | |
size_t | m_minimal_hits_on_track {40} |
min. number of hits on the track | |
std::unique_ptr< Recorder > | m_recorder |
Recorder for the root output. | |
asicChannel | m_asic_info [8] |
all 8 channels | |
UChar_t | m_board {0} |
signal boardID | |
UChar_t | m_channel {0} |
signal channelID | |
UChar_t | m_n_hit {0} |
For debugging, store also number of channels with hits. | |
float | m_dist_signal {0} |
Distance to signal hit. | |
float | m_dist_bg {0} |
min. distance to non-linked hits | |
Short_t | m_adc_sig {0} |
ADC of the signal. | |
Short_t | m_adc_max_bg {0} |
Max. ADC background. | |
UShort_t | m_n_hit_track {0} |
Number of hits on the track. | |
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. | |
Finds ASICs with single signal hit, records info to the library.
Definition at line 29 of file AsicBackgroundLibraryCreator.h.
|
inherited |
|
inherited |
|
private |
Type of the base class.
Definition at line 32 of file AsicBackgroundLibraryCreator.h.
|
protectedinherited |
|
protectedinherited |
Register a processing signal listener to be notified.
Definition at line 55 of file CompositeProcessingSignalListener.cc.
|
final |
Main algorithm marking hit as background.
Definition at line 110 of file AsicBackgroundLibraryCreator.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 90 of file AsicBackgroundLibraryCreator.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< const CDCWireHit, const CDCTrack >.
Definition at line 129 of file AsicBackgroundLibraryCreator.cc.
|
finalvirtual |
Short description of the findlet.
Reimplemented from Findlet< const CDCWireHit, const CDCTrack >.
Definition at line 105 of file AsicBackgroundLibraryCreator.cc.
|
protectedinherited |
Get the number of currently registered listeners.
Definition at line 60 of file CompositeProcessingSignalListener.cc.
|
finalvirtual |
Access database here, open library for writing:
Reimplemented from ProcessingSignalListener.
Definition at line 56 of file AsicBackgroundLibraryCreator.cc.
|
private |
Algorithm to select suitable ASIC for library creation.
This is abnormal situation, detected for few runs, related to CDC unpacker. Hits are to be marked as background.
Definition at line 178 of file AsicBackgroundLibraryCreator.cc.
|
finalvirtual |
write out the library
Reimplemented from ProcessingSignalListener.
Definition at line 172 of file AsicBackgroundLibraryCreator.cc.
|
private |
Max. ADC background.
Definition at line 118 of file AsicBackgroundLibraryCreator.h.
|
private |
ADC of the signal.
Definition at line 115 of file AsicBackgroundLibraryCreator.h.
|
private |
all 8 channels
Definition at line 95 of file AsicBackgroundLibraryCreator.h.
|
private |
signal boardID
Definition at line 98 of file AsicBackgroundLibraryCreator.h.
|
private |
signal channelID
Definition at line 101 of file AsicBackgroundLibraryCreator.h.
|
private |
Channel map retrieved from DB.
Definition at line 62 of file AsicBackgroundLibraryCreator.h.
|
private |
min. distance to non-linked hits
Definition at line 112 of file AsicBackgroundLibraryCreator.h.
|
private |
Distance to signal hit.
Definition at line 109 of file AsicBackgroundLibraryCreator.h.
|
private |
minimal distance from track to background hit
Definition at line 77 of file AsicBackgroundLibraryCreator.h.
|
private |
maximal distance from track to signal hit
Definition at line 74 of file AsicBackgroundLibraryCreator.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 |
output library name
Definition at line 68 of file AsicBackgroundLibraryCreator.h.
|
private |
map from ewire to board/channel ID
Definition at line 65 of file AsicBackgroundLibraryCreator.h.
|
private |
min. number of hits in ASIC for background check
Definition at line 71 of file AsicBackgroundLibraryCreator.h.
|
private |
min. number of hits on the track
Definition at line 87 of file AsicBackgroundLibraryCreator.h.
|
private |
For debugging, store also number of channels with hits.
Definition at line 104 of file AsicBackgroundLibraryCreator.h.
|
private |
Number of hits on the track.
Definition at line 121 of file AsicBackgroundLibraryCreator.h.
|
private |
Recorder for the root output.
Definition at line 90 of file AsicBackgroundLibraryCreator.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.
|
private |
use axial layers only
Definition at line 80 of file AsicBackgroundLibraryCreator.h.
|
private |
extra vars to the library
Definition at line 83 of file AsicBackgroundLibraryCreator.h.