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

#include <Df125EmulatorAlgorithm_v2.h>

+ Inheritance diagram for Df125EmulatorAlgorithm_v2:

Public Member Functions

 Df125EmulatorAlgorithm_v2 ()
 
 ~Df125EmulatorAlgorithm_v2 ()
 
void EmulateFirmware (const Df125WindowRawData *, Df125CDCPulse *, Df125FDCPulse *)
 
void fa125_hit (Int_t &, Int_t &, Int_t &, const uint16_t[], Int_t, Int_t, Int_t, Int_t, Int_t, Int_t)
 
void fa125_time (Int_t &, Int_t &, Int_t[], Int_t, Int_t, Int_t, Int_t)
 
void fa125_integral (Long_t &, Int_t &, Int_t, const uint16_t[], Int_t, Int_t)
 
void fa125_max (Int_t &, Int_t &, Int_t, const uint16_t[], Int_t)
 
void fa125_algos (Int_t &, Int_t &, Int_t &, Long_t &, Int_t &, Int_t &, Int_t &, const uint16_t[], Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t)
 
 JOBJECT_PUBLIC (Df125EmulatorAlgorithm)
 

Protected Member Functions

void upsamplei (Int_t[], Int_t, Int_t[], Int_t)
 

Private Attributes

int FORCE_DEFAULT_CDC
 
int FORCE_DEFAULT_FDC
 
Int_t CDC_WS_DEF
 
Int_t CDC_WE_DEF
 
Int_t CDC_IE_DEF
 
Int_t CDC_P1_DEF
 
Int_t CDC_P2_DEF
 
Int_t CDC_PG_DEF
 
Int_t CDC_H_DEF
 
Int_t CDC_TH_DEF
 
Int_t CDC_TL_DEF
 
Int_t CDC_IBIT_DEF
 
Int_t CDC_ABIT_DEF
 
Int_t CDC_PBIT_DEF
 
Int_t FDC_WS_DEF
 
Int_t FDC_WE_DEF
 
Int_t FDC_IE_DEF
 
Int_t FDC_P1_DEF
 
Int_t FDC_P2_DEF
 
Int_t FDC_PG_DEF
 
Int_t FDC_H_DEF
 
Int_t FDC_TH_DEF
 
Int_t FDC_TL_DEF
 
Int_t FDC_IBIT_DEF
 
Int_t FDC_ABIT_DEF
 
Int_t FDC_PBIT_DEF
 
Int_t CDC_WS
 
Int_t CDC_WE
 
Int_t CDC_IE
 
Int_t CDC_P1
 
Int_t CDC_P2
 
Int_t CDC_PG
 
Int_t CDC_H
 
Int_t CDC_TH
 
Int_t CDC_TL
 
Int_t CDC_IBIT
 
Int_t CDC_ABIT
 
Int_t CDC_PBIT
 
Int_t FDC_WS
 
Int_t FDC_WE
 
Int_t FDC_IE
 
Int_t FDC_P1
 
Int_t FDC_P2
 
Int_t FDC_PG
 
Int_t FDC_H
 
Int_t FDC_TH
 
Int_t FDC_TL
 
Int_t FDC_IBIT
 
Int_t FDC_ABIT
 
Int_t FDC_PBIT
 
int VERBOSE
 

Detailed Description

Definition at line 11 of file Df125EmulatorAlgorithm_v2.h.

Constructor & Destructor Documentation

Df125EmulatorAlgorithm_v2::~Df125EmulatorAlgorithm_v2 ( )
inline

Definition at line 15 of file Df125EmulatorAlgorithm_v2.h.

Member Function Documentation

void Df125EmulatorAlgorithm_v2::EmulateFirmware ( const Df125WindowRawData rawData,
Df125CDCPulse cdcPulse,
Df125FDCPulse fdcPulse 
)
virtual

Implements Df125EmulatorAlgorithm.

Definition at line 153 of file Df125EmulatorAlgorithm_v2.cc.

References CDC_ABIT, CDC_ABIT_DEF, CDC_H, CDC_H_DEF, CDC_IBIT, CDC_IBIT_DEF, CDC_IE, CDC_IE_DEF, CDC_P1, CDC_P1_DEF, CDC_P2, CDC_P2_DEF, CDC_PBIT, CDC_PBIT_DEF, CDC_PG, CDC_PG_DEF, CDC_TH, CDC_TH_DEF, CDC_TL, CDC_TL_DEF, CDC_WE, CDC_WE_DEF, CDC_WS, CDC_WS_DEF, DDAQAddress::channel, Df125CDCPulse::emulated, Df125FDCPulse::emulated, fa125_algos(), FA125_FE_IE_INTEGRATION_END_MASK, FA125_FE_IE_PEDESTAL_GAP_MASK, FA125_FE_PED_SF_ABIT_MASK, FA125_FE_PED_SF_IBIT_MASK, FA125_FE_PED_SF_P1_MASK, FA125_FE_PED_SF_P2_MASK, FA125_FE_PED_SF_PBIT_MASK, FA125_FE_THRESHOLD_MASK, FA125_FE_TIMING_THRES_HI_MASK, FA125_FE_TIMING_THRES_LO_MASK, FDC_ABIT, FDC_ABIT_DEF, FDC_H, FDC_H_DEF, FDC_IBIT, FDC_IBIT_DEF, FDC_IE, FDC_IE_DEF, FDC_P1, FDC_P1_DEF, FDC_P2, FDC_P2_DEF, FDC_PBIT, FDC_PBIT_DEF, FDC_PG, FDC_PG_DEF, FDC_TH, FDC_TH_DEF, FDC_TL, FDC_TL_DEF, FDC_WE, FDC_WE_DEF, FDC_WS, FDC_WS_DEF, f125config::fe, Df125CDCPulse::first_max_amp, Df125CDCPulse::first_max_amp_emulated, FORCE_DEFAULT_CDC, FORCE_DEFAULT_FDC, H, f125config_fe::ie, Df125CDCPulse::integral, Df125FDCPulse::integral, Df125CDCPulse::integral_emulated, Df125FDCPulse::integral_emulated, Df125CDCPulse::le_time, Df125FDCPulse::le_time, Df125CDCPulse::le_time_emulated, Df125FDCPulse::le_time_emulated, f125config_fe::nw, Df125CDCPulse::overflow_count, Df125FDCPulse::overflow_count, Df125CDCPulse::overflow_count_emulated, Df125FDCPulse::overflow_count_emulated, Df125FDCPulse::peak_amp, Df125FDCPulse::peak_amp_emulated, Df125FDCPulse::peak_time, Df125FDCPulse::peak_time_emulated, f125config_fe::ped_sf, pedestal, Df125CDCPulse::pedestal, Df125FDCPulse::pedestal, Df125CDCPulse::pedestal_emulated, Df125FDCPulse::pedestal_emulated, DDAQAddress::rocid, Df125WindowRawData::samples, DDAQAddress::slot, f125config_fe::threshold, Df125CDCPulse::time_quality_bit, Df125FDCPulse::time_quality_bit, Df125CDCPulse::time_quality_bit_emulated, Df125FDCPulse::time_quality_bit_emulated, f125config_fe::timing_thres_hi, f125config_fe::timing_thres_lo, and VERBOSE.

void Df125EmulatorAlgorithm_v2::fa125_algos ( Int_t &  time,
Int_t &  q_code,
Int_t &  pedestal,
Long_t &  integral,
Int_t &  overflows,
Int_t &  maxamp,
Int_t &  pktime,
const uint16_t  adc[],
Int_t  WINDOW_START,
Int_t  WINDOW_END,
Int_t  INT_END,
Int_t  P1,
Int_t  P2,
Int_t  PG,
Int_t  HIT_THRES,
Int_t  HIGH_THRESHOLD,
Int_t  LOW_THRESHOLD 
)

Definition at line 357 of file Df125EmulatorAlgorithm_v2.cc.

References fa125_hit(), fa125_integral(), fa125_max(), and fa125_time().

Referenced by EmulateFirmware().

void Df125EmulatorAlgorithm_v2::fa125_hit ( Int_t &  hitfound,
Int_t &  hitsample,
Int_t &  pedestal,
const uint16_t  adc[],
Int_t  WINDOW_START,
Int_t  WINDOW_END,
Int_t  HIT_THRES,
Int_t  P1,
Int_t  P2,
Int_t  PG 
)

Definition at line 399 of file Df125EmulatorAlgorithm_v2.cc.

Referenced by fa125_algos().

void Df125EmulatorAlgorithm_v2::fa125_integral ( Long_t &  integral,
Int_t &  overflows,
Int_t  timesample,
const uint16_t  adc[],
Int_t  WINDOW_END,
Int_t  INT_END 
)

Definition at line 444 of file Df125EmulatorAlgorithm_v2.cc.

Referenced by fa125_algos().

void Df125EmulatorAlgorithm_v2::fa125_max ( Int_t &  maxamp,
Int_t &  maxsample,
Int_t  hitsample,
const uint16_t  adc[],
Int_t  WINDOW_END 
)

Definition at line 468 of file Df125EmulatorAlgorithm_v2.cc.

Referenced by fa125_algos().

void Df125EmulatorAlgorithm_v2::fa125_time ( Int_t &  le_time,
Int_t &  q_code,
Int_t  adc[],
Int_t  NU,
Int_t  PG,
Int_t  THRES_HIGH,
Int_t  THRES_LOW 
)

Definition at line 499 of file Df125EmulatorAlgorithm_v2.cc.

References printf(), upsamplei(), and X.

Referenced by fa125_algos().

Df125EmulatorAlgorithm::JOBJECT_PUBLIC ( Df125EmulatorAlgorithm  )
inherited
void Df125EmulatorAlgorithm_v2::upsamplei ( Int_t  x[],
Int_t  startpos,
Int_t  z[],
Int_t  NUPSAMPLED 
)
protected

Definition at line 709 of file Df125EmulatorAlgorithm_v2.cc.

Referenced by fa125_time().

Member Data Documentation

Int_t Df125EmulatorAlgorithm_v2::CDC_ABIT
private

Definition at line 79 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_ABIT_DEF
private

Definition at line 50 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_H
private

Definition at line 75 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_H_DEF
private

Definition at line 46 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_IBIT
private

Definition at line 78 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_IBIT_DEF
private

Definition at line 49 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_IE
private

Definition at line 71 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_IE_DEF
private

Definition at line 42 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_P1
private

Definition at line 72 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_P1_DEF
private

Definition at line 43 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_P2
private

Definition at line 73 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_P2_DEF
private

Definition at line 44 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_PBIT
private

Definition at line 80 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_PBIT_DEF
private

Definition at line 51 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_PG
private

Definition at line 74 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_PG_DEF
private

Definition at line 45 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_TH
private

Definition at line 76 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_TH_DEF
private

Definition at line 47 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_TL
private

Definition at line 77 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_TL_DEF
private

Definition at line 48 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_WE
private

Definition at line 70 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_WE_DEF
private

Definition at line 41 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_WS
private

Definition at line 69 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::CDC_WS_DEF
private

Definition at line 40 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_ABIT
private

Definition at line 92 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_ABIT_DEF
private

Definition at line 64 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_H
private

Definition at line 88 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_H_DEF
private

Definition at line 60 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_IBIT
private

Definition at line 91 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_IBIT_DEF
private

Definition at line 63 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_IE
private

Definition at line 84 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_IE_DEF
private

Definition at line 56 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_P1
private

Definition at line 85 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_P1_DEF
private

Definition at line 57 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_P2
private

Definition at line 86 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_P2_DEF
private

Definition at line 58 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_PBIT
private

Definition at line 93 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_PBIT_DEF
private

Definition at line 65 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_PG
private

Definition at line 87 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_PG_DEF
private

Definition at line 59 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_TH
private

Definition at line 89 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_TH_DEF
private

Definition at line 61 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_TL
private

Definition at line 90 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_TL_DEF
private

Definition at line 62 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_WE
private

Definition at line 83 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_WE_DEF
private

Definition at line 55 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_WS
private

Definition at line 82 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

Int_t Df125EmulatorAlgorithm_v2::FDC_WS_DEF
private

Definition at line 54 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

int Df125EmulatorAlgorithm_v2::FORCE_DEFAULT_CDC
private

Definition at line 36 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

int Df125EmulatorAlgorithm_v2::FORCE_DEFAULT_FDC
private

Definition at line 37 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().

int Df125EmulatorAlgorithm_v2::VERBOSE
private

Definition at line 96 of file Df125EmulatorAlgorithm_v2.h.

Referenced by Df125EmulatorAlgorithm_v2(), and EmulateFirmware().


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