SND@LHC Software
Loading...
Searching...
No Matches
DriftTubeUnpack.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_DRIFTTUBEUNPACK_H
10#define ONLINE_DRIFTTUBEUNPACK_H
11
12#include "ShipUnpack.h"
13#include "TClonesArray.h"
14
15class TClonesArray;
16
18public:
20
21 DriftTubeUnpack(bool charm);
22
25
27 virtual Bool_t Init() override;
28
30 virtual Bool_t DoUnpack(Int_t *data, Int_t size) override;
31
33 virtual void Reset() override;
34
35 uint16_t GetPartition() override { return fPartitionId; }
36
37protected:
39 virtual void Register() override;
40
41private:
42 std::unique_ptr<TClonesArray> fRawTubes{new TClonesArray("MufluxSpectrometerHit")};
43 std::unique_ptr<TClonesArray> fRawLateTubes{new TClonesArray("MufluxSpectrometerHit")};
44 std::unique_ptr<TClonesArray> fRawScintillator{new TClonesArray("ScintillatorHit")};
45 std::unique_ptr<TClonesArray> fRawBeamCounter{new TClonesArray("ScintillatorHit")};
46 std::unique_ptr<TClonesArray> fRawMasterTrigger{new TClonesArray("ScintillatorHit")};
47 std::unique_ptr<TClonesArray> fRawTriggers{new TClonesArray("ScintillatorHit")};
48 uint16_t fPartitionId = 0x0C00;
49 bool fCharm = false;
50
53
54public:
55 // Class definition
56 ClassDefOverride(DriftTubeUnpack, 1)
57};
58
59#endif
std::unique_ptr< TClonesArray > fRawMasterTrigger
std::unique_ptr< TClonesArray > fRawBeamCounter
virtual Bool_t Init() override
virtual Bool_t DoUnpack(Int_t *data, Int_t size) override
uint16_t GetPartition() override
DriftTubeUnpack(const DriftTubeUnpack &)
virtual void Register() override
std::unique_ptr< TClonesArray > fRawTriggers
std::unique_ptr< TClonesArray > fRawTubes
DriftTubeUnpack & operator=(const DriftTubeUnpack &)
virtual ~DriftTubeUnpack()
std::unique_ptr< TClonesArray > fRawLateTubes
virtual void Reset() override
std::unique_ptr< TClonesArray > fRawScintillator