KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVINDRARunListReader.h
1#ifndef __RUNLISTREADER_H__
2#define __RUNLISTREADER_H__
3
4#include <TString.h>
5#include <KVRunListLine.h>
6#include <Riostream.h>
7
19
20private:
21
23 std::ifstream fRunsStream;
32
33public:
34
36 {
37 return fNewRunList;
38 };
39
41 virtual ~ KVINDRARunListReader();
42
43 Bool_t OpenRLFile(const Char_t*);
44 void CloseRLFile();
46
47 inline void SetRLCommentChar(Char_t c)
48 {
49 fComment = c;
50 };
52 {
53 fSeparator = c;
54 };
55
56 void ReadRunList(const Char_t* name = "");
57
58 virtual void GoodRunLine();
59
61 {
62 return fLineReader;
63 };
64
65 Int_t GetRunListTrigger(const Char_t* field, const Char_t* fmt);
66
68 {
69 return fCurrentLine;
70 };
71
72 ClassDef(KVINDRARunListReader, 1) //Utility base class for reading INDRA runlists
73};
74
75#endif
int Int_t
#define c(i)
bool Bool_t
char Char_t
#define ClassDef(name, id)
Utitlity base class for reading INDRA runlist files.
std::ifstream fRunsStream
input file stream
Bool_t fNewRunList
flag set when reading new ("Version=10") runlist
Int_t fCurrentLine
number of line in runlist file we are currently analysing
void SetRLCommentChar(Char_t c)
Bool_t OpenRLFile(const Char_t *)
TString fRunsFile
name of file to read
void ReadRunList(const Char_t *name="")
Char_t fComment
character placed at beginning of comment lines
Int_t GetRunListTrigger(const Char_t *field, const Char_t *fmt)
Int_t fTrigger
last multiplicity trigger read from file
KVRunListLine * GetLineReader() const
KVRunListLine * fLineReader
object used to analyse lines in file
void SetRLSeparatorChar(Char_t c)
Char_t fSeparator
character used to separate fields on each line of file
Int_t fVersion
version number of new runlist
TString fLine
last line read from file
Base class for reading runlists for experiments ,.