CbmRoot
NicaUnigenSource.h
Go to the documentation of this file.
1 /*
2  * NicaUnigenSource.h
3  *
4  * Created on: 27 mar 2017
5  * Author: Daniel Wielanek
6  * E-mail: daniel.wielanek@gmail.com
7  * Warsaw University of Technology, Faculty of Physics
8  */
9 #ifndef NICAUNIGENSOURCE_H_
10 #define NICAUNIGENSOURCE_H_
11 
14 #include "FairFileSource.h"
15 #include <TChain.h>
16 
17 #include "UEvent.h"
18 class NicaUnigenSource : public FairSource {
19  TChain* fUnigenChain;
20  TString fFileName;
22 
23 public:
32  NicaUnigenSource(TString inFile);
37  NicaUnigenSource(const NicaUnigenSource& source) = delete;
39  virtual void Boost(Double_t vx, Double_t vy, Double_t vz);
40  virtual ~NicaUnigenSource();
41  virtual Bool_t Init();
42  virtual Int_t ReadEvent(UInt_t = 0);
43  virtual void Close();
44  virtual void Reset() {};
45  virtual Bool_t ActivateObject(TObject**, const char*) { return kFALSE; }
46  virtual Source_Type GetSourceType() { return kFILE; };
47  virtual void SetParUnpackers() {};
48  virtual Bool_t InitUnpackers() { return kTRUE; };
49  virtual Bool_t ReInitUnpackers() { return kTRUE; };
50  virtual Int_t CheckMaxEventNo(Int_t = 0);
51  virtual void ReadBranchEvent(const char* /*BrName*/) {};
52  virtual void ReadBranchEvent(const char* /*BrName*/, Int_t /*Event*/) {};
53  virtual void FillEventHeader(FairEventHeader* /*feh*/) {};
54  void SetRunId(Int_t runId) { fRunId = runId; }
55  Int_t GetRunId() const { return fRunId; }
56  ClassDef(NicaUnigenSource, 1)
57 };
58 
59 #endif /* NICAUNIGENSOURCE_H_ */
NicaUnigenSource
Definition: NicaUnigenSource.h:18
NicaUnigenSource::ActivateObject
virtual Bool_t ActivateObject(TObject **, const char *)
Definition: NicaUnigenSource.h:45
NicaUnigenSource::NicaUnigenSource
NicaUnigenSource(const NicaUnigenSource &source)=delete
NicaUnigenSource::CheckMaxEventNo
virtual Int_t CheckMaxEventNo(Int_t=0)
Definition: NicaUnigenSource.cxx:86
NicaUnigenSource::FillEventHeader
virtual void FillEventHeader(FairEventHeader *)
Definition: NicaUnigenSource.h:53
NicaUnigenSource::fEvent
UEvent * fEvent
Definition: NicaUnigenSource.h:21
NicaUnigenSource::~NicaUnigenSource
virtual ~NicaUnigenSource()
Definition: NicaUnigenSource.cxx:24
NicaUnigenSource::Close
virtual void Close()
Definition: NicaUnigenSource.cxx:72
NicaUnigenSource::SetRunId
void SetRunId(Int_t runId)
Definition: NicaUnigenSource.h:54
NicaUnigenSource::fFileName
TString fFileName
Definition: NicaUnigenSource.h:20
NicaUnigenSource::GetRunId
Int_t GetRunId() const
Definition: NicaUnigenSource.h:55
UEvent
Definition: UEvent.h:12
NicaUnigenSource::ReInitUnpackers
virtual Bool_t ReInitUnpackers()
Definition: NicaUnigenSource.h:49
UEvent.h
NicaUnigenSource::Reset
virtual void Reset()
Definition: NicaUnigenSource.h:44
NicaUnigenSource::GetSourceType
virtual Source_Type GetSourceType()
Definition: NicaUnigenSource.h:46
NicaUnigenSource::SetParUnpackers
virtual void SetParUnpackers()
Definition: NicaUnigenSource.h:47
NicaUnigenSource::ReadBranchEvent
virtual void ReadBranchEvent(const char *, Int_t)
Definition: NicaUnigenSource.h:52
NicaUnigenSource::operator=
NicaUnigenSource & operator=(const NicaUnigenSource &)=delete
NicaUnigenSource::Boost
virtual void Boost(Double_t vx, Double_t vy, Double_t vz)
Definition: NicaUnigenSource.cxx:74
NicaUnigenSource::InitUnpackers
virtual Bool_t InitUnpackers()
Definition: NicaUnigenSource.h:48
NicaUnigenSource::fUnigenChain
TChain * fUnigenChain
Definition: NicaUnigenSource.h:19
NicaUnigenSource::ReadEvent
virtual Int_t ReadEvent(UInt_t=0)
Definition: NicaUnigenSource.cxx:65
NicaUnigenSource::ReadBranchEvent
virtual void ReadBranchEvent(const char *)
Definition: NicaUnigenSource.h:51
NicaUnigenSource::NicaUnigenSource
NicaUnigenSource()
Definition: NicaUnigenSource.cxx:18
NicaUnigenSource::Init
virtual Bool_t Init()
Definition: NicaUnigenSource.cxx:28