CbmRoot
Loading...
Searching...
No Matches
CbmSinkDummy.h
Go to the documentation of this file.
1/* Copyright (C) 2023-2024 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergei Zharko [committer] */
4
9
10#pragma once
11
12#include <FairSink.h>
13
16class CbmSinkDummy : public FairSink {
17 public:
19 CbmSinkDummy() = default;
20
22 CbmSinkDummy(const CbmSinkDummy&) = default;
23
26
28 ~CbmSinkDummy() = default;
29
32
35
36 // FairSink virtual function implementations
37 Bool_t InitSink() { return kTRUE; }
38 void Close() {}
39 void Reset() {}
40 Sink_Type GetSinkType() { return kFILESINK; }
41 void SetOutTree(TTree*) {}
42 void Fill() {}
43 Int_t Write(const char*, Int_t, Int_t) { return 0; }
44 void RegisterImpl(const char*, const char*, void*) {}
45 void RegisterAny(const char*, const std::type_info&, const std::type_info&, void*) {}
46 void WriteFolder() {}
47 bool CreatePersistentBranchesAny() { return true; }
48 void WriteObject(TObject*, const char*, Int_t) {}
49 void WriteGeometry() {} // TODO: if(gGeoManager) gGeoManager->Write();
50 FairSink* CloneSink() { return new CbmSinkDummy(*this); }
51};
A dummy sink class, which is to be passed to a FairRunAna, if no output is required.
void SetOutTree(TTree *)
Sink_Type GetSinkType()
CbmSinkDummy()=default
Default constructor.
void RegisterAny(const char *, const std::type_info &, const std::type_info &, void *)
bool CreatePersistentBranchesAny()
~CbmSinkDummy()=default
Destructor.
Int_t Write(const char *, Int_t, Int_t)
void RegisterImpl(const char *, const char *, void *)
FairSink * CloneSink()
void WriteObject(TObject *, const char *, Int_t)
CbmSinkDummy & operator=(const CbmSinkDummy &)=default
Copy assignment operator.
void WriteFolder()
CbmSinkDummy(const CbmSinkDummy &)=default
Copy constructor.
void WriteGeometry()
CbmSinkDummy(CbmSinkDummy &&)=default
Move constructor.
Bool_t InitSink()
CbmSinkDummy & operator=(CbmSinkDummy &&)=default
Copy assignment operator.