KaliVeda
Toolkit for HIC analysis
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 
20 private:
21 
23  std::ifstream fRunsStream;
32 
33 public:
34 
36  {
37  return fNewRunList;
38  };
39 
42 
43  Bool_t OpenRLFile(const Char_t*);
44  void CloseRLFile();
46 
47  inline void SetRLCommentChar(Char_t c)
48  {
49  fComment = c;
50  };
51  inline void SetRLSeparatorChar(Char_t c)
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)
KVRunListLine * GetLineReader() const
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 * 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
virtual ~ KVINDRARunListReader()
Int_t fVersion
version number of new runlist
TString fLine
last line read from file
Base class for reading runlists for experiments ,.
Definition: KVRunListLine.h:26