FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairLmdSource.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -----------------------------------------------------------------------------
9 // ----- -----
10 // ----- FairLmdSource -----
11 // ----- Created 12.04.2013 by D.Kresan -----
12 // -----------------------------------------------------------------------------
13 
14 #ifndef FAIRLMDSOURCE_H
15 #define FAIRLMDSOURCE_H
16 
17 extern "C"
18 {
19 #include "f_evt.h"
20 #include "s_bufhe_swap.h"
21 #include "s_filhe_swap.h"
22 }
23 
24 #include "FairMbsSource.h"
25 
26 #include <Rtypes.h>
27 #include <TString.h>
28 
29 class TList;
30 
32 {
33  public:
34  FairLmdSource();
35  FairLmdSource(const FairLmdSource& source);
36  virtual ~FairLmdSource();
37 
38  void AddFile(TString fileName);
39  void AddPath(TString dir, TString wildCard);
40  inline Int_t GetCurrentFile() const { return fCurrentFile; }
41  inline const TList* GetFileNames() const { return fFileNames; }
42 
43  virtual Bool_t Init();
44  virtual Int_t ReadEvent(UInt_t = 0);
45  virtual void Close();
46  Bool_t SpecifyRunId()
47  {
48  ReadEvent(0);
49  return true;
50  };
51 
52  protected:
53  Bool_t OpenNextFile(TString fileName);
54 
55  Int_t fCurrentFile;
56  Int_t fNEvent;
58  TList* fFileNames;
62  Int_t* fxEventData;
65 
67 
69 };
70 
71 #endif
s_filhe * fxInfoHeader
Definition: FairLmdSource.h:64
s_ve10_1 * fxEvent
Definition: FairLmdSource.h:60
ClassDef(FairLmdSource, 0)
const TList * GetFileNames() const
Definition: FairLmdSource.h:41
Int_t fCurrentEvent
Definition: FairLmdSource.h:57
TList * fFileNames
Definition: FairLmdSource.h:58
virtual ~FairLmdSource()
void AddFile(TString fileName)
Bool_t SpecifyRunId()
Definition: FairLmdSource.h:46
Int_t * fxEventData
Definition: FairLmdSource.h:62
Bool_t OpenNextFile(TString fileName)
virtual Int_t ReadEvent(UInt_t=0)
Int_t GetCurrentFile() const
Definition: FairLmdSource.h:40
void AddPath(TString dir, TString wildCard)
virtual Bool_t Init()
FairLmdSource & operator=(const FairLmdSource &)
s_ves10_1 * fxSubEvent
Definition: FairLmdSource.h:63
Int_t fCurrentFile
Definition: FairLmdSource.h:55
s_bufhe * fxBuffer
Definition: FairLmdSource.h:61
s_evt_channel * fxInputChannel
Definition: FairLmdSource.h:59
virtual void Close()