SND@LHC Software
Loading...
Searching...
No Matches
DummyUnpack.cxx
Go to the documentation of this file.
1// SHiP headers
2#include "DummyUnpack.h"
4#include "FairLogger.h"
5
6// DummyUnpack: Constructor
7DummyUnpack::DummyUnpack(uint16_t PartitionId) : fPartitionId(PartitionId) {}
8
9// Virtual DummyUnpack: Public method
11
12// Init: Public method
14{
15 Register();
16 return kTRUE;
17}
18
19// Register: Protected method
21
22// DoUnpack: Public method
23Bool_t DummyUnpack::DoUnpack(Int_t *data, Int_t size)
24{
25 LOG(INFO) << "DummyUnpack for PartitionId " << std::hex << fPartitionId << std::dec
26 << ": Unpacking frame... size/bytes = " << size;
27 auto df = reinterpret_cast<DataFrame *>(data);
28 switch (df->header.frameTime) {
29 case SoS: LOG(INFO) << "DummyUnpack: SoS frame."; return kTRUE;
30 case EoS: LOG(INFO) << "DummyUnpack: EoS frame."; return kTRUE;
31 default: break;
32 }
33
34 return kTRUE;
35}
36
37// Reset: Public method
39
virtual ~DummyUnpack()
virtual void Reset() override
DummyUnpack(uint16_t PartitionId)
virtual void Register() override
virtual Bool_t Init() override
uint16_t fPartitionId
Definition DummyUnpack.h:29
virtual Bool_t DoUnpack(Int_t *data, Int_t size) override
ClassImp(ecalContFact) ecalContFact