KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVINDRARunSheetReader.h
1/*******************************************************************************
2$Id: KVINDRARunSheetReader.h,v 1.10 2007/10/24 14:10:26 franklan Exp $
3$Revision: 1.10 $
4$Date: 2007/10/24 14:10:26 $
5$Author: franklan $
6*******************************************************************************/
7
8#ifndef __KVINDRARUNSHEETREADER_H
9#define __KVINDRARUNSHEETREADER_H
10
11#include "KVString.h"
12#include "KVNumberList.h"
13#include "TTree.h"
14#include "KVDatime.h"
15#include "Riostream.h"
16
50
54
57
58 /***** temp variables used to read runsheet and (if required) fill TTree ******/
67
69
70 void init_vars();
71
72public:
73
74 KVINDRARunSheetReader(Bool_t make_tree = kFALSE);
75 virtual ~ KVINDRARunSheetReader()
76 {
77 };
78
80 {
81 return fRunSheetDir;
82 };
83 void SetRunSheetDir(const Char_t* dir)
84 {
85 fRunSheetDir = dir;
86 };
88 {
89 return fFileFormat;
90 };
91 void SetFileFormat(const Char_t* fmt)
92 {
93 fFileFormat = fmt;
94 };
96 Double_t GetNumberField(TString&, const Char_t* delim =
97 ":", int index = 1);
98 TString GetStringField(TString&, const Char_t* delim =
99 ":", int index = 1);
100 TString GetDateField(TString&, const Char_t* delim = ":");
101
103 {
104 return fMakeTree;
105 };
106 void SetMakeTree(Bool_t yes = kTRUE)
107 {
108 std::cout << "SetMakeTree called with yes=" << yes << std::endl;
109 fMakeTree = yes;
110 };
111 void CreateTree();
112
113 TTree* GetTree() const
114 {
115 return fTree;
116 };
117 void StartTreeViewer() const
118 {
119 if (fTree) fTree->StartViewer();
120 };
121
123 Int_t ReadAllRunSheets(Int_t first = 1, Int_t last = 9999);
124
125 ClassDef(KVINDRARunSheetReader, 0) //For reading run sheets of INDRA experiments
126};
127
128#endif
int Int_t
unsigned int UInt_t
bool Bool_t
char Char_t
double Double_t
#define ClassDef(name, id)
Extension of TDatime to handle various useful date formats.
Definition KVDatime.h:33
Read the run sheets produced by the standard INDRA acquisition control program.
TString fFileFormat
format string for run sheet file names
TString GetDateField(TString &, const Char_t *delim=":")
void init_vars()
Set values of all runsheet/TTree variables to 0.
Double_t GetNumberField(TString &, const Char_t *delim=":", int index=1)
const Char_t * GetRunSheetFileName(Int_t run)
TTree * fTree
TTree can be made and filled from info.
Int_t fScalers[1024]
scalers for tree
void SetMakeTree(Bool_t yes=kTRUE)
const Char_t * GetRunSheetDir()
Int_t ReadAllRunSheets(Int_t first=1, Int_t last=9999)
Bool_t fMakeTree
set to kTRUE if TTree is to be filled
TString fFilePath
temporary string holding full filename of current runsheet
UInt_t fTIME_START
zero-time for all run start/stop times
TString fRunSheetDir
full path to directory holding run sheets
TString GetStringField(TString &, const Char_t *delim=":", int index=1)
void SetFileFormat(const Char_t *fmt)
void SetRunSheetDir(const Char_t *dir)
virtual void StartViewer()