SND@LHC Software
Loading...
Searching...
No Matches
ShipUnpack.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 version 3 (LGPL) version 3, *
6 * copied verbatim in the file "LICENSE" *
7 ********************************************************************************/
8
9#ifndef ONLINE_SHIPUNPACK_H
10#define ONLINE_SHIPUNPACK_H
11
12#include "FairUnpack.h"
13#include <memory>
14
15class TClonesArray;
16
20class ShipUnpack : public FairUnpack {
21
22public:
23 ShipUnpack();
24
26 virtual ~ShipUnpack();
27
29 virtual Bool_t Init() override;
30
32 virtual Bool_t DoUnpack(Int_t *data, Int_t size) override;
33
35 virtual void Reset() override;
36
38 inline Int_t GetNHitsTotal() { return fNHitsTotal; }
39
40 virtual uint16_t GetPartition() = 0;
41
42protected:
44 virtual void Register() override;
45
46private:
47 std::unique_ptr<TClonesArray> fRawData;
48 Int_t fNHits;
50 uint16_t fPartitionId;
51
54
55public:
56 // Class definition
57 ClassDefOverride(ShipUnpack, 1)
58};
59
60#endif
uint16_t fPartitionId
Definition ShipUnpack.h:50
ShipUnpack & operator=(const ShipUnpack &)
Int_t GetNHitsTotal()
Definition ShipUnpack.h:38
Int_t fNHits
Definition ShipUnpack.h:48
virtual Bool_t Init() override
virtual void Reset() override
virtual void Register() override
virtual ~ShipUnpack()
Int_t fNHitsTotal
Definition ShipUnpack.h:49
std::unique_ptr< TClonesArray > fRawData
Definition ShipUnpack.h:47
virtual Bool_t DoUnpack(Int_t *data, Int_t size) override
virtual uint16_t GetPartition()=0
ShipUnpack(const ShipUnpack &)