58 for (
Int_t nt=0;nt<4;nt++) {
90 for(
Int_t i=0;i<4;i++){
126 char EngineDID[] =
"xRASTER";
132 static const char*
const here =
"Init()";
133 Error(
Here(here),
"Error filling detectormap for %s.", EngineDID);
243 cout <<
" THcRaster is using EPICS bpm for beam position" << endl;
249 cout <<
" THcRaster is using parameters for beam position" <<
" x = " <<
fgbeam_xoff<<
" y = " <<
fgbeam_yoff<< endl;
250 cout <<
" THcRaster is using parameters for beam angle position" <<
" xp = " <<
fgbeam_xpoff<<
" yp = " <<
fgbeam_ypoff<< endl;
273 {
"frxaRawAdc",
"Raster XA raw ADC",
"FRXA_rawadc"},
274 {
"fryaRawAdc",
"Raster YA raw ADC",
"FRYA_rawadc"},
275 {
"frxbRawAdc",
"Raster XB raw ADC",
"FRXB_rawadc"},
276 {
"frybRawAdc",
"Raster YB raw ADC",
"FRYB_rawadc"},
277 {
"frxa_adc",
"Raster XA ADC",
"fXA_ADC"},
278 {
"frya_adc",
"Raster YA ADC",
"fYA_ADC"},
279 {
"frxb_adc",
"Raster XB ADC",
"fXB_ADC"},
280 {
"fryb_adc",
"Raster YB ADC",
"fYB_ADC"},
281 {
"fr_xa",
"Raster XA position",
"fXA_pos"},
282 {
"fr_ya",
"Raster YA position",
"fYA_pos"},
283 {
"fr_xb",
"Raster XB position",
"fXB_pos"},
284 {
"fr_yb",
"Raster YB position",
"fYB_pos"},
285 {
"fr_xbpm_tar",
"X BPM at target (+X is beam right)",
"fXbpm_tar"},
286 {
"fr_ybpm_tar",
"Y BPM at target (+Y is up)",
"fYbpm_tar"},
287 {
"fr_xbpmA",
"X BPM at BPMA (+X is beam right)",
"fXbpm_A"},
288 {
"fr_ybpmA",
"Y BPM at BPMA (+Y is up)",
"fYbpm_A"},
289 {
"fr_xbpmB",
"X BPM at BPMB (+X is beam right)",
"fXbpm_B"},
290 {
"fr_ybpmB",
"Y BPM at BPMB (+Y is up)",
"fYbpm_B"},
291 {
"fr_xbpmC",
"X BPM at BPMC (+X is beam right)",
"fXbpm_C"},
292 {
"fr_ybpmC",
"Y BPM at BPMC (+Y is up)",
"fYbpm_C"},
293 {
"ebeam_epics",
"Beam energy of epics variable HALLC:p",
"fEbeamEpics"},
338 while(ihit < nrawhits) {
354 if (nraster ==0)
fPedADC[0] = pulseIntRaw;
355 if (nraster ==1)
fPedADC[1] = pulseIntRaw;
356 if (nraster ==2)
fPedADC[2] = pulseIntRaw;
357 if (nraster ==3)
fPedADC[3] = pulseIntRaw;
Option_t Option_t TPoint TPoint const char mode
R__EXTERN class THaCutList * gHaCuts
ClassImp(VDC::AnalyticTTDConv) using namespace std
R__EXTERN class THcParmList * gHcParms
R__EXTERN class THcDetectorMap * gHcDetectorMap
void Clear(Option_t *option="") override
TObject * ConstructedAt(Int_t idx)
static Int_t DefineVarsFromList(const void *list, EType type, EMode mode, const char *def_prefix, const TObject *obj, const char *prefix, const char *here, const char *comment_subst="")
virtual const char * Here(const char *) const
static THaAnalyzer * GetInstance()
THaEpicsEvtHandler * GetEpicsEvtHandler() const
virtual Int_t Result(const char *cutname="", EWarnMode mode=kWarn)
UInt_t GetTotNumChan() const
THaApparatus * GetApparatus() const
TString GetString(const char *tag, UInt_t event=0) const
Bool_t IsLoaded(const char *tag) const
virtual Int_t FillMap(THaDetMap *detmap, const char *detectorname)
virtual Int_t DecodeToHitList(const THaEvData &evdata, Bool_t suppress=kFALSE)
Populate the hitlist from the raw event data.
TClonesArray * fRawHitList
void InitHitList(THaDetMap *detmap, const char *hitclass, Int_t maxhits, Int_t tdcref_cut=0, Int_t adcref_cut=0)
Save the electronics module to detector mapping and initialize a hit array of hits of class hitclass.
Int_t LoadParmValues(const DBRequest *list, const char *prefix="")
Retrieve parameter values from the parameter cache.
Class representing a single raw hit for the raster.
Detector class for fast raster.
Double_t fFrYB_ADC_zero_offset
Double_t fFrXB_ADC_zero_offset
Double_t fEbeamEpics_prev
Double_t fFrYA_ADC_zero_offset
THaEpicsEvtHandler * fEpicsHandler
Int_t Decode(const THaEvData &)
void AccumulatePedestals(TClonesArray *rawhits)
TClonesArray * frPosAdcPulseIntRaw
void Clear(Option_t *opt="")
Int_t ReadDatabase(const TDatime &date)
Double_t fEbeamEpics_read
Double_t fFrXA_ADC_zero_offset
void CalculatePedestals()
Bool_t fFlag_use_EPICS_bpm
Int_t DefineVariables(EMode mode)
Class representing a single raw ADC hit.
UInt_t GetNPulses() const
Gets number of set pulses.
UInt_t GetNSamples() const
Gets number of set samples.
Int_t GetPulseIntRaw(UInt_t iPulse=0) const
Gets raw pulse integral. In channels.
Int_t GetF250_NSA() const
Int_t GetIntegral(UInt_t iSampleLow, UInt_t iSampleHigh) const
Gets integral of raw samples. In channels.
THcRawAdcHit & GetRawAdcHitPos()
const char * GetName() const override
Int_t GetEntries() const override
TObject * At(Int_t idx) const override
Int_t GetLast() const override
virtual void Error(const char *method, const char *msgfmt,...) const
void SetXYZ(Double_t x, Double_t y, Double_t z)
Double_t Sqrt(Double_t x)