KaliVeda
Toolkit for HIC analysis
|
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 49 of file KVINDRARunSheetReader.h.
#include <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. | |
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 | |
TString | fFilePath |
temporary string holding full filename of current runsheet | |
Bool_t | fMakeTree |
set to kTRUE if TTree is to be filled | |
TString | fRunSheetDir |
full path to directory holding run sheets | |
Int_t | fScalers [1024] |
scalers for tree | |
UInt_t | fTIME_START |
zero-time for all run start/stop times | |
TTree * | fTree |
TTree can be made and filled from info. | |
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 |
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 75 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 87 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 79 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 113 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 102 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 91 of file KVINDRARunSheetReader.h.
Definition at line 106 of file KVINDRARunSheetReader.h.
Definition at line 83 of file KVINDRARunSheetReader.h.
|
inline |
Definition at line 117 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 60 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 62 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 60 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 62 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 62 of file KVINDRARunSheetReader.h.
|
private |
format string for run sheet file names
Definition at line 52 of file KVINDRARunSheetReader.h.
|
private |
temporary string holding full filename of current runsheet
Definition at line 53 of file KVINDRARunSheetReader.h.
|
private |
set to kTRUE if TTree is to be filled
Definition at line 55 of file KVINDRARunSheetReader.h.
|
private |
full path to directory holding run sheets
Definition at line 51 of file KVINDRARunSheetReader.h.
|
private |
scalers for tree
Definition at line 65 of file KVINDRARunSheetReader.h.
|
private |
zero-time for all run start/stop times
Definition at line 68 of file KVINDRARunSheetReader.h.
|
private |
TTree can be made and filled from info.
Definition at line 56 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 64 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 64 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 60 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 63 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 61 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 59 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 66 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 61 of file KVINDRARunSheetReader.h.
|
private |
Definition at line 60 of file KVINDRARunSheetReader.h.