Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
DbgReader.h
1/*
2 * DbgReader.h
3 *
4 * Created on: 28 maj 2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HAL_EXAMPLES_ONTHEFLY_DBGREADER_H_
10#define HAL_EXAMPLES_ONTHEFLY_DBGREADER_H_
11
12#include "Reader.h"
13
14#include "DbgData.h"
15
16#include <vector>
17
18#include <Rtypes.h>
19#include <RtypesCore.h>
20#include <TH2.h>
21
22namespace HalDbg {
23 class McEvent;
24 class RecoEvent;
25} /* namespace HalDbg */
26
30namespace HalDbg {
31 class Reader : public Hal::Reader {
32 protected:
33 TH2D* fSpectras = {nullptr};
34 Bool_t fOwner = {kFALSE};
35 Bool_t fRegister = {kFALSE};
36 Int_t fMultiplicity = {1};
37 Int_t fPids = {211};
38 Int_t fCharge = {1};
39 Int_t fCount = {0};
40 Int_t fModuloCount = {10};
41 Double_t fMass = {0.};
42 Double_t fSmear = {0};
43 Dbg::McEvent* fMcEvent = {nullptr};
44 Dbg::RecoEvent* fRecoEvent = {nullptr};
45
46
47 public:
48 Reader();
55 void SetSpiecies(const TH2D& h, Int_t pid, Double_t multiplicity);
56 void SetSmear(Double_t smear) { fSmear = smear; }
57 void Register(Bool_t reg) { fRegister = reg; }
58 void Exec(Option_t* opt);
59 void SetEventIdModulo(Int_t mod) { fModuloCount = mod; }
60 virtual Hal::Task::EInitFlag Init();
61 virtual ~Reader();
62 ClassDef(Reader, 1)
63 };
64} // namespace HalDbg
65#endif /* HAL_EXAMPLES_ONTHEFLY_DBGREADER_H_ */
void SetSpiecies(const TH2D &h, Int_t pid, Double_t multiplicity)
Definition DbgReader.cxx:51
virtual Hal::Task::EInitFlag Init()
Definition DbgReader.cxx:32