Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
OTFEventGeneratorDecay.h
1/*
2 * OTFReaderDecay.h
3 *
4 * Created on: 28 mar 2024
5 * Author: daniel
6 */
7
8#ifndef HAL_EXAMPLES_ONTHEFLY_GENERATORDECAY_H_
9#define HAL_EXAMPLES_ONTHEFLY_GENERATORDECAY_H_
10#include "Decay.h"
11#include "OTFReader.h"
12
13#include "OTFData.h"
14
15#include <vector>
16
17#include <Rtypes.h>
18#include <RtypesCore.h>
19#include <TH2.h>
20
21#include "OTFEventGenerator.h"
22
23namespace HalOTF {
24 class McEvent;
25 class RecoEvent;
26} /* namespace HalOTF */
27
28namespace HalOTF {
29
31 protected:
32 Hal::Decay* fDecayer = {nullptr};
33 std::vector<Hal::McTrack*> fDaughters;
34 virtual void Decay();
35 Bool_t fDebug = {kFALSE};
36 virtual void GenerateEvent();
37
38 public:
40 void EnableDebug() { fDebug = kTRUE; }
41 void SetDecay(Hal::Decay decay);
42 virtual Bool_t Init();
43 virtual ~EventGeneratorDecay();
44 ClassDef(EventGeneratorDecay, 1)
45 };
46} // namespace HalOTF
47
48#endif /* HAL_EXAMPLES_ONTHEFLY_READERDECAY_H_ */