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.
| TaRun() | |
| TaRun(const Int_t& run) | |
| TaRun(const string& filename) | |
| virtual | ~TaRun() |
| virtual void | AccumEvent(const VaEvent&, const Bool_t doSlice, const Bool_t doRun) |
| virtual void | AccumPair(const VaPair&, const Bool_t doSlice, const Bool_t doRun) |
| static TClass* | Class() |
| void | Decode() |
| virtual void | Finish() |
| const TaCutList& | GetCutList() const |
| TaDataBase& | GetDataBase() const |
| Double_t | GetDBValue(string key) const |
| TaDevice& | GetDevices() const |
| VaEvent& | GetEvent() const |
| Int_t | GetKey(string keystr) const |
| string | GetKey(Int_t key) const |
| SlotNumber_t | GetOversample() const |
| UInt_t | GetRate() const |
| Int_t | GetRunNumber() const |
| virtual ErrCode_t | Init(const vector<string>& dbcommand) |
| virtual void | InitRoot() |
| virtual TClass* | IsA() const |
| Bool_t | NextEvent() |
| void | PrintRun() |
| void | PrintSlice(EventNumber_t n) |
| virtual ErrCode_t | ReInit() |
| virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
| virtual void | Streamer(TBuffer& b) |
| void | StreamerNVirtual(TBuffer& b) |
| void | UpdateCutList(const Cut_t, const Int_t, EventNumber_t) |
| void | WriteRun() |
| TaRun(const TaRun& run) | |
| Int_t | FindRunNumber() |
| Int_t | GetBuffer() |
| TaRun& | operator=(const TaRun& run) |
| void | PrintStats(const TaStatistics& s, const vector<string>& n, const vector<string>& u) const |
| virtual void | Uncreate() |
| void | WriteStats(const TaStatistics& s, const vector<string>& n, const vector<string>& u, const EventNumber_t ev0, const EventNumber_t ev1) const |
| static EventNumber_t | fNLastSlice | event number at last slice reset |
| static vector<string> | fgORDNAME | names of orderings |
| static const ErrCode_t | fgTARUN_ERROR | returned on error |
| static const ErrCode_t | fgTARUN_OK | returned on success |
| static const ErrCode_t | fgTARUN_VERBOSE | verbose(1) or not(0) warnings |
| VaEvent* | fAccumEvent | Event being accumulated |
| Int_t | fAccumEventNumber | Number of the event being accumulated |
| THaCodaData* | fCoda | CODA data source |
| string | fCodaFileName | Name of CODA data file |
| UInt_t | fCompress | ROOT file compression for this run |
| string | fComputer | Computer to ask for online data |
| TaCutList* | fCutList | Cut list for this run |
| TaDataBase* | fDataBase | Database for this run |
| TaDevice* | fDevices | Device map for this run |
| TaStatistics* | fERunStats | Cumulative event statistics |
| TaStatistics* | fESliceStats | Incremental event statistics |
| vector<string> | fEStatsNames | Names of event statistics |
| vector<string> | fEStatsUnits | Units of event statistics |
| TaEpics* | fEpics | EPICS data |
| TTree* | fEpicsTree | EPICS tree. |
| VaEvent* | fEvent | The most recently read event |
| Int_t | fEventNumber | Number of the recently read event |
| TTree* | fEvtree | Event tree for Root file |
| Bool_t | fFirstPass | Pass 1 or 2? |
| SlotNumber_t | fOversamp | Oversample value for this run |
| TaStatistics** | fPOrdRunStats | Cumulative pair statistics, order cuts |
| TaStatistics** | fPOrdSliceStats | Incremental pair statistics, order cuts |
| vector<string> | fPOrdStatsNames | Names of pair statistics, order cuts |
| vector<string> | fPOrdStatsUnits | Units of pair statistics, order cuts |
| TaStatistics* | fPRunStats | Cumulative pair statistics |
| TaStatistics* | fPSliceStats | Incremental pair statistics |
| vector<string> | fPStatsNames | Names of pair statistics |
| vector<string> | fPStatsUnits | Units of pair statistics |
| TaOResultsFile* | fResFile | Results file |
| TFile* | fRootFile | Root file for analysis results |
| RunNumber_t | fRunNumber | Number of this run |
| string | fSession | CODA session for online data |
| Int_t | mymode | Mode for ET |
| Inheritance Chart: | |||||
|
Run initialization: Create event tree, attach data source and database, initialize static variables from these.
Update event statistics with the results in this event, if it passes cuts.
Update pair statistics with the results in this pair, if its events pass cuts. Periodically print incremental statistics and cumulative cut tally.