Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
OTFEventGenerator.h
1/*
2 * OTFGenerator.h
3 *
4 * Created on: 3 lip 2024
5 * Author: daniel
6 */
7
8#ifndef HAL_EXAMPLES_ONTHEFLY_OTFEVENTGENERATOR_H_
9#define HAL_EXAMPLES_ONTHEFLY_OTFEVENTGENERATOR_H_
10
11#include <Rtypes.h>
12#include <RtypesCore.h>
13#include <TH2.h>
14#include <TString.h>
15
16#include "Object.h"
17#include "Task.h"
18
19namespace OTF {
20 class McEvent;
21 class RecoEvent;
22} /* namespace OTF */
23
24class TH1D;
25class TH2D;
26
27namespace HalOTF {
28 class Source;
29 class EventGenerator : public Hal::Object {
30 friend class HalOTF::Source;
31
32 protected:
33 TH2D* fSpectras = {nullptr};
34 TH1D* fMultiplicity = {nullptr};
35 Int_t fFixedMultiplicity = {-1};
36 Int_t fPids = {211};
37 Int_t fCharge = {1};
38 Int_t fCurrrentMult = {0};
39 Double_t fMass = {0};
40 Double_t fSmear = {0};
41 OTF::McEvent* fMcEvent = {nullptr};
42 OTF::RecoEvent* fRecoEvent = {nullptr};
43 virtual void GenerateEvent();
44
45 public:
53 void SetSpiecies(const TH2D& h, Int_t pid);
58 void SetMultHisto(TH1D& h);
60 void SetFixMult(Int_t mult);
61 void SetSmear(Double_t smear) { fSmear = smear; }
62 void SetEvents(OTF::McEvent* mc, OTF::RecoEvent* reco) {
63 fRecoEvent = reco;
64 fMcEvent = mc;
65 }
66 virtual Bool_t Init();
67 virtual ~EventGenerator();
68 ClassDef(EventGenerator, 1)
69 };
70
71} // namespace HalOTF
72
73#endif /* HAL_EXAMPLES_ONTHEFLY_OTFEVENTGENERATOR_H_ */
void SetSpiecies(const TH2D &h, Int_t pid)