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

#include <DTPOLHit_factory.h>

+ Inheritance diagram for DTPOLHit_factory:

Public Member Functions

 DTPOLHit_factory ()
 
 ~DTPOLHit_factory ()
 
int GetSector (int slot, int channel)
 
double GetPhi (int sector)
 
double GetPulseTime (const vector< uint16_t > waveform, double w_min, double w_max, double minpeakheight)
 
DTPOLHitFindMatch (int sector, double T)
 
const double GetConstant (const vector< double > &the_table, const int in_sector) const
 
const double GetConstant (const vector< double > &the_table, const DTPOLHit *the_hit) const
 

Public Attributes

double a_scale
 
double t_scale
 
double t_base
 
vector< double > a_gains
 
vector< double > a_pedestals
 
vector< double > adc_time_offsets
 
double HIT_TIME_WINDOW
 
double ADC_THRESHOLD
 

Static Public Attributes

static const int NSECTORS = 32
 
static const int NRINGS = 24
 
static const double SECTOR_DIVISION = 360. / DTPOLHit_factory::NSECTORS
 
static const double INNER_RADIUS = 22. / 2
 
static const double OUTER_RADIUS = 70. / 2
 
static const double RING_DIVISION = (OUTER_RADIUS - INNER_RADIUS ) / DTPOLHit_factory::NRINGS
 

Private Member Functions

jerror_t init (void)
 
jerror_t brun (jana::JEventLoop *eventLoop, int32_t runnumber)
 
jerror_t evnt (jana::JEventLoop *eventLoop, uint64_t eventnumber)
 
jerror_t erun (void)
 
jerror_t fini (void)
 

Detailed Description

Definition at line 9 of file DTPOLHit_factory.h.

Constructor & Destructor Documentation

DTPOLHit_factory::DTPOLHit_factory ( )
inline

Definition at line 11 of file DTPOLHit_factory.h.

DTPOLHit_factory::~DTPOLHit_factory ( )
inline

Definition at line 12 of file DTPOLHit_factory.h.

Member Function Documentation

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

Read in calibration constants

Definition at line 51 of file DTPOLHit_factory.cc.

jerror_t DTPOLHit_factory::erun ( void  )
private

Definition at line 240 of file DTPOLHit_factory.cc.

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

Generate DTPOLHit object for each DTPOLSectorDigiHit and DTPOLRingDigiHit 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 99 of file DTPOLHit_factory.cc.

References DDAQAddress::channel, DTPOLHit::dE, DL1Trigger::fp_trig_mask, DTPOLHit::integral, DTPOLHit::phi, DTPOLHit::pulse_peak, DTPOLHit::ring, DDAQAddress::rocid, Df250WindowRawData::samples, DTPOLHit::sector, DDAQAddress::slot, DTPOLHit::t, t_scale, DTPOLHit::theta, and DL1Trigger::trig_mask.

DTPOLHit* DTPOLHit_factory::FindMatch ( int  sector,
double  T 
)
jerror_t DTPOLHit_factory::fini ( void  )
private

Definition at line 248 of file DTPOLHit_factory.cc.

const double DTPOLHit_factory::GetConstant ( const vector< double > &  the_table,
const int  in_sector 
) const

Definition at line 298 of file DTPOLHit_factory.cc.

References NSECTORS, sprintf(), and str.

const double DTPOLHit_factory::GetConstant ( const vector< double > &  the_table,
const DTPOLHit the_hit 
) const

Definition at line 311 of file DTPOLHit_factory.cc.

References NSECTORS, DTPOLHit::sector, sprintf(), and str.

double DTPOLHit_factory::GetPhi ( int  sector)

Definition at line 267 of file DTPOLHit_factory.cc.

References SECTOR_DIVISION.

double DTPOLHit_factory::GetPulseTime ( const vector< uint16_t >  waveform,
double  w_min,
double  w_max,
double  minpeakheight 
)

Definition at line 274 of file DTPOLHit_factory.cc.

int DTPOLHit_factory::GetSector ( int  slot,
int  channel 
)

Definition at line 253 of file DTPOLHit_factory.cc.

References NSECTORS.

jerror_t DTPOLHit_factory::init ( void  )
private

set the base conversion scales

Definition at line 35 of file DTPOLHit_factory.cc.

References t_scale.

Member Data Documentation

vector<double> DTPOLHit_factory::a_gains

Definition at line 32 of file DTPOLHit_factory.h.

vector<double> DTPOLHit_factory::a_pedestals

Definition at line 33 of file DTPOLHit_factory.h.

double DTPOLHit_factory::a_scale

Definition at line 27 of file DTPOLHit_factory.h.

double DTPOLHit_factory::ADC_THRESHOLD

Definition at line 37 of file DTPOLHit_factory.h.

vector<double> DTPOLHit_factory::adc_time_offsets

Definition at line 34 of file DTPOLHit_factory.h.

double DTPOLHit_factory::HIT_TIME_WINDOW

Definition at line 36 of file DTPOLHit_factory.h.

const double DTPOLHit_factory::INNER_RADIUS = 22. / 2
static

Definition at line 19 of file DTPOLHit_factory.h.

const int DTPOLHit_factory::NRINGS = 24
static

Definition at line 16 of file DTPOLHit_factory.h.

const int DTPOLHit_factory::NSECTORS = 32
static

Definition at line 15 of file DTPOLHit_factory.h.

Referenced by GetConstant(), and JEventProcessor_occupancy_online::init().

const double DTPOLHit_factory::OUTER_RADIUS = 70. / 2
static

Definition at line 20 of file DTPOLHit_factory.h.

const double DTPOLHit_factory::RING_DIVISION = (OUTER_RADIUS - INNER_RADIUS ) / DTPOLHit_factory::NRINGS
static

Definition at line 21 of file DTPOLHit_factory.h.

const double DTPOLHit_factory::SECTOR_DIVISION = 360. / DTPOLHit_factory::NSECTORS
static

Definition at line 18 of file DTPOLHit_factory.h.

double DTPOLHit_factory::t_base

Definition at line 29 of file DTPOLHit_factory.h.

double DTPOLHit_factory::t_scale

Definition at line 28 of file DTPOLHit_factory.h.


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