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 
22  TString fRunsFile;
23  std::ifstream fRunsStream;
24  KVRunListLine* fLineReader;
25  TString fLine;
26  Char_t fComment;
27  Char_t fSeparator;
28  Int_t fCurrentLine;
29  Int_t fTrigger;
30  Bool_t fNewRunList;
31  Int_t fVersion;
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.
void SetRLCommentChar(Char_t c)
KVRunListLine * GetLineReader() const
Bool_t OpenRLFile(const Char_t *)
void ReadRunList(const Char_t *name="")
Int_t GetRunListTrigger(const Char_t *field, const Char_t *fmt)
void SetRLSeparatorChar(Char_t c)
virtual ~ KVINDRARunListReader()
Base class for reading runlists for experiments ,.
Definition: KVRunListLine.h:26