ROOT logo
#ifndef HLDSTACKSOURCE_H
#define HLDSTACKSOURCE_H

#include "hldsource.h"
#include "hrecevent.h"
#include "TString.h"

class HldStackSource : public HldSource {

   protected:
      Int_t    refId;              // Reference run id for initialization
      TString  fileName;           // dummy filename composed from time
      Int_t    runId;              // store runId to compare in next event
      Bool_t   event_already_read; //!< mark that we already read event
      TIterator * iter;
      Bool_t   fDummyMode;             //

   public:
      HldStackSource(void);
      ~HldStackSource(void);
      virtual Bool_t   init();
      virtual Int_t    getCurrentRunId(void);
      virtual Int_t    getCurrentRefId(void) {return refId;}
      virtual EDsState getNextEvent(Bool_t doUnpack=kTRUE);
      virtual Text_t const *getCurrentFileName(void) {return fileName.Data();}

      void        setDummyMode(Bool_t dummy = kTRUE) {fDummyMode = dummy;}
      void        setRefId   (Int_t r) { refId=r; }
      void        setRunId   (Int_t r) { runId=r; }
      void        setFileName(TString name) { fileName=name; }
      void        setEvent(HRecEvent* ev);
      ClassDef(HldStackSource,0) //Data source to read hld events from a stack;
};

#endif /* !HLDSTACKSOURCE_H */
 hldstacksource.h:1
 hldstacksource.h:2
 hldstacksource.h:3
 hldstacksource.h:4
 hldstacksource.h:5
 hldstacksource.h:6
 hldstacksource.h:7
 hldstacksource.h:8
 hldstacksource.h:9
 hldstacksource.h:10
 hldstacksource.h:11
 hldstacksource.h:12
 hldstacksource.h:13
 hldstacksource.h:14
 hldstacksource.h:15
 hldstacksource.h:16
 hldstacksource.h:17
 hldstacksource.h:18
 hldstacksource.h:19
 hldstacksource.h:20
 hldstacksource.h:21
 hldstacksource.h:22
 hldstacksource.h:23
 hldstacksource.h:24
 hldstacksource.h:25
 hldstacksource.h:26
 hldstacksource.h:27
 hldstacksource.h:28
 hldstacksource.h:29
 hldstacksource.h:30
 hldstacksource.h:31
 hldstacksource.h:32
 hldstacksource.h:33
 hldstacksource.h:34
 hldstacksource.h:35