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
19
namespace
OTF {
20
class
McEvent;
21
class
RecoEvent;
22
}
/* namespace OTF */
23
24
class
TH1D;
25
class
TH2D;
26
27
namespace
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
:
46
EventGenerator
();
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_ */
HalOTF::EventGenerator
Definition
OTFEventGenerator.h:29
HalOTF::EventGenerator::SetSpiecies
void SetSpiecies(const TH2D &h, Int_t pid)
Definition
OTFEventGenerator.cxx:63
HalOTF::EventGenerator::SetFixMult
void SetFixMult(Int_t mult)
Definition
OTFEventGenerator.cxx:84
HalOTF::EventGenerator::SetMultHisto
void SetMultHisto(TH1D &h)
Definition
OTFEventGenerator.cxx:78
HalOTF::Source
Definition
OTFSource.h:31
Hal::Object
Definition
Object.h:28
OTF::McEvent
Definition
OTFData.h:91
OTF::RecoEvent
Definition
OTFData.h:72
HalOTF
Definition
OTFComplexEvent.cxx:17
examples
onthefly
OTFEventGenerator.h
Generated on Wed Oct 23 2024 15:07:52 for Heavy ion Analysis Libriares by
1.12.0