Pan: The Parity Analyzer -- Class Index

Pan classes only
All classes


+
class VaEvent
-
#include "VaEvent.hh"
Display options:
Show inherited
Show non-public

class VaEvent

Function Members (Methods)

public:
VaEvent()
VaEvent(const VaEvent& ev)
virtual~VaEvent()
voidAddCut(const Cut_t, const Int_t)
voidAddResult(const TaLabelledQuantity& result)
voidAddToTree(TaDevice& dev, const TaCutList& cutlist, TTree& tree)
Bool_tBeamCCut() const
Bool_tBeamCut() const
static Int_tBuffSize()
voidCheckEvent(TaRun& run)
static TClass*Class()
VaEvent&CopyInPlace(const VaEvent& rhs)
Int_tCutCond(const Cut_t c) const
Bool_tCutStatus() const
virtual voidDecode(TaDevice& devices)
voidDeviceDump() const
Double_tGetCalADCData(Int_t slot, Int_t chan) const
Double_tGetData(Int_t key) const
Double_tGetDataSum(vector<Int_t>, vector<Double_t> = vector<Double_t>(0)) const
UInt_tGetEvLength() const
EventNumber_tGetEvNumber() const
UInt_tGetEvType() const
EHelicityGetHelicity() const
Int_tGetLastPhyEv() const
static Int_tGetMaxEvNumber()
UInt_tGetNCuts() const
EPairSynchGetPairSynch() const
EHelicityGetPrevHelicity() const
EHelicityGetPrevROHelicity() const
EQuadSynchGetQuadSynch() const
Double_tGetRawADCData(Int_t slot, Int_t chan) const
Int_tGetRawData(Int_t index) const
const vector<TaLabelledQuantity>&GetResults() const
EHelicityGetROHelicity() const
Double_tGetScalerData(Int_t slot, Int_t chan) const
SlotNumber_tGetTimeSlot() const
virtual TClass*IsA() const
Bool_tIsEpicsEvent() const
Bool_tIsPhysicsEvent() const
Bool_tIsPrestartEvent() const
voidLoad(const Int_t* buffer)
voidMiniDump() const
VaEvent&operator=(const VaEvent& ev)
voidRawDump() const
virtual ErrCode_tRunInit(const TaRun& run)
voidSetCalib(Bool_t)
voidSetHelicity(EHelicity)
voidSetPrevHelicity(EHelicity h)
voidSetPrevROHelicity(EHelicity h)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
voidCreate(const VaEvent&)
voidUncreate()
private:
voidCalibDecode(TaDevice& devices)
voidDecodeCook(TaDevice& devices)
Int_tDecodeCrates(TaDevice& devices)
Int_tIdx(const Int_t& key) const
Double_tRotate(Double_t x, Double_t y, Int_t xy)

Data Members

protected:
Double_t*fDataDecoded/corrected data
private:
Double_tfCavPars[4][2]QPD calibration parameters
Int_t*fCutArrayArray of cut values
Int_t*fEvBufferRaw event data
UInt_tfEvLenLength of event data
EventNumber_tfEvNumEvent number from data stream
UInt_tfEvTypeEvent type: 17 = prestart, 1-11 = physics
Bool_tfFailedACutTrue iff a cut failed
EHelicityfHelTrue helicity filled from later event
Int_t*fIrnCrate pointers
Int_tfLastPhyEvLast physics event number.
Int_t*fLenroc
Int_t*fN1roc
EHelicityfPrevHelTrue helicity for previous event
EHelicityfPrevROHelReadout helicity for previous event
Double_tfQPD1Pars[6]QPD calibration parameters
vector<TaLabelledQuantity>fResultsResults of event analysis
static Double_tfgBurpCutcut threshold from database
static Cut_tfgBurpNocut number for beam burp
static Double_tfgCBurpCutcut threshold from data base
static Cut_tfgCBurpNocut number for C-beam-burp cut
static Bool_tfgCalibTrue to include calibration variables
static Double_tfgCombWt[5][4]wts for detector combinations
static UInt_tfgCurMonindex to current monitor for cuts
static UInt_tfgCurMonCindex to current monitor for cuts
static UInt_tfgDetKey[4]index to calibrated detector values, used for det combos
static UInt_tfgDetRaw[4]index to raw detector values for cuts
static const UInt_tfgEpicsTypeEPICS event type
static Cut_tfgEvtSeqNocut number for event sequence
static Bool_tfgFirstDecodetrue until first event decoded
static const Double_tfgKappastripline BPM calibration
static VaEventfgLastEvcopy of previous event
static Double_tfgLoBeamcut threshold from database
static Double_tfgLoBeamCcut threshold from database
static Cut_tfgLoBeamCNocut number for low beam C
static Cut_tfgLoBeamNocut number for low beam
static const Cut_tfgMaxCutsLength of cut values array
static const UInt_tfgMaxEvLenMaximum length for event buffer
static const EventNumber_tfgMaxEvNumMaximum event number
static const UInt_tfgMaxNumPosMonMaximum number of position
static const UInt_tfgMaxNumPosMonEMaximum number of energy
static UInt_tfgMonRaw[4]index to raw monitor values for cuts
static Double_tfgMonSatCutcut threshold from database
static Cut_tfgMonSatNocut number for saturation
static UInt_tfgNCutsLength of cut array
static UInt_tfgNPosMonnumber of Position Monitors for Pos Burp cut.
static UInt_tfgNPosMonEnumber of Position Monitors for Energy Burp cut.
static UInt_tfgOversampleoversample factor
static Double_tfgPosBurp[5]
static Double_tfgPosBurpE[5]
static Cut_tfgPosBurpENocut number for energy burp cut
static Cut_tfgPosBurpNocut number for pos. burp cut
static UInt_tfgPosMon[5]
static UInt_tfgPosMonE[5]
static Double_tfgSatCutcut threshold from database
static Cut_tfgSatNocut number for saturation
static UInt_tfgSizeConstsize of first physics event should be size of all
static Cut_tfgStartupNocut number for startup
static const ErrCode_tfgTAEVT_ERRORreturned on error
static const ErrCode_tfgTAEVT_OKreturned on success

Class Charts

Inheritance Chart:
VaEvent
TaEvent
TaSimEvent

Function documentation

VaEvent()
~VaEvent()
VaEvent(const VaEvent& ev)
VaEvent & operator=(const VaEvent &ev)
RunInit(const TaRun& run)
 Initialization at start of run.  Get quantities from database
 which will be needed in event loop, and set other static variables
 to initial values.
void DecodeCook(TaDevice& devices)
 Determine at start-up which cooked data to add to tree.
 This uses a feature of Decode() but ensures that users of
 this class don't think it is a physics event.
Decode(TaDevice& devices)
 Decodes all the raw data and applies all the calibrations and BPM
 rotations.  Note: This assumes the event structure remains
 constant.  We check this by verifying a constant event length.
 Also note that in order for cooked data to appear in the output,
everywhere we have fData[cook_key] = function of fData[raw_key],
 we MUST have a line devices.SetUsed(cook_key) if we want it.
CalibDecode(TaDevice& devices)
 Analysis to include data not corrected for pedestal.
  Can be turned on with fgCalib.
  Much of this looks like VaEvent::Decode...
   BUT DON'T BE FOOLED!
CheckEvent(TaRun& run)
 Analysis-independent checks of event quality; updates event's cut array.
Int_t DecodeCrates(TaDevice& devices)
Decoding of crate structure.
 A crate is also called a "ROC" in CODA parlance.
 return code:
    0 = no decoding done (error, or wrong event type)
    1 = fine.
void AddResult( const TaLabelledQuantity& result)
 Store a result from analysis of this event.
Int_t GetRawData(Int_t index)
 Return an item from the event buffer.
Bool_t CutStatus()
 Return true iff event failed one or more cut conditions
BeamCut()
 Return true iff event failed low beam cut
BeamCCut()
 Return true iff event failed low beam C cut
Bool_t IsPrestartEvent()
Bool_t IsPhysicsEvent()
Bool_t IsEpicsEvent()
EventNumber_t GetEvNumber()
Int_t GetLastPhyEv()
UInt_t GetEvLength()
UInt_t GetEvType()
SlotNumber_t GetTimeSlot()
 Return oversampling timeslot for this event.
void SetHelicity(EHelicity h)
 Fill in the true helicity value for an event.  We use this to
 associated a delayed helicity with the earlier event it applies to.
EHelicity GetROHelicity()
 Return readout helicity as RightHeli or LeftHeli.  (WARNING: This
 is the helicity stored in the data stream for this event, which
 in general is *not* the helicity to use in analysis of this
 event!  See GetHelicity().  Note also that this is the helicity
 bit from the source and does not reflect half wave plate state,
 g-2 precession, etc.)
EHelicity GetHelicity()
 Return true helicity as RightHeli or LeftHeli.  (WARNING: This is
 the helicity to use in analysis of this event, which in general
 is *not* the helicity stored in the data stream for this event!
 See GetROHelicity().  Note also that this is the helicity bit
 from the source and does not reflect half wave plate state, g-2
 precession, etc.)
void SetPrevROHelicity(EHelicity h)
 Fill in the readout helicity value for the previous event.
void SetPrevHelicity(EHelicity h)
 Fill in the true helicity value for the previous event.
EHelicity GetPrevROHelicity()
 Return readout helicity of previous event as RightHeli or LeftHeli.
EHelicity GetPrevHelicity()
 Return true helicity of previous event as RightHeli or LeftHeli.
EPairSynch GetPairSynch()
 Return pairsynch (aka realtime) for this event as FirstPS or
 SecondPS, tagging this as an event from the first or second
 window, repectively, of a helicity window pair.
EQuadSynch GetQuadSynch()
 Return quadsynch for this event as FirstQS or
 OtherQS, tagging this as an event from the first or later
 window, repectively, of a helicity window quad.
const vector < TaLabelledQuantity > & GetResults()
 Return event analysis results stored in this event.
void RawDump()
 Diagnostic dump of raw data for debugging purposes
void DeviceDump()
 Diagnostic dump of device data for debugging purposes.
MiniDump()
 Diagnostic dump of selected data on one line for debugging purposes.
Double_t GetData( Int_t key )
To find a value corresponding to a data key
Int_t Idx(const Int_t& index)
Double_t GetRawADCData( Int_t adc, Int_t chan )
 Data raw data for adc # 0, 1, 2...  and channel # 0,1,2,3
Double_t GetCalADCData( Int_t adc, Int_t chan )
 Data calibrated data for adc # 0, 1, 2...and channel # 0,1,2,3
Double_t GetScalerData( Int_t scaler, Int_t chan )
 Data from scaler # 1,2,3..  and channel # 1,2,3...
SetCalib(Bool_t flag)
Double_t Rotate(Double_t x, Double_t y, Int_t xy)
 Rotation to get X or Y depending on xy flag
void Create(const VaEvent& rhs)
 Utility routine used by copy constructor and assignment.
void Uncreate()
 Utility routine used by destructor and assignment.
Int_t BuffSize()
 Data access functions
{ return fgMaxEvLen; }
Int_t GetMaxEvNumber()
{ return fgMaxEvNum; }

Author: R. Holmes , A. Vacheret , R. Michaels , K.Paschke
Last update: pan/src:$Name: $:$Id: VaEvent.cc,v 1.31 2006/02/27 22:30:30 paschke Exp $

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.