KaliVeda
1.12/06
Heavy-Ion Analysis Toolkit
|
Read the run sheets produced by the standard INDRA acquisition control program.
For each run, an entry is made in a new database of INDRA runs (KVINDRADB, global pointer gIndraDB). If required, a TTree can be created and filled with the informations read from the run sheets, for drawing histograms etc.
Examples of use:
Definition at line 48 of file KVINDRARunSheetReader.h.
Public Member Functions | |
KVINDRARunSheetReader (Bool_t make_tree=kFALSE) | |
virtual | ~ KVINDRARunSheetReader () |
void | CreateTree () |
TString | GetDateField (TString &, const Char_t *delim=":") |
const Char_t * | GetFileFormat () |
Double_t | GetNumberField (TString &, const Char_t *delim=":", int index=1) |
const Char_t * | GetRunSheetDir () |
const Char_t * | GetRunSheetFileName (Int_t run) |
TString | GetStringField (TString &, const Char_t *delim=":", int index=1) |
TTree * | GetTree () const |
Bool_t | IsMakeTree () const |
Int_t | ReadAllRunSheets (Int_t first=1, Int_t last=9999) |
Bool_t | ReadRunSheet (Int_t run) |
void | SetFileFormat (const Char_t *fmt) |
void | SetMakeTree (Bool_t yes=kTRUE) |
void | SetRunSheetDir (const Char_t *dir) |
void | StartTreeViewer () const |
Private Member Functions | |
void | init_vars () |
Set values of all runsheet/TTree variables to 0. More... | |
Private Attributes | |
Double_t | acq_rate |
Int_t | buf_ctrl |
Int_t | buf_sav |
Double_t | ctrl_rate |
Double_t | data_rate |
KVDatime | endrun |
Int_t | eve_ctrl |
Int_t | eve_lus |
Int_t | eve_sav |
TString | fFileFormat |
format string for run sheet file names More... | |
TString | fFilePath |
temporary string holding full filename of current runsheet More... | |
Bool_t | fMakeTree |
set to kTRUE if TTree is to be filled More... | |
TString | fRunSheetDir |
full path to directory holding run sheets More... | |
Int_t | fScalers [1024] |
scalers for tree More... | |
UInt_t | fTIME_START |
zero-time for all run start/stop times More... | |
TTree * | fTree |
TTree can be made and filled from info. More... | |
Int_t | iend |
Int_t | istart |
Double_t | len_run |
Int_t | rempli_dlt_blocs |
Double_t | rempli_dlt_pc |
Int_t | run_num |
Double_t | size |
KVDatime | start_run |
TString | stat_eve |
Double_t | temps_mort |
Double_t | trait_rate |
#include <KVINDRARunSheetReader.h>
Default ctor. If make_tree = kTRUE, a TTree will be created and filled with data from runsheets.
Definition at line 26 of file KVINDRARunSheetReader.cpp.
|
inlinevirtual |
Definition at line 74 of file KVINDRARunSheetReader.h.
void KVINDRARunSheetReader::CreateTree | ( | ) |
Definition at line 75 of file KVINDRARunSheetReader.cpp.
Special case of GetStringField for date-strings with ':' used in between hours, minutes, seconds. If ':' is also the delimiter of the string, we need to stick the time back together.
Definition at line 303 of file KVINDRARunSheetReader.cpp.
|
inline |
Definition at line 86 of file KVINDRARunSheetReader.h.
Double_t KVINDRARunSheetReader::GetNumberField | ( | TString & | line, |
const Char_t * | delim = ":" , |
||
int | index = 1 |
||
) |
Split line according to delimiter. Return the index-th element (index = 0, 1, 2, ...) as a Double_t
Definition at line 265 of file KVINDRARunSheetReader.cpp.
|
inline |
Definition at line 78 of file KVINDRARunSheetReader.h.
Uses directory path and file format to create full path to runsheet file for run number 'run'.
Definition at line 57 of file KVINDRARunSheetReader.cpp.
TString KVINDRARunSheetReader::GetStringField | ( | TString & | line, |
const Char_t * | delim = ":" , |
||
int | index = 1 |
||
) |
Split line according to delimiter. Return the index-th element (index = 0, 1, 2, ...) as a string
Definition at line 284 of file KVINDRARunSheetReader.cpp.
|
inline |
Definition at line 112 of file KVINDRARunSheetReader.h.
|
private |
Set values of all runsheet/TTree variables to 0.
Definition at line 41 of file KVINDRARunSheetReader.cpp.
|
inline |
Definition at line 101 of file KVINDRARunSheetReader.h.
Read all run sheets in the directory fRunSheetDir from run number 'first' to 'last' (default values are 1 and 9999). Returns the number of run sheets actually read.
Definition at line 332 of file KVINDRARunSheetReader.cpp.
Read runsheet corresponding to run number 'run' Store the informations we read in the runsheet in the run database. Create TTree if required and if not already done Return kTRUE if all goes well.
Definition at line 110 of file KVINDRARunSheetReader.cpp.
Definition at line 90 of file KVINDRARunSheetReader.h.
Definition at line 105 of file KVINDRARunSheetReader.h.
Definition at line 82 of file KVINDRARunSheetReader.h.
|
inline |
Definition at line 116 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 59 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 61 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 61 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 59 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 59 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 58 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 61 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 61 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 61 of file KVINDRARunSheetReader.h.
|
private |
format string for run sheet file names
Definition at line 51 of file KVINDRARunSheetReader.h.
|
private |
temporary string holding full filename of current runsheet
Definition at line 52 of file KVINDRARunSheetReader.h.
|
private |
set to kTRUE if TTree is to be filled
Definition at line 54 of file KVINDRARunSheetReader.h.
|
private |
full path to directory holding run sheets
Definition at line 50 of file KVINDRARunSheetReader.h.
|
private |
scalers for tree
Definition at line 64 of file KVINDRARunSheetReader.h.
|
private |
zero-time for all run start/stop times
Definition at line 67 of file KVINDRARunSheetReader.h.
|
private |
TTree can be made and filled from info.
Definition at line 55 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 63 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 63 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 59 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 62 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 60 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 61 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 59 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 58 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 65 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 60 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 59 of file KVINDRARunSheetReader.h.