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

#include <DDIRCPmtHit_factory.h>

+ Inheritance diagram for DDIRCPmtHit_factory:

Public Types

enum  dirc_status_state { GOOD, BAD, NOISY }
 

Public Member Functions

 DDIRCPmtHit_factory ()
 
 ~DDIRCPmtHit_factory ()
 

Public Attributes

vector< dirc_digi_constants_ttime_offsets
 
vector< dirc_digi_constants_schannel_status
 

Static Public Attributes

static const int DIRC_MAX_CHANNELS = 6912
 

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...
 

Private Attributes

double t_base [2]
 
bool applyTimeOffset
 
bool applyTimewalk
 

Detailed Description

Definition at line 21 of file DDIRCPmtHit_factory.h.

Member Enumeration Documentation

Enumerator
GOOD 
BAD 
NOISY 

Definition at line 28 of file DDIRCPmtHit_factory.h.

Constructor & Destructor Documentation

DDIRCPmtHit_factory::DDIRCPmtHit_factory ( )
inline

Definition at line 23 of file DDIRCPmtHit_factory.h.

DDIRCPmtHit_factory::~DDIRCPmtHit_factory ( )
inline

Definition at line 24 of file DDIRCPmtHit_factory.h.

Member Function Documentation

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

Called everytime a new run number is detected.

Definition at line 34 of file DDIRCPmtHit_factory.cc.

References t_base.

jerror_t DDIRCPmtHit_factory::erun ( void  )
private

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

Definition at line 173 of file DDIRCPmtHit_factory.cc.

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

Called every event.

Generate DDIRCPmtHit object for each DDIRCDigiHit 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 76 of file DDIRCPmtHit_factory.cc.

References DDIRCPmtHit::ch, DDIRCTDCDigiHit::channel, DDIRCTDCDigiHit::edge, DDIRCPmtHit::t, t_base, DDIRCTDCDigiHit::time, and DDIRCPmtHit::tot.

jerror_t DDIRCPmtHit_factory::fini ( void  )
private

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

Definition at line 181 of file DDIRCPmtHit_factory.cc.

jerror_t DDIRCPmtHit_factory::init ( void  )
private

Called once at program start.2.

Definition at line 19 of file DDIRCPmtHit_factory.cc.

Member Data Documentation

bool DDIRCPmtHit_factory::applyTimeOffset
private

Definition at line 46 of file DDIRCPmtHit_factory.h.

bool DDIRCPmtHit_factory::applyTimewalk
private

Definition at line 46 of file DDIRCPmtHit_factory.h.

vector<dirc_digi_constants_s> DDIRCPmtHit_factory::channel_status

Definition at line 36 of file DDIRCPmtHit_factory.h.

const int DDIRCPmtHit_factory::DIRC_MAX_CHANNELS = 6912
static

Definition at line 26 of file DDIRCPmtHit_factory.h.

double DDIRCPmtHit_factory::t_base[2]
private

Definition at line 45 of file DDIRCPmtHit_factory.h.

vector<dirc_digi_constants_t> DDIRCPmtHit_factory::time_offsets

Definition at line 35 of file DDIRCPmtHit_factory.h.


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