Pan: The Parity Analyzer -- Class Index

Pan classes only
All classes


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

class TaADCCalib: public VaAnalysis


HALL A C++/ROOT Parity Analyzer  Pan

           TaADCCalib.cc   (implementation)

 Author:  K. Paschke <http://www.jlab.org/~paschke/>
 @(#)pan/src:$Name:  $:$Id: TaADCCalib.cc,v 1.15 2003/02/12 15:59:04 vacheret Exp $



    ADC calibration analysis.  Depending on constructor argument,
this class handles analysis of ADC pedestals or DAC noise
    pedestals and slopes.


Function Members (Methods)

public:
TaADCCalib()
TaADCCalib(const string& anName)
~TaADCCalib()
static TClass*Class()
virtual ErrCode_tVaAnalysis::InitLastPass()
virtual TClass*IsA() const
size_tVaAnalysis::PairsLeft() const
virtual voidVaAnalysis::RunFini()
virtual ErrCode_tVaAnalysis::RunIni(TaRun&)
virtual ErrCode_tVaAnalysis::RunReIni(TaRun&)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
virtual voidVaAnalysis::AutoPairAna()
vector<AnaList>VaAnalysis::ChanList(const string& devtype, const string& channel, const string& other, const UInt_t flags = 0)
virtual vector<AnaList>VaAnalysis::ChanListFromName(const string& chanbase, const string& other, const UInt_t flags = 0)
virtual voidVaAnalysis::ComputeData(EFeedbackType fdbk, UInt_t timescale, Int_t devicekey)
virtual voidVaAnalysis::ComputeLastData(EFeedbackType fdbk, UInt_t timescale, Int_t devicekey)
virtual voidVaAnalysis::GetLastSetPt()
virtual voidVaAnalysis::InitFeedback()
virtual voidVaAnalysis::InitTree(const TaCutList&)
ErrCode_tVaAnalysis::NewPrePair()
virtual ErrCode_tVaAnalysis::PreProcessEvt()
virtual voidVaAnalysis::ProceedFeedback()
virtual voidVaAnalysis::ProceedLastFeedback()
virtual ErrCode_tVaAnalysis::ProcessEvt()
virtual ErrCode_tVaAnalysis::ProcessPair()
virtual voidVaAnalysis::PZTSendEPICS(Int_t fdbkoption)
virtual voidVaAnalysis::SendEPICS(EFeedbackType fdbk, Int_t fdbkoption)
virtual voidVaAnalysis::SendVoltagePZT()
Bool_tVaAnalysis::WtsOK(vector<Double_t> wts)
private:
TaADCCalib(const TaADCCalib& copy)
virtual voidEventAnalysis()
virtual voidFinish()
voidFinishDAC()
voidFinishPed()
virtual voidInit(const Bool_t&)
virtual voidInitChanLists()
voidInitDAC()
voidInitPed()
TaADCCalib&operator=(const TaADCCalib& assign)
virtual voidPairAnalysis()
virtual ErrCode_tProcessRun()

Data Members

public:
static const UInt_tVaAnalysis::fgASYStore asymmetry as result
static const UInt_tVaAnalysis::fgASYNStore normalized asymmetry as result
static const UInt_tVaAnalysis::fgAVEUse average asymmetry, not sum
static const UInt_tVaAnalysis::fgAVGStore average as result
static const UInt_tVaAnalysis::fgAVGNStore normalized average as result
static const UInt_tVaAnalysis::fgBLINDBlind this result
static const UInt_tVaAnalysis::fgBLINDSIGNBlind sign only of this result
static const UInt_tVaAnalysis::fgCOPYStore right and left values as results
static const UInt_tVaAnalysis::fgDIFFStore R-L difference as result
static const UInt_tVaAnalysis::fgNO_BEAM_C_NO_ASYDo not compute asym if lobeamc cut fails
static const UInt_tVaAnalysis::fgNO_BEAM_NO_ASYDo not compute asym if lobeam cut fails
static const UInt_tVaAnalysis::fgNumBpmFdbk
static const UInt_tVaAnalysis::fgORDEREDAlso do order dependent stats
static const EventNumber_tVaAnalysis::fgSLICELENGTHevents in a statistics slice
static const UInt_tVaAnalysis::fgSTATSPrint statistics
static const ErrCode_tVaAnalysis::fgVAANA_ERRORreturned on error
static const ErrCode_tVaAnalysis::fgVAANA_OKreturned on success
protected:
TaBlind*VaAnalysis::fBlindFor blinding
UInt_tVaAnalysis::fCurMonIndex for current monitor for normalization
Int_t*VaAnalysis::fCutArrayArray of cut condition values for tree
Int_t*VaAnalysis::fCutIntArrayArray of cut interval values for tree
Bool_tVaAnalysis::fDoRootTo control whether ROOT file is made
Bool_tVaAnalysis::fDoRunTo control if run stats are kept
Bool_tVaAnalysis::fDoSliceTo control if slice stats are kept
deque<VaEvent>VaAnalysis::fEDequeCut delay event deque
size_tVaAnalysis::fEDequeMaxMax size of cut delay event deque
deque<VaEvent>VaAnalysis::fEHelDequeHelicity delay event deque
size_tVaAnalysis::fEHelDequeMaxMax size of helicity delay event deque
VaEvent*VaAnalysis::fEvtEvent being analyzed
UInt_tVaAnalysis::fEvtProcNumber of events processed
stringVaAnalysis::fFdbkName[5]Feedback name
Int_tVaAnalysis::fFeedNum[5]feedback number
Bool_tVaAnalysis::fFirstPassPass 1 or not?
Double_tVaAnalysis::fIAHallCslopeIA feedback calibration slope for Hall-C
Double_tVaAnalysis::fIAslopeIA feedback calibration slope
Double_tVaAnalysis::fLast[5]Last value of the voltage for feeback i
Bool_tVaAnalysis::fLastPassLast pass or not?
UInt_tVaAnalysis::fMaxNumEvMax number of events to analyze
Double_tVaAnalysis::fMean1[5]Feedback Mean value 1st pass
Double_tVaAnalysis::fMean2[5]Feedback Mean value 2st pass
stringVaAnalysis::fMonitor[5]Current/postion Monitor name used for feedback
UInt_tVaAnalysis::fMonitorKey[5]Current/position Monitor key
UInt_tVaAnalysis::fNCutsSize of cut array
UInt_tVaAnalysis::fNPair[5]Number of pair for type i feedback
Bool_tVaAnalysis::fOnlFlagFlag whether data are online or not.
deque<VaPair*>VaAnalysis::fPDequeCut delay pair deque
size_tVaAnalysis::fPDequeMaxMax size of cut delay pair deque
Double_tVaAnalysis::fPITAslopePITA feedback calibration slope
Double_t*VaAnalysis::fPZTMatrixPZT matrix
Bool_tVaAnalysis::fPZTQcouplingEnable correction for PZT Q coupling
Double_tVaAnalysis::fPZTQslopes[2]PZT Q coupling slopes
VaPair*VaAnalysis::fPairPair being analyzed
UInt_tVaAnalysis::fPairProcNumber of pairs processed
TTree*VaAnalysis::fPairTreePair tree for Root file
EPairTypeVaAnalysis::fPairTypeType of beam helicity structure
VaEvent*VaAnalysis::fPreEvtEvent being preprocessed
VaPair*VaAnalysis::fPrePairPair being built
Double_tVaAnalysis::fRMS[5]Feedback RMS
Double_tVaAnalysis::fResult[5](asy or diff) result for feedback i
Double_tVaAnalysis::fResultError[5](asy or diff) result error for feedback i
TaRun*VaAnalysis::fRunRun being analyzed
Int_tVaAnalysis::fRunNumcurrent run number
Bool_tVaAnalysis::fSend[5]Enable send voltage value for feedback
EventNumber_tVaAnalysis::fSliceLimitEvent number at end of next slice
Int_tVaAnalysis::fStartPair[5]Feedback pair start
Int_tVaAnalysis::fStopPair[5]IA feedback pair stop
vector<Double_t>VaAnalysis::fSum[5]Sum of value for feedback i
Bool_tVaAnalysis::fSwitch[5]Enable compute vlaue for feedback
UInt_tVaAnalysis::fTimeScale[5]Timescale of feedback
Int_tVaAnalysis::fTreeLEvNumLeft ev number for tree
vector<AnaList>VaAnalysis::fTreeListQuantities to put in the pair results and pair tree
Double_tVaAnalysis::fTreeMEvNumMean ev number for tree
Int_tVaAnalysis::fTreeOKCCutPair not in cut interval (hallC)
Int_tVaAnalysis::fTreeOKCondPair passes cut conditions
Int_tVaAnalysis::fTreeOKCutPair not in cut interval
Int_tVaAnalysis::fTreePrevHelTrue helicity of prev event
Int_tVaAnalysis::fTreePrevROHelReadout helicity of prev event
Int_tVaAnalysis::fTreeREvNumRight ev number for tree
Double_t*VaAnalysis::fTreeSpaceOther data for tree
private:
static const Int_tMaxNoiseDACBin
Bool_tchanExists[30][4]
Double_tdADCavg[65536]
vector<vector<Double_t> >dADCsumsum of ADC value for each chan#/DAC bin
vector<vector<Double_t> >dADCsum2sum of ADC value-squared
Double_tdADCvar[65536]
Double_tdDACval[65536]
Double_tdEDACval[65536]
vector<vector<Int_t> >dEntriesnumber of entries in each chan#/DAC bin
Double_tdRes[65536]
TGraphErrors**dgraphsarray of graphs
vector<Double_t>fSumXsum of X
vector<Double_t>fSumX2sum of X^2
vector<Double_t>fSumXYsum of XY needed for linear fit
vector<Double_t>fSumYsum of Y needed for linear fit
TFile*hfileroot histo file
vector<Int_t>nEntriesnEntries for this channel
TH1F**phistArray of histograms
TGraphErrors**rgraphsarray of graphs
Int_ttypeFlag

Class Charts

Inheritance Chart:
VaAnalysis
TaADCCalib

Function documentation

TaADCCalib()
TaADCCalib(const string& anName)
 TaADCCalib constructor; argument specifying calibration type may
 be "adcped" or "adcdac".
~TaADCCalib()
{}
TaADCCalib& operator=( const TaADCCalib& assign)
void Init(const Bool_t& onl)
 Initialization -- determines which channels to analyze, then
 calls type-specific initialization
void Finish()
 End of analysis -- mainly just calls type-specific finish routine
void FinishDAC()
 End of DAC calibration analysis; computes DAC noise pedestals and
 slopes
void FinishPed()
 End of pedestal analysis; computes ADC pedestals
void InitPed()
 Pedestal analysis initialization -- sets up pedestal root file
void InitDAC()
 DAC calibration analysis initialization -- sets up DAC root file
ProcessRun()
 Main analysis routine -- this is the event loop, override this
 from VaAnalysis because it is such a pain to deal with helicity,
 which isn't necessary in calibration runs.
void EventAnalysis()
 put everything needed to analyze one event

 when looping over all devices, make keys (strings like adc0_1, first
 number slot, second number channel), and check whether keys exist.
 use GetData(key) to get data?
 maybe init phase can be used to check for all valid keys?
void PairAnalysis()
 no pair analysis for ADC calib runs, leave this empty
TaADCCalib()
 Constructors/destructors/operators

Author: K. Paschke
Last update: pan/src:$Name: $:$Id: TaADCCalib.cc,v 1.15 2003/02/12 15:59:04 vacheret 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.