JeffersonLab / halld_recon

Reconstruction for the GlueX Detector
7 stars 9 forks source link

FDC emulation triggered by MWPC raw mode data #643

Closed nsjarvis closed 2 years ago

nsjarvis commented 2 years ago

When Df125windowrawdata for rocid > 30 is present, without an FDC pulse, the software generates an emulated FDC pulse.

https://github.com/JeffersonLab/halld_recon/blob/2c9a71a53e6ca9285be0d0d7e8a7afc9bd19e57c/src/libraries/DAQ/JEventSource_EVIO.cc#L2183

aaust commented 2 years ago

@faustus123 suggested to use the translation table to avoid the hard-wired numbers:

vector<const DTranslationTable *> ttab;
loop->Get(ttab);
if( ! ttab.empty() ){
 auto rocid_by_system = ttab[0]->Get_ROCID_By_System();
 if( rocid_by_system[ DTranslationTable::CDC ].count( rocid ) != 0 ){
  // This rocid belongs to the CDC
 }
}
sdobbs commented 2 years ago

Is there a data file I can use to test this?

aaust commented 2 years ago

Elton was using this:

/work/halld/home/elton/monitoring/hd_rawdata_100077_000.evio
nsjarvis commented 2 years ago

Looks good now. Thanks.