Class CRTMatch

Class Documentation

class CRTMatch

Perform track matching to CRT tracks and CRT hits.

Class that runs both CRTTrackMatch and CRTHitMatch.

Public Functions

CRTMatch()
virtual ~CRTMatch()
void process(larcv::IOManager &iolcv, larlite::storage_manager &ioll)

Process data for one event.

iomanager inputs:

  • adc images (typicall ‘wire’)

larlite inputs:

  • opflash: typically ‘simpleflashbeam’ and ‘simpleflashcosmic’
  • crttrack: typically ‘crttrack’
  • crthit: typically ‘crthit’
  • larflowcluster (typically) pcacluster
  • pcaxis for larflow cluster: typically ‘pcacluster’

larlite output: correlated among the following

  • crttrack: records crt info, including crttrack matches AND crthit. For crt hit, only first hit information listed.
  • larflowcluster: list of larflow3dhits that relate space point to image coordinates
  • opflash: matching opflash to crt track (empty flash with totpe=0.0 if no flash matched)

larcv output:

  • image2d: with matched CRT pixels masked out

Parameters
  • iocv: larcv::IOManager from which data will be retrieved and output to
  • ioll: larlite::storage_manager from which data will be retrieved and output to

void store_output(larcv::IOManager &outlcv, larlite::storage_manager &outll, bool remove_if_no_flash = true)

Copy output in algo containers to larcv and larlite IO managers.

larlite output: correlated among the following

  • crttrack: records crt info, including crttrack matches AND crthit. For crt hit, only first hit information listed.
  • larflowcluster: list of larflow3dhits that relate space point to image coordinates
  • opflash: matching opflash to crt track (empty flash with totpe=0.0 if no flash matched)

larcv output:

  • image2d: with matched CRT pixels masked out

Parameters
  • outlcv: Output larcv::IOManager
  • outll: Output larlite::storage_manager
  • remove_if_no_flash: If true, for both CRT hit and CRT track matcher, TPC track to CRT object matches are skipped when no optical flash could be associated to the pair.

Public Members

CRTTrackMatch _track_matcher

Algo for CRT-track to wire image ionization matching.

CRTHitMatch _hit_matcher

Algo for CRT-hit to spacepoint cluster matching.

std::vector<larcv::Image2D> untagged_v

image where matched pixels are removed

std::vector<larcv::Image2D> track_index_v

image where crt track index labels image, so we can match larflow clusters to it

std::vector<larlite::larflowcluster> _unmatched_clusters_v

clusters not matched to crthit or crttracks