SND@LHC Software
Loading...
Searching...
No Matches
RPCUnpack.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_RPCUNPACK_H
10#define ONLINE_RPCUNPACK_H
11
12#include "ShipUnpack.h"
13
14class TClonesArray;
15
16class RPCUnpack : public ShipUnpack {
17public:
18 RPCUnpack();
19
21 virtual ~RPCUnpack();
22
24 virtual Bool_t Init() override;
25
27 virtual Bool_t DoUnpack(Int_t *data, Int_t size) override;
28
30 virtual void Reset() override;
31
33 inline Int_t GetNHitsTotal() { return fNHitsTotal; }
34
35 uint16_t GetPartition() override { return fPartitionId; }
36
37protected:
39 virtual void Register() override;
40
41private:
42 std::unique_ptr<TClonesArray> fRawData;
43 Int_t fNHits;
45 uint16_t fPartitionId;
46
49
50public:
51 // Class definition
52 ClassDefOverride(RPCUnpack, 1)
53};
54
55#endif
std::unique_ptr< TClonesArray > fRawData
Definition RPCUnpack.h:42
RPCUnpack & operator=(const RPCUnpack &)
uint16_t fPartitionId
Definition RPCUnpack.h:45
virtual void Reset() override
virtual Bool_t Init() override
Definition RPCUnpack.cxx:59
Int_t GetNHitsTotal()
Definition RPCUnpack.h:33
Int_t fNHitsTotal
Definition RPCUnpack.h:44
Int_t fNHits
Definition RPCUnpack.h:43
RPCUnpack(const RPCUnpack &)
virtual void Register() override
Definition RPCUnpack.cxx:66
virtual ~RPCUnpack()
virtual Bool_t DoUnpack(Int_t *data, Int_t size) override
Definition RPCUnpack.cxx:77
uint16_t GetPartition() override
Definition RPCUnpack.h:35