8 #ifndef __QwVQWK_CAVITY__
9 #define __QwVQWK_CAVITY__
64 for(Short_t i=0;i<2;i++)
69 UInt_t word_position_in_buffer,UInt_t indexnumber);
75 if (axis<0 || axis>2){
76 TString loc=
"QwBPMCavity::GetPosition for "
78 throw std::out_of_range(loc.Data());
102 void SetEventData(Double_t* block, UInt_t sequencenumber);
108 void Scale(Double_t factor);
static const TString subelement[3]
QwBPMCavity(const QwBPMCavity &source)
VQwBPM & operator=(const VQwBPM &value)
UInt_t GetEventcutErrorFlag()
return the error flag on this channel/device
QwBPMCavity(TString name)
void ConstructBranch(TTree *tree, TString &prefix)
void ClearEventData()
Clear the event data in this element.
QwVQWK_Channel fAbsPos[2]
void GetAbsolutePosition()
void RandomizeEventData(int helicity=0, double time=0.0)
void SetSubElementCalibrationFactor(Int_t j, Double_t value)
const VQwHardwareChannel * GetPosition(EBeamPositionMonitorAxis axis) const
VQwBPM & operator+=(const VQwBPM &value)
static UInt_t GetSubElementIndex(TString subname)
void SetRandomEventParameters(Double_t meanX, Double_t sigmaX, Double_t meanY, Double_t sigmaY)
void AccumulateRunningSum(const VQwBPM &value)
std::vector< QwDBInterface > GetDBEntry()
void EncodeEventData(std::vector< UInt_t > &buffer)
TString GetSubElementName(Int_t subindex)
void CalculateRunningAverage()
void SetEventData(Double_t *block, UInt_t sequencenumber)
VQwBPM & operator-=(const VQwBPM &value)
void InitializeChannel(TString name)
static const Double_t kQwCavityCalibration
const VQwHardwareChannel * GetEffectiveCharge() const
void PrintInfo() const
Print multiple lines of information about this data element.
void LoadChannelParameters(QwParameterFile ¶mfile)
static const Double_t kRotationCorrection
VQwHardwareChannel * GetSubelementByName(TString ch_name)
void SetSubsystemName(TString sysname)
Set the name of the inheriting subsystem name.
void SetSubElementPedestal(Int_t j, Double_t value)
void PrintErrorCounters() const
report number of events failed due to HW and event cut failure
void DeaccumulateRunningSum(VQwBPM &value)
QwBPMCavity(TString subsystemname, TString name)
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
QwVQWK_Channel fEffectiveCharge
void Scale(Double_t factor)
static const TString axis[3]
QwVQWK_Channel fRelPos[2]
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t word_position_in_buffer, UInt_t indexnumber)
Process the CODA event buffer for this element.
void FillHistograms()
Fill the histograms for this data element.
void PrintValue() const
Print single line of value and error of this data element.
void IncrementErrorCounters()
UInt_t UpdateErrorFlag()
Update the error flag based on the error flags of internally contained objects Return paramter is the...
void FillTreeVector(std::vector< Double_t > &values) const
virtual const TString & GetElementName() const
Get the name of this element.
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
void Ratio(QwBPMCavity &numer, QwBPMCavity &denom)
void SetDefaultSampleSize(Int_t sample_size)
std::vector< QwVQWK_Channel > fBPMElementList
std::vector< QwErrDBInterface > GetErrDBEntry()
Bool_t ApplySingleEventCuts()
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.