Hall-D Software
alpha
|
#include <DFDCHit_factory.h>
Public Member Functions | |
DFDCHit_factory () | |
~DFDCHit_factory () | |
const double | GetConstant (const fdc_digi_constants_t &the_table, const int in_gPlane, const int in_element) const |
const double | GetConstant (const fdc_digi_constants_t &the_table, const DFDCCathodeDigiHit *the_digihit) const |
const double | GetConstant (const fdc_digi_constants_t &the_table, const DFDCWireDigiHit *the_digihit) const |
const double | GetConstant (const fdc_digi_constants_t &the_table, const DFDCHit *the_hit) const |
Public Attributes | |
double | a_scale |
double | t_scale |
double | t_base |
double | fadc_t_base |
fdc_digi_constants_t | a_gains |
fdc_digi_constants_t | a_pedestals |
fdc_digi_constants_t | timing_offsets |
Private Member Functions | |
jerror_t | init (void) |
Called once at program start. More... | |
jerror_t | brun (jana::JEventLoop *eventLoop, int32_t runnumber) |
Called everytime a new run number is detected. More... | |
jerror_t | evnt (jana::JEventLoop *eventLoop, uint64_t eventnumber) |
Called every event. More... | |
jerror_t | erun (void) |
Called everytime run number changes, provided brun has been called. More... | |
jerror_t | fini (void) |
Called after last event of last event source has been processed. More... | |
void | LoadPackageCalibTables (jana::JEventLoop *eventLoop, string ccdb_prefix) |
Definition at line 24 of file DFDCHit_factory.h.
|
inline |
Definition at line 26 of file DFDCHit_factory.h.
|
inline |
Definition at line 27 of file DFDCHit_factory.h.
|
private |
Called everytime a new run number is detected.
Definition at line 41 of file DFDCHit_factory.cc.
References a_pedestals, FDC_NUM_PLANES, sprintf(), str, t_base, and t_scale.
|
private |
Called everytime run number changes, provided brun has been called.
Definition at line 355 of file DFDCHit_factory.cc.
|
private |
Called every event.
Generate DFDCHit object for each DFDCCathodeDigiHit and each DFDCWireDigiHit object. This is where the first set of calibration constants is applied to convert from digitzed units into natural units.
Note that this code does NOT get called for simulated data in HDDM format. The HDDM event source will copy the precalibrated values directly into the _data vector.
Definition at line 124 of file DFDCHit_factory.cc.
References _DBG_, Df125Config::ABIT, DFDCHit::AnodeWire, DFDCWireDigiHit::chamber, DFDCCathodeDigiHit::chamber, DTTabUtilities::Convert_DigiTimeToNs_F1TDC(), DFDCHit::d, DFDCHit::element, FDC_NUM_PLANES, DFDCGeometry::getWireR(), DFDCHit::gLayer, DFDCHit::gPlane, Df125Config::IE, DFDCHit::itrack, DFDCHit::layer, layer, DFDCHit::module, Df125Config::NW, DFDCWireDigiHit::package, DFDCCathodeDigiHit::package, Df125Config::PBIT, DFDCCathodeDigiHit::pedestal, Df125PulsePedestal::pedestal, DFDCHit::plane, DFDCHit::ptype, DFDCHit::pulse_height, DFDCHit::pulse_height_raw, Df125PulsePedestal::pulse_number, Df125PulsePedestal::pulse_peak, DFDCCathodeDigiHit::pulse_time, DFDCHit::q, DFDCHit::r, sprintf(), str, DFDCCathodeDigiHit::strip, DFDCCathodeDigiHit::strip_type, STRIPS_PER_PLANE, DFDCHit::t, t_base, t_scale, DFDCHit::type, DFDCCathodeDigiHit::view, DFDCWireDigiHit::wire, and WIRES_PER_PLANE.
|
private |
Called after last event of last event source has been processed.
Definition at line 363 of file DFDCHit_factory.cc.
const double DFDCHit_factory::GetConstant | ( | const fdc_digi_constants_t & | the_table, |
const int | in_gPlane, | ||
const int | in_element | ||
) | const |
Definition at line 450 of file DFDCHit_factory.cc.
References FDC_NUM_PLANES, size, sprintf(), and str.
const double DFDCHit_factory::GetConstant | ( | const fdc_digi_constants_t & | the_table, |
const DFDCCathodeDigiHit * | the_digihit | ||
) | const |
Definition at line 470 of file DFDCHit_factory.cc.
References DFDCCathodeDigiHit::chamber, FDC_NUM_PLANES, DFDCCathodeDigiHit::package, sprintf(), str, DFDCCathodeDigiHit::strip, STRIPS_PER_PLANE, and DFDCCathodeDigiHit::view.
const double DFDCHit_factory::GetConstant | ( | const fdc_digi_constants_t & | the_table, |
const DFDCWireDigiHit * | the_digihit | ||
) | const |
Definition at line 493 of file DFDCHit_factory.cc.
References DFDCWireDigiHit::chamber, FDC_NUM_PLANES, DFDCWireDigiHit::package, sprintf(), str, DFDCWireDigiHit::wire, and WIRES_PER_PLANE.
const double DFDCHit_factory::GetConstant | ( | const fdc_digi_constants_t & | the_table, |
const DFDCHit * | the_hit | ||
) | const |
Definition at line 516 of file DFDCHit_factory.cc.
References DFDCHit::element, FDC_NUM_PLANES, DFDCHit::gPlane, sprintf(), and str.
|
private |
Called once at program start.
set the base conversion scales
Definition at line 27 of file DFDCHit_factory.cc.
|
private |
Definition at line 372 of file DFDCHit_factory.cc.
References a_pedestals, size, sprintf(), str, STRIPS_PER_PLANE, and WIRES_PER_PLANE.
fdc_digi_constants_t DFDCHit_factory::a_gains |
Definition at line 36 of file DFDCHit_factory.h.
fdc_digi_constants_t DFDCHit_factory::a_pedestals |
Definition at line 37 of file DFDCHit_factory.h.
double DFDCHit_factory::a_scale |
Definition at line 27 of file DFDCHit_factory.h.
double DFDCHit_factory::fadc_t_base |
Definition at line 33 of file DFDCHit_factory.h.
double DFDCHit_factory::t_base |
Definition at line 32 of file DFDCHit_factory.h.
double DFDCHit_factory::t_scale |
Definition at line 31 of file DFDCHit_factory.h.
fdc_digi_constants_t DFDCHit_factory::timing_offsets |
Definition at line 38 of file DFDCHit_factory.h.