SND@LHC Software
Loading...
Searching...
No Matches
PixelUnpack.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_PIXELUNPACK_H
10#define ONLINE_PIXELUNPACK_H
11
12#include "ShipUnpack.h"
13
14class TClonesArray;
15
16class PixelUnpack : public ShipUnpack {
17public:
18 PixelUnpack(uint16_t PartitionId);
19
21 virtual ~PixelUnpack();
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 TClonesArray *fRawData;
43 Int_t fNHits;
45 uint16_t fPartitionId;
46
49
50public:
51 // Class definition
52 ClassDefOverride(PixelUnpack, 1)
53};
54
55#endif
PixelUnpack & operator=(const PixelUnpack &)
uint16_t GetPartition() override
Definition PixelUnpack.h:35
Int_t fNHitsTotal
Definition PixelUnpack.h:44
Int_t GetNHitsTotal()
Definition PixelUnpack.h:33
PixelUnpack(const PixelUnpack &)
virtual void Register() override
uint16_t fPartitionId
Definition PixelUnpack.h:45
virtual Bool_t DoUnpack(Int_t *data, Int_t size) override
virtual void Reset() override
virtual ~PixelUnpack()
virtual Bool_t Init() override
TClonesArray * fRawData
Definition PixelUnpack.h:42