KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVINDRARunListReader.h
Go to the documentation of this file.
1 #ifndef __RUNLISTREADER_H__
2 #define __RUNLISTREADER_H__
3 
4 #include <TString.h>
5 #include <KVRunListLine.h>
6 #include <Riostream.h>
7 
18 
19 private:
20 
22  std::ifstream fRunsStream;
31 
32 public:
33 
35  {
36  return fNewRunList;
37  };
38 
41 
42  Bool_t OpenRLFile(const Char_t*);
43  void CloseRLFile();
45 
46  inline void SetRLCommentChar(Char_t c)
47  {
48  fComment = c;
49  };
50  inline void SetRLSeparatorChar(Char_t c)
51  {
52  fSeparator = c;
53  };
54 
55  void ReadRunList(const Char_t* name = "");
56 
57  virtual void GoodRunLine();
58 
60  {
61  return fLineReader;
62  };
63 
64  Int_t GetRunListTrigger(const Char_t* field, const Char_t* fmt);
65 
67  {
68  return fCurrentLine;
69  };
70 
71  ClassDef(KVINDRARunListReader, 1) //Utility base class for reading INDRA runlists
72 };
73 
74 #endif
int Int_t
#define c(i)
char Char_t
bool Bool_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:25