Hall C ROOT/C++ Analyzer (hcana)
THcRaster Class Reference

Detector class for fast raster.

Measures the two magnet currents which are proportional to horizontal and vertical beam position

Author
Buddhini Waidyawansa
Burcu Duran - Melanie Rehfuss (2017)

Definition at line 23 of file THcRaster.h.

Public Member Functions

void AccumulatePedestals (TClonesArray *rawhits)
 
void CalculatePedestals ()
 
void Clear (Option_t *opt="")
 
Int_t Decode (const THaEvData &)
 
Int_t DefineVariables (EMode mode)
 
void DeleteArrays ()
 
Double_t GetCurrentX ()
 
Double_t GetCurrentY ()
 
TVector3 GetDirection () const
 
TVector3 GetPosition () const
 
EStatus Init (const TDatime &run_time)
 
void InitArrays ()
 
Int_t Process ()
 
Int_t ReadDatabase (const TDatime &date)
 
 THcRaster (const char *name, const char *description="", THaApparatus *a=NULL)
 
 THcRaster ()
 
 ~THcRaster ()
 
- Public Member Functions inherited from THcHitList
void CreateMissReportParms (const char *prefix)
 
virtual Int_t DecodeToHitList (const THaEvData &evdata, Bool_t suppress=kFALSE)
 Populate the hitlist from the raw event data. More...
 
void DisableSlipCorrection ()
 
TClonesArrayGetHitList () const
 
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. More...
 
void MissReport (const char *name)
 
 THcHitList ()
 
virtual ~THcHitList ()
 

Protected Attributes

Double_t BPMXA_pos
 
Double_t BPMXA_raw
 
Double_t BPMXB_pos
 
Double_t BPMXB_raw
 
Double_t BPMXC_pos
 
Double_t BPMXC_raw
 
Double_t BPMYA_pos
 
Double_t BPMYA_raw
 
Double_t BPMYB_pos
 
Double_t BPMYB_raw
 
Double_t BPMYC_pos
 
Double_t BPMYC_raw
 
TVector3 fDirection
 
Double_t fEbeamEpics
 
Double_t fEbeamEpics_prev
 
Double_t fEbeamEpics_read
 
THaEpicsEvtHandler * fEpicsHandler
 
Bool_t fFlag_use_EPICS_bpm
 
Double_t fFrXA_ADC_zero_offset
 
Double_t fFrXB_ADC_zero_offset
 
Double_t fFrYA_ADC_zero_offset
 
Double_t fFrYB_ADC_zero_offset
 
Double_t fgbeam_xoff
 
Double_t fgbeam_xpoff
 
Double_t fgbeam_yoff
 
Double_t fgbeam_ypoff
 
Double_t fgbpma_zpos
 
Double_t fgbpmb_zpos
 
Double_t fgbpmc_zpos
 
Double_t fgbpmxa_off
 
Double_t fgbpmxa_slope
 
Double_t fgbpmxb_off
 
Double_t fgbpmxb_slope
 
Double_t fgbpmxc_off
 
Double_t fgbpmxc_slope
 
Double_t fgbpmya_off
 
Double_t fgbpmya_slope
 
Double_t fgbpmyb_off
 
Double_t fgbpmyb_slope
 
Double_t fgbpmyc_off
 
Double_t fgbpmyc_slope
 
Double_t fgfrx_dist
 
Double_t fgfry_dist
 
Double_t fgpbeam
 
Int_t fgusefr
 
Int_t fNhits
 
Double_t fPedADC [4]
 
TVector3 fPosition [3]
 
Double_t fRawPos [2]
 
TClonesArrayfrPosAdcPulseIntRaw
 
Double_t FRXA_rawadc
 
Double_t FRXB_rawadc
 
Double_t FRYA_rawadc
 
Double_t FRYB_rawadc
 
Double_t fXA_ADC
 
Double_t fXA_pos
 
Double_t fXB_ADC
 
Double_t fXB_pos
 
Double_t fXbeam_prev [4]
 
Double_t fXbpm_A
 
Double_t fXbpm_B
 
Double_t fXbpm_C
 
Double_t fXbpm_tar
 
Double_t fXpbeam_prev
 
Double_t fXpbpm_tar
 
Double_t fYA_ADC
 
Double_t fYA_pos
 
Double_t fYB_ADC
 
Double_t fYB_pos
 
Double_t fYbeam_prev [4]
 
Double_t fYbpm_A
 
Double_t fYbpm_B
 
Double_t fYbpm_C
 
Double_t fYbpm_tar
 
Double_t fYpbeam_prev
 
Double_t fYpbpm_tar
 
- Protected Attributes inherited from THcHitList
Double_t fDisableSlipCorrection
 
std::map< Int_t, Decoder::Fadc250Module * > fFADCSlotMap
 
Bool_t fHaveFADCInfo
 
Decoder::THaCrateMapfMap
 
Int_t fNADCRef_miss
 
Int_t fNPED
 
Int_t fNRefIndex
 
Int_t fNSA
 
Int_t fNSB
 
UInt_t fNSignals
 
Int_t fNTDCRef_miss
 
THcConfigEvtHandlerfPSE125
 
std::vector< RefIndexMapfRefIndexMaps
 
THcRawHit::ESignalTypefSignalTypes
 
Int_t fTICrate
 
Int_t fTISlot
 
std::map< Int_t, Int_tfTrigTimeShiftMap
 

Private Member Functions

 ClassDef (THcRaster, 0)
 

Private Attributes

Bool_t fAnalyzePedestals
 
Double_t fFrCalMom
 
Double_t fFrXA_ADCperCM
 
Double_t fFrXB_ADCperCM
 
Double_t fFrYA_ADCperCM
 
Double_t fFrYB_ADCperCM
 
Int_t fNPedestalEvents
 

Additional Inherited Members

- Public Attributes inherited from THcHitList
Bool_t fADC_RefTimeBest
 
Int_t fADC_RefTimeCut
 
THaDetMap * fdMap
 
Int_t fNMaxRawHits
 
UInt_t fNRawHits
 
TClassfRawHitClass
 
TClonesArrayfRawHitList
 
Bool_t fTDC_RefTimeBest
 
Int_t fTDC_RefTimeCut
 
- Protected Member Functions inherited from THcHitList
 ClassDef (THcHitList, 0)
 

#include <THcRaster.h>

Inheritance diagram for THcRaster:

Constructor & Destructor Documentation

THcRaster::THcRaster ( const char *  name,
const char *  description = "",
THaApparatus *  a = NULL 
)

Definition at line 39 of file THcRaster.cxx.

THcRaster::~THcRaster ( )

Definition at line 110 of file THcRaster.cxx.

THcRaster::THcRaster ( )

Definition at line 99 of file THcRaster.cxx.

Member Function Documentation

void THcRaster::AccumulatePedestals ( TClonesArray rawhits)

Definition at line 311 of file THcRaster.cxx.

void THcRaster::CalculatePedestals ( )

Definition at line 366 of file THcRaster.cxx.

THcRaster::ClassDef ( THcRaster  ,
 
)
private
void THcRaster::Clear ( Option_t opt = "")
inline

Definition at line 303 of file THcRaster.cxx.

Int_t THcRaster::Decode ( const THaEvData evdata)

Definition at line 397 of file THcRaster.cxx.

Int_t THcRaster::DefineVariables ( EMode  mode)

Definition at line 261 of file THcRaster.cxx.

void THcRaster::DeleteArrays ( )
inline

Definition at line 42 of file THcRaster.h.

Double_t THcRaster::GetCurrentX ( )
inline

Definition at line 49 of file THcRaster.h.

Double_t THcRaster::GetCurrentY ( )
inline

Definition at line 50 of file THcRaster.h.

TVector3 THcRaster::GetDirection ( ) const
inline

Definition at line 47 of file THcRaster.h.

TVector3 THcRaster::GetPosition ( ) const
inline

Definition at line 46 of file THcRaster.h.

THaAnalysisObject::EStatus THcRaster::Init ( const TDatime run_time)

Definition at line 122 of file THcRaster.cxx.

void THcRaster::InitArrays ( )
inline

Definition at line 41 of file THcRaster.h.

Int_t THcRaster::Process ( )

Definition at line 476 of file THcRaster.cxx.

Int_t THcRaster::ReadDatabase ( const TDatime date)

Definition at line 149 of file THcRaster.cxx.

Member Data Documentation

Double_t THcRaster::BPMXA_pos
protected

Definition at line 96 of file THcRaster.h.

Double_t THcRaster::BPMXA_raw
protected

Definition at line 90 of file THcRaster.h.

Double_t THcRaster::BPMXB_pos
protected

Definition at line 98 of file THcRaster.h.

Double_t THcRaster::BPMXB_raw
protected

Definition at line 92 of file THcRaster.h.

Double_t THcRaster::BPMXC_pos
protected

Definition at line 100 of file THcRaster.h.

Double_t THcRaster::BPMXC_raw
protected

Definition at line 94 of file THcRaster.h.

Double_t THcRaster::BPMYA_pos
protected

Definition at line 97 of file THcRaster.h.

Double_t THcRaster::BPMYA_raw
protected

Definition at line 91 of file THcRaster.h.

Double_t THcRaster::BPMYB_pos
protected

Definition at line 99 of file THcRaster.h.

Double_t THcRaster::BPMYB_raw
protected

Definition at line 93 of file THcRaster.h.

Double_t THcRaster::BPMYC_pos
protected

Definition at line 101 of file THcRaster.h.

Double_t THcRaster::BPMYC_raw
protected

Definition at line 95 of file THcRaster.h.

Bool_t THcRaster::fAnalyzePedestals
private

Definition at line 148 of file THcRaster.h.

TVector3 THcRaster::fDirection
protected

Definition at line 142 of file THcRaster.h.

Double_t THcRaster::fEbeamEpics
protected

Definition at line 126 of file THcRaster.h.

Double_t THcRaster::fEbeamEpics_prev
protected

Definition at line 128 of file THcRaster.h.

Double_t THcRaster::fEbeamEpics_read
protected

Definition at line 127 of file THcRaster.h.

THaEpicsEvtHandler* THcRaster::fEpicsHandler
protected

Definition at line 145 of file THcRaster.h.

Bool_t THcRaster::fFlag_use_EPICS_bpm
protected

Definition at line 124 of file THcRaster.h.

Double_t THcRaster::fFrCalMom
private

Definition at line 150 of file THcRaster.h.

Double_t THcRaster::fFrXA_ADC_zero_offset
protected

Definition at line 131 of file THcRaster.h.

Double_t THcRaster::fFrXA_ADCperCM
private

Definition at line 151 of file THcRaster.h.

Double_t THcRaster::fFrXB_ADC_zero_offset
protected

Definition at line 133 of file THcRaster.h.

Double_t THcRaster::fFrXB_ADCperCM
private

Definition at line 153 of file THcRaster.h.

Double_t THcRaster::fFrYA_ADC_zero_offset
protected

Definition at line 132 of file THcRaster.h.

Double_t THcRaster::fFrYA_ADCperCM
private

Definition at line 152 of file THcRaster.h.

Double_t THcRaster::fFrYB_ADC_zero_offset
protected

Definition at line 134 of file THcRaster.h.

Double_t THcRaster::fFrYB_ADCperCM
private

Definition at line 154 of file THcRaster.h.

Double_t THcRaster::fgbeam_xoff
protected

Definition at line 65 of file THcRaster.h.

Double_t THcRaster::fgbeam_xpoff
protected

Definition at line 66 of file THcRaster.h.

Double_t THcRaster::fgbeam_yoff
protected

Definition at line 67 of file THcRaster.h.

Double_t THcRaster::fgbeam_ypoff
protected

Definition at line 68 of file THcRaster.h.

Double_t THcRaster::fgbpma_zpos
protected

Definition at line 81 of file THcRaster.h.

Double_t THcRaster::fgbpmb_zpos
protected

Definition at line 82 of file THcRaster.h.

Double_t THcRaster::fgbpmc_zpos
protected

Definition at line 83 of file THcRaster.h.

Double_t THcRaster::fgbpmxa_off
protected

Definition at line 70 of file THcRaster.h.

Double_t THcRaster::fgbpmxa_slope
protected

Definition at line 69 of file THcRaster.h.

Double_t THcRaster::fgbpmxb_off
protected

Definition at line 72 of file THcRaster.h.

Double_t THcRaster::fgbpmxb_slope
protected

Definition at line 71 of file THcRaster.h.

Double_t THcRaster::fgbpmxc_off
protected

Definition at line 74 of file THcRaster.h.

Double_t THcRaster::fgbpmxc_slope
protected

Definition at line 73 of file THcRaster.h.

Double_t THcRaster::fgbpmya_off
protected

Definition at line 76 of file THcRaster.h.

Double_t THcRaster::fgbpmya_slope
protected

Definition at line 75 of file THcRaster.h.

Double_t THcRaster::fgbpmyb_off
protected

Definition at line 78 of file THcRaster.h.

Double_t THcRaster::fgbpmyb_slope
protected

Definition at line 77 of file THcRaster.h.

Double_t THcRaster::fgbpmyc_off
protected

Definition at line 80 of file THcRaster.h.

Double_t THcRaster::fgbpmyc_slope
protected

Definition at line 79 of file THcRaster.h.

Double_t THcRaster::fgfrx_dist
protected

Definition at line 63 of file THcRaster.h.

Double_t THcRaster::fgfry_dist
protected

Definition at line 64 of file THcRaster.h.

Double_t THcRaster::fgpbeam
protected

Definition at line 62 of file THcRaster.h.

Int_t THcRaster::fgusefr
protected

Definition at line 84 of file THcRaster.h.

Int_t THcRaster::fNhits
protected

Definition at line 58 of file THcRaster.h.

Int_t THcRaster::fNPedestalEvents
private

Definition at line 149 of file THcRaster.h.

Double_t THcRaster::fPedADC[4]
protected

Definition at line 137 of file THcRaster.h.

TVector3 THcRaster::fPosition[3]
protected

Definition at line 141 of file THcRaster.h.

Double_t THcRaster::fRawPos[2]
protected

Definition at line 140 of file THcRaster.h.

TClonesArray* THcRaster::frPosAdcPulseIntRaw
protected

Definition at line 144 of file THcRaster.h.

Double_t THcRaster::FRXA_rawadc
protected

Definition at line 86 of file THcRaster.h.

Double_t THcRaster::FRXB_rawadc
protected

Definition at line 88 of file THcRaster.h.

Double_t THcRaster::FRYA_rawadc
protected

Definition at line 87 of file THcRaster.h.

Double_t THcRaster::FRYB_rawadc
protected

Definition at line 89 of file THcRaster.h.

Double_t THcRaster::fXA_ADC
protected

Definition at line 102 of file THcRaster.h.

Double_t THcRaster::fXA_pos
protected

Definition at line 106 of file THcRaster.h.

Double_t THcRaster::fXB_ADC
protected

Definition at line 104 of file THcRaster.h.

Double_t THcRaster::fXB_pos
protected

Definition at line 108 of file THcRaster.h.

Double_t THcRaster::fXbeam_prev[4]
protected

Definition at line 120 of file THcRaster.h.

Double_t THcRaster::fXbpm_A
protected

Definition at line 114 of file THcRaster.h.

Double_t THcRaster::fXbpm_B
protected

Definition at line 116 of file THcRaster.h.

Double_t THcRaster::fXbpm_C
protected

Definition at line 118 of file THcRaster.h.

Double_t THcRaster::fXbpm_tar
protected

Definition at line 110 of file THcRaster.h.

Double_t THcRaster::fXpbeam_prev
protected

Definition at line 122 of file THcRaster.h.

Double_t THcRaster::fXpbpm_tar
protected

Definition at line 112 of file THcRaster.h.

Double_t THcRaster::fYA_ADC
protected

Definition at line 103 of file THcRaster.h.

Double_t THcRaster::fYA_pos
protected

Definition at line 107 of file THcRaster.h.

Double_t THcRaster::fYB_ADC
protected

Definition at line 105 of file THcRaster.h.

Double_t THcRaster::fYB_pos
protected

Definition at line 109 of file THcRaster.h.

Double_t THcRaster::fYbeam_prev[4]
protected

Definition at line 121 of file THcRaster.h.

Double_t THcRaster::fYbpm_A
protected

Definition at line 115 of file THcRaster.h.

Double_t THcRaster::fYbpm_B
protected

Definition at line 117 of file THcRaster.h.

Double_t THcRaster::fYbpm_C
protected

Definition at line 119 of file THcRaster.h.

Double_t THcRaster::fYbpm_tar
protected

Definition at line 111 of file THcRaster.h.

Double_t THcRaster::fYpbeam_prev
protected

Definition at line 123 of file THcRaster.h.

Double_t THcRaster::fYpbpm_tar
protected

Definition at line 113 of file THcRaster.h.

Collaboration diagram for THcRaster:

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