Pan: The Parity Analyzer -- Class Index

Pan classes only
All classes


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

class TaRun


HALL A C++/ROOT Parity Analyzer  Pan

           TaRun.cc  (implementation)

 Author:  R. Holmes <http://mep1.phy.syr.edu/~rsholmes>, A. Vacheret <http://www.jlab.org/~vacheret>, R. Michaels <http://www.jlab.org/~rom>, K.Paschke
 @(#)pan/src:$Name:  $:$Id: TaRun.cc,v 1.56 2005/09/28 15:52:36 rsholmes Exp $



 This class treats the data of one run. The Init method initializes
 the event TTree, attaches the Coda file or online data, and gets
 the database.  It initializes the storage of devices and cuts.

 In the event loop, the NextEvent method is called to get and decode
 an event from the data stream.  AddCuts is called after
 preprocessing each event, to update the list of cut intervals.
 AccumEvent and AccumPair accumulate statistics for results of event
 and pair analysis, respectively.  PrintSlice and PrintRun write
 statistics summaries to STDOUT.

 When analysis is complete, Finish is called to write and close the
 ROOT file.


Function Members (Methods)

public:
TaRun()
TaRun(const Int_t& run)
TaRun(const string& filename)
virtual~TaRun()
virtual voidAccumEvent(const VaEvent&, const Bool_t doSlice, const Bool_t doRun)
virtual voidAccumPair(const VaPair&, const Bool_t doSlice, const Bool_t doRun)
static TClass*Class()
voidDecode()
virtual voidFinish()
const TaCutList&GetCutList() const
TaDataBase&GetDataBase() const
Double_tGetDBValue(string key) const
TaDevice&GetDevices() const
VaEvent&GetEvent() const
Int_tGetKey(string keystr) const
stringGetKey(Int_t key) const
SlotNumber_tGetOversample() const
UInt_tGetRate() const
Int_tGetRunNumber() const
virtual ErrCode_tInit(const vector<string>& dbcommand)
virtual voidInitRoot()
virtual TClass*IsA() const
Bool_tNextEvent()
voidPrintRun()
voidPrintSlice(EventNumber_t n)
virtual ErrCode_tReInit()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidUpdateCutList(const Cut_t, const Int_t, EventNumber_t)
voidWriteRun()
private:
TaRun(const TaRun& run)
Int_tFindRunNumber()
Int_tGetBuffer()
TaRun&operator=(const TaRun& run)
voidPrintStats(const TaStatistics& s, const vector<string>& n, const vector<string>& u) const
virtual voidUncreate()
voidWriteStats(const TaStatistics& s, const vector<string>& n, const vector<string>& u, const EventNumber_t ev0, const EventNumber_t ev1) const

Data Members

public:
static EventNumber_tfNLastSliceevent number at last slice reset
static vector<string>fgORDNAMEnames of orderings
static const ErrCode_tfgTARUN_ERRORreturned on error
static const ErrCode_tfgTARUN_OKreturned on success
static const ErrCode_tfgTARUN_VERBOSEverbose(1) or not(0) warnings
private:
VaEvent*fAccumEventEvent being accumulated
Int_tfAccumEventNumberNumber of the event being accumulated
THaCodaData*fCodaCODA data source
stringfCodaFileNameName of CODA data file
UInt_tfCompressROOT file compression for this run
stringfComputerComputer to ask for online data
TaCutList*fCutListCut list for this run
TaDataBase*fDataBaseDatabase for this run
TaDevice*fDevicesDevice map for this run
TaStatistics*fERunStatsCumulative event statistics
TaStatistics*fESliceStatsIncremental event statistics
vector<string>fEStatsNamesNames of event statistics
vector<string>fEStatsUnitsUnits of event statistics
TaEpics*fEpicsEPICS data
TTree*fEpicsTreeEPICS tree.
VaEvent*fEventThe most recently read event
Int_tfEventNumberNumber of the recently read event
TTree*fEvtreeEvent tree for Root file
Bool_tfFirstPassPass 1 or 2?
SlotNumber_tfOversampOversample value for this run
TaStatistics**fPOrdRunStatsCumulative pair statistics, order cuts
TaStatistics**fPOrdSliceStatsIncremental pair statistics, order cuts
vector<string>fPOrdStatsNamesNames of pair statistics, order cuts
vector<string>fPOrdStatsUnitsUnits of pair statistics, order cuts
TaStatistics*fPRunStatsCumulative pair statistics
TaStatistics*fPSliceStatsIncremental pair statistics
vector<string>fPStatsNamesNames of pair statistics
vector<string>fPStatsUnitsUnits of pair statistics
TaOResultsFile*fResFileResults file
TFile*fRootFileRoot file for analysis results
RunNumber_tfRunNumberNumber of this run
stringfSessionCODA session for online data
Int_tmymodeMode for ET

Class Charts

Inheritance Chart:
TaRun

Function documentation

TaRun()
TaRun(const Int_t& run)
TaRun(const string& filename)
Init(const vector<string>& dbcommand)
 Run initialization: Create event tree, attach data source and
 database, initialize static variables from these.
ReInit()
 Run reinitialization for second pass: reattach data source.
NextEvent()
 Get the next physics event out of the coda file.
 If end of file or error return false.
Decode()
 Decode raw data, store event number
AccumEvent(const VaEvent& ev, const Bool_t doSlice, const Bool_t doRun)
 Update event statistics with the results in this event, if it
 passes cuts.
AccumPair(const VaPair& pr, const Bool_t doSlice, const Bool_t doRun)
 Update pair statistics with the results in this pair, if its
 events pass cuts.  Periodically print incremental statistics and
 cumulative cut tally.
Finish()
 End of run.  Write out root file and close it.
GetDBValue(string key)
 Query database for a value.
GetKey(string keystr)
 return the integer key that corresponds to a string.
GetKey(Int_t key)
 return the string key that corresponds to the integer key.
InitRoot()
 Set up the root file and event tree
Uncreate()
 Utility function for destructor.
GetBuffer()
 Pull in a CODA buffer
 global_kill31_flag is can be set by kill signal (see main.cc).
FindRunNumber()
 Get run number, from run number file if online or from data
 stream if not.
TaRun()
 Constructors/destructors/operators
virtual ~TaRun()
 Copy constructor and operator= are defined privately.
{ Uncreate(); }
void PrintRun()
void UpdateCutList(const Cut_t, const Int_t, EventNumber_t)
const TaCutList& GetCutList()
 Data access functions
{ return *fCutList; }
SlotNumber_t GetOversample()
{ return fOversamp; }
UInt_t GetRate()
{ return 30 * fOversamp; }
VaEvent& GetEvent()
{ return *fEvent; }
Int_t GetRunNumber()
{ return fRunNumber; }
TaDataBase& GetDataBase()
{ return *fDataBase; }
TaDevice& GetDevices()
{return *fDevices;}
TaRun& operator=(const TaRun& run)

Author: R. Holmes , A. Vacheret , R. Michaels , K.Paschke
Last update: pan/src:$Name: $:$Id: TaRun.cc,v 1.56 2005/09/28 15:52:36 rsholmes 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.