FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMbsSource.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 // ----- FairMbsSource -----
11 // ----- Created 12.04.2013 by D.Kresan -----
12 // ----- Copied from FairSource 01.11.2013 by F.Uhlig -----
13 // ----- -----
14 // -----------------------------------------------------------------------------
15 
16 #ifndef FAIRMBSSOURCE_H
17 #define FAIRMBSSOURCE_H
18 
19 #include "FairOnlineSource.h"
20 
21 #include <Rtypes.h>
22 
24 {
25  public:
26  FairMbsSource();
27  FairMbsSource(const FairMbsSource& source);
28  virtual ~FairMbsSource();
29 
30  virtual Bool_t Init() = 0;
31  virtual Int_t ReadEvent(UInt_t = 0) = 0;
32  virtual void Close() = 0;
33 
34  protected:
35  Bool_t Unpack(Int_t* data,
36  Int_t size,
37  Short_t type,
38  Short_t subType,
39  Short_t procId,
40  Short_t subCrate,
41  Short_t control);
42 
44 };
45 
46 #endif
Bool_t Unpack(Int_t *data, Int_t size, Short_t type, Short_t subType, Short_t procId, Short_t subCrate, Short_t control)
virtual Int_t ReadEvent(UInt_t=0)=0
virtual ~FairMbsSource()
virtual Bool_t Init()=0
virtual void Close()=0
ClassDef(FairMbsSource, 0)