Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DFDCHit_factory Class Reference

#include <DFDCHit_factory.h>

+ Inheritance diagram for DFDCHit_factory:

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)
 

Detailed Description

Definition at line 24 of file DFDCHit_factory.h.

Constructor & Destructor Documentation

DFDCHit_factory::DFDCHit_factory ( )
inline

Definition at line 26 of file DFDCHit_factory.h.

DFDCHit_factory::~DFDCHit_factory ( )
inline

Definition at line 27 of file DFDCHit_factory.h.

Member Function Documentation

jerror_t DFDCHit_factory::brun ( jana::JEventLoop *  eventLoop,
int32_t  runnumber 
)
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.

jerror_t DFDCHit_factory::erun ( void  )
private

Called everytime run number changes, provided brun has been called.

Definition at line 355 of file DFDCHit_factory.cc.

jerror_t DFDCHit_factory::evnt ( jana::JEventLoop *  eventLoop,
uint64_t  eventnumber 
)
private
jerror_t DFDCHit_factory::fini ( void  )
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
const double DFDCHit_factory::GetConstant ( const fdc_digi_constants_t the_table,
const DFDCWireDigiHit the_digihit 
) const
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.

jerror_t DFDCHit_factory::init ( void  )
private

Called once at program start.

set the base conversion scales

Definition at line 27 of file DFDCHit_factory.cc.

References t_base, and t_scale.

void DFDCHit_factory::LoadPackageCalibTables ( jana::JEventLoop *  eventLoop,
string  ccdb_prefix 
)
private

Definition at line 372 of file DFDCHit_factory.cc.

References a_pedestals, size, sprintf(), str, STRIPS_PER_PLANE, and WIRES_PER_PLANE.

Member Data Documentation

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.


The documentation for this class was generated from the following files: