12#include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13#include <framework/database/DBArray.h>
14#include <cdc/dbobjects/CDCChannelMap.h>
15#include <tracking/trackFindingCDC/mva/Recorder.h>
16#include <cdc/dbobjects/CDCCrossTalkClasses.h>
24 namespace TrackFindingCDC {
Database object of CDC channel map.
Class for accessing arrays of objects in the database.
The Module parameter list class.
Finds ASICs with single signal hit, records info to the library.
double m_distance_signal_max
maximal distance from track to signal hit
Short_t m_adc_sig
ADC of the signal.
std::unique_ptr< DBArray< CDCChannelMap > > m_channelMapFromDB
Channel map retrieved from DB.
asicChannel m_asic_info[8]
all 8 channels
UShort_t m_n_hit_track
Number of hits on the track.
AsicBackgroundLibraryCreator()=default
Default constructor.
void initialize() final
Access database here, open library for writing:
void beginRun() final
Reload channel map if needed.
bool m_use_axial_hits_only
use axial layers only
size_t m_minimal_hits_on_track
min. number of hits on the track
float m_dist_bg
min. distance to non-linked hits
UChar_t m_board
signal boardID
float m_dist_signal
Distance to signal hit.
std::string m_library_name
output library name
std::map< int, std::pair< int, int > > m_map
map from ewire to board/channel ID
std::string getDescription() final
Short description of the findlet.
void selectAsic(const std::vector< const CDCWireHit * > &wireHits, const std::vector< CDCTrack > &tracks)
Algorithm to select suitable ASIC for library creation.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
UChar_t m_n_hit
For debugging, store also number of channels with hits.
UChar_t m_channel
signal channelID
bool m_write_extra_vars
extra vars to the library
std::unique_ptr< Recorder > m_recorder
Recorder for the root output.
double m_distance_background_min
minimal distance from track to background hit
size_t m_minimal_hit_number
min. number of hits in ASIC for background check
Short_t m_adc_max_bg
Max. ADC background.
void terminate() final
write out the library
void apply(const std::vector< CDCWireHit > &wireHits, const std::vector< CDCTrack > &tracks) final
Main algorithm marking hit as background.
Class representing a sequence of three dimensional reconstructed hits.
Class representing a hit wire in the central drift chamber.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Abstract base class for different kinds of events.
record to be used to store ASIC info