SND@LHC Software
Loading...
Searching...
No Matches
ScalerUnpack.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_SCALERUNPACK_H
10#define ONLINE_SCALERUNPACK_H
11
12#include "ShipUnpack.h"
13
14class FairRootManager;
15class TTree;
16
17class ScalerUnpack : public ShipUnpack {
18public:
20
22 virtual ~ScalerUnpack();
23
25 virtual Bool_t Init() override;
26
28 virtual Bool_t DoUnpack(Int_t *data, Int_t size) override;
29
31 virtual void Reset() override;
32
33 uint16_t GetPartition() override { return fPartitionId; }
34
35protected:
37 virtual void Register() override;
38
39private:
40 uint16_t fPartitionId = 0x8100;
41 FairRootManager *fMan = nullptr;
42 TTree *tree = nullptr;
43 int fDavid = 0;
44 int fGoliath = 0;
45
48
49public:
50 // Class definition
51 ClassDefOverride(ScalerUnpack, 1)
52};
53
54#endif
virtual void Register() override
virtual Bool_t DoUnpack(Int_t *data, Int_t size) override
FairRootManager * fMan
ScalerUnpack & operator=(const ScalerUnpack &)
ScalerUnpack(const ScalerUnpack &)
uint16_t fPartitionId
virtual ~ScalerUnpack()
virtual Bool_t Init() override
uint16_t GetPartition() override
virtual void Reset() override