FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMBSUnpacker.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 #ifndef FAIRMBSUNPACKER_H
10 #define FAIRMBSUNPACKER_H
11 
12 #include "FairUnpack.h"
13 
14 #include <Rtypes.h>
15 
16 class TClonesArray;
17 
22 {
23  public:
25  FairMBSUnpacker(Short_t type = 94,
26  Short_t subType = 9400,
27  Short_t procId = 10,
28  Short_t subCrate = 1,
29  Short_t control = 3);
30 
32  virtual ~FairMBSUnpacker();
33 
35  virtual Bool_t Init();
36 
38  virtual Bool_t DoUnpack(Int_t* data, Int_t size);
39 
41  virtual void Reset();
42 
44  Int_t GetNHitsTotal() { return fNHitsTotal; }
45 
46  TClonesArray* GetOutputData() { return fRawData; }
47 
48  protected:
50  virtual void Register() {}
51 
52  private:
53  TClonesArray* fRawData;
54  Int_t fNHits;
55  Int_t fNHitsTotal;
59  FairMBSUnpacker operator=(const FairMBSUnpacker&);
60 
61  public:
62  // Class definition
64 };
65 
66 #endif
virtual Bool_t DoUnpack(Int_t *data, Int_t size)
FairMBSUnpacker(Short_t type=94, Short_t subType=9400, Short_t procId=10, Short_t subCrate=1, Short_t control=3)
TClonesArray * GetOutputData()
virtual Bool_t Init()
virtual ~FairMBSUnpacker()
virtual void Reset()
ClassDef(FairMBSUnpacker, 1)
virtual void Register()