CbmRoot
Loading...
Searching...
No Matches
CbmSourceDummy.h
Go to the documentation of this file.
1/* Copyright (C) 2024 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Felix Weiglhofer [committer] */
4
5#pragma once
6
7#include <FairSource.h>
8
20class CbmSourceDummy : public FairSource {
21
22 public:
23 CbmSourceDummy() = default;
24
26 virtual ~CbmSourceDummy() = default;
27
28
30 virtual void Close() {}
31
32
34 virtual Source_Type GetSourceType() { return kFILE; }
35
36
38 virtual Bool_t Init() { return true; }
39
40
42 virtual Bool_t InitUnpackers() { return kTRUE; }
43
44
46 virtual Int_t ReadEvent(UInt_t = 0) { return 0; }
47
48
50 virtual Bool_t ReInitUnpackers() { return kTRUE; }
51
52
54 virtual void Reset() {}
55
56
58 virtual void SetParUnpackers() {}
59
60
62 virtual Bool_t SpecifyRunId() { return kTRUE; }
63};
Dummy input FAIR source. Doesn't create any branches or data.
virtual void Close()
Demanded by base class.
virtual ~CbmSourceDummy()=default
Destructor.
virtual Source_Type GetSourceType()
Demanded by base class.
virtual void SetParUnpackers()
Demanded by base class.
virtual Bool_t Init()
Initialisation.
CbmSourceDummy()=default
virtual void Reset()
Demanded by base class.
virtual Bool_t SpecifyRunId()
Demanded by base class.
virtual Bool_t InitUnpackers()
Demanded by base class.
virtual Bool_t ReInitUnpackers()
Demanded by base class.
virtual Int_t ReadEvent(UInt_t=0)
Demanded by base class.