62 for(Short_t i=0;i<4;i++)
70 UInt_t word_position_in_buffer,UInt_t indexnumber);
74 if (axis<0 || axis>2){
75 TString loc=
"QwQPD::GetPosition for "
77 throw std::out_of_range(loc.Data());
101 void SetEventData(Double_t* block, UInt_t sequencenumber);
107 void Scale(Double_t factor);
Bool_t ApplySingleEventCuts()
void CalculateRunningAverage()
void SetSubElementCalibrationFactor(Int_t j, Double_t value)
void LoadChannelParameters(QwParameterFile ¶mfile)
void SetEventData(Double_t *block, UInt_t sequencenumber)
void SetRandomEventParameters(Double_t meanX, Double_t sigmaX, Double_t meanY, Double_t sigmaY)
void FillTreeVector(std::vector< Double_t > &values) const
QwQPD(const QwQPD &source)
void ClearEventData()
Clear the event data in this element.
void InitializeChannel(TString name)
void SetDefaultSampleSize(Int_t sample_size)
void IncrementErrorCounters()
QwQPD(TString subsystemname, TString name)
VQwBPM & operator-=(const VQwBPM &value)
void AccumulateRunningSum(const QwQPD &value)
std::vector< QwErrDBInterface > GetErrDBEntry()
Double_t fQwQPDCalibration[2]
void SetEventCutMode(Int_t bcuts)
Inherited from VQwDataElement to set the upper and lower limits (fULimit and fLLimit), stability % and the error flag on this channel.
VQwBPM & operator=(const VQwBPM &value)
QwVQWK_Channel fPhotodiode[4]
void FillHistograms()
Fill the histograms for this data element.
std::vector< QwVQWK_Channel > fQPDElementList
void RandomizeEventData(int helicity=0, double time=0.0)
VQwHardwareChannel * GetSubelementByName(TString ch_name)
void Scale(Double_t factor)
void DeaccumulateRunningSum(VQwBPM &value)
void SetSubsystemName(TString sysname)
Set the name of the inheriting subsystem name.
void ConstructBranch(TTree *tree, TString &prefix)
QwVQWK_Channel fAbsPos[2]
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t indexnumber)
Process the CODA event buffer for this element.
static const TString axis[3]
QwVQWK_Channel fRelPos[2]
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
TString GetSubElementName(Int_t subindex)
VQwBPM & operator+=(const VQwBPM &value)
std::vector< QwDBInterface > GetDBEntry()
UInt_t UpdateErrorFlag()
Update the error flag based on the error flags of internally contained objects Return paramter is the...
void Ratio(QwQPD &numer, QwQPD &denom)
static UInt_t GetSubElementIndex(TString subname)
void PrintErrorCounters() const
report number of events failed due to HW and event cut failure
const VQwHardwareChannel * GetPosition(EBeamPositionMonitorAxis axis) const
const VQwHardwareChannel * GetEffectiveCharge() const
virtual const TString & GetElementName() const
Get the name of this element.
void EncodeEventData(std::vector< UInt_t > &buffer)
void GetCalibrationFactors(Double_t AlphaX, Double_t AlphaY)
static const TString subelement[4]
QwVQWK_Channel fEffectiveCharge
void GetAbsolutePosition()
UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
void SetSubElementPedestal(Int_t j, Double_t value)