FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMBSUnpack.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 FAIRMBSUNPACK_H
10 #define FAIRMBSUNPACK_H
11 
12 #include "FairUnpack.h"
13 
14 #include <Rtypes.h>
15 
16 class TClonesArray;
17 
21 class FairMBSUnpack : public FairUnpack
22 {
23  public:
25  FairMBSUnpack(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 ~FairMBSUnpack();
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  protected:
48  virtual void Register();
49 
50  private:
51  TClonesArray* fRawData;
52  Int_t fNHits;
53  Int_t fNHitsTotal;
56  FairMBSUnpack& operator=(const FairMBSUnpack&);
57 
58  public:
59  // Class definition
61 };
62 
63 #endif
virtual Bool_t DoUnpack(Int_t *data, Int_t size)
FairMBSUnpack(Short_t type=94, Short_t subType=9400, Short_t procId=10, Short_t subCrate=1, Short_t control=3)
Int_t GetNHitsTotal()
Definition: FairMBSUnpack.h:44
virtual Bool_t Init()
virtual void Register()
virtual void Reset()
virtual ~FairMBSUnpack()
ClassDef(FairMBSUnpack, 1)