CbmRoot
Loading...
Searching...
No Matches
CbmLitRadLengthGenerator.h
Go to the documentation of this file.
1/* Copyright (C) 2013 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
5#ifndef CBMLITRADLENGTHGENERATOR_H_
6#define CBMLITRADLENGTHGENERATOR_H_
7
8#include "FairGenerator.h"
9
10#include <vector>
11
12class FairPrimaryGenerator;
13
14using std::vector;
15
16class CbmLitRadLengthGenerator : public FairGenerator {
17 public:
19
20 void SetXY(const vector<Double_t>& x, const vector<Double_t>& y)
21 {
22 fX = x;
23 fY = y;
24 }
25
26 Bool_t Init();
27
28 virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
29
30 private:
31 vector<Double_t> fX; // Vector with X, Y start coordinates for each event
32 vector<Double_t> fY;
33
35};
36
37#endif
void SetXY(const vector< Double_t > &x, const vector< Double_t > &y)
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
ClassDef(CbmLitRadLengthGenerator, 1)