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

#include <DCCALHit_factory.h>

+ Inheritance diagram for DCCALHit_factory:

Public Member Functions

 DCCALHit_factory ()
 
 ~DCCALHit_factory ()
 

Public Attributes

ccal_constants_t gains
 
ccal_constants_t pedestals
 
ccal_constants_t time_offsets
 
ccal_constants_t adc_offsets
 
double adc_en_scale
 
double adc_time_scale
 
double base_time
 

Private Member Functions

jerror_t init (void)
 Called once at program start.2. 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 LoadCCALConst (ccal_constants_t &table, const vector< double > &ccal_const_ch, const DCCALGeometry &ccalGeom)
 

Private Attributes

unsigned int DB_PEDESTAL
 
unsigned int HIT_DEBUG
 

Detailed Description

Definition at line 22 of file DCCALHit_factory.h.

Constructor & Destructor Documentation

DCCALHit_factory::DCCALHit_factory ( )

Definition at line 26 of file DCCALHit_factory.cc.

DCCALHit_factory::~DCCALHit_factory ( )
inline

Definition at line 25 of file DCCALHit_factory.h.

Member Function Documentation

jerror_t DCCALHit_factory::brun ( jana::JEventLoop *  eventLoop,
int32_t  runnumber 
)
private

Called everytime a new run number is detected.

Definition at line 72 of file DCCALHit_factory.cc.

jerror_t DCCALHit_factory::erun ( void  )
private

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

Definition at line 296 of file DCCALHit_factory.cc.

jerror_t DCCALHit_factory::evnt ( jana::JEventLoop *  eventLoop,
uint64_t  eventnumber 
)
private

Called every event.

Generate DCCALHit object for each DCCALDigiHit 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 200 of file DCCALHit_factory.cc.

References DCCALDigiHit::column, DCCALHit::column, DCCALHit::E, DCCALHit::intOverPeak, DCCALDigiHit::nsamples_integral, DCCALDigiHit::nsamples_pedestal, DCCALDigiHit::pedestal, pedestal, DCCALGeometry::positionOnFace(), DCCALDigiHit::pulse_integral, DCCALDigiHit::pulse_peak, DCCALDigiHit::pulse_time, DCCALDigiHit::row, DCCALHit::row, DCCALHit::t, DCCALHit::x, and DCCALHit::y.

jerror_t DCCALHit_factory::fini ( void  )
private

Called after last event of last event source has been processed.

Definition at line 304 of file DCCALHit_factory.cc.

jerror_t DCCALHit_factory::init ( void  )
private

Called once at program start.2.

Definition at line 41 of file DCCALHit_factory.cc.

References DCCALGeometry::kCCALBlocksTall, and DCCALGeometry::kCCALBlocksWide.

void DCCALHit_factory::LoadCCALConst ( ccal_constants_t table,
const vector< double > &  ccal_const_ch,
const DCCALGeometry ccalGeom 
)
private

Member Data Documentation

double DCCALHit_factory::adc_en_scale

Definition at line 32 of file DCCALHit_factory.h.

ccal_constants_t DCCALHit_factory::adc_offsets

Definition at line 30 of file DCCALHit_factory.h.

double DCCALHit_factory::adc_time_scale

Definition at line 33 of file DCCALHit_factory.h.

double DCCALHit_factory::base_time

Definition at line 35 of file DCCALHit_factory.h.

unsigned int DCCALHit_factory::DB_PEDESTAL
private

Definition at line 49 of file DCCALHit_factory.h.

ccal_constants_t DCCALHit_factory::gains

Definition at line 25 of file DCCALHit_factory.h.

unsigned int DCCALHit_factory::HIT_DEBUG
private

Definition at line 50 of file DCCALHit_factory.h.

ccal_constants_t DCCALHit_factory::pedestals

Definition at line 28 of file DCCALHit_factory.h.

ccal_constants_t DCCALHit_factory::time_offsets

Definition at line 29 of file DCCALHit_factory.h.


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