CbmRoot
Loading...
Searching...
No Matches
CbmLitRadLengthGenerator.cxx
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
6
7#include "FairPrimaryGenerator.h"
8
9CbmLitRadLengthGenerator::CbmLitRadLengthGenerator() : FairGenerator(), fX(), fY() {}
10
11Bool_t CbmLitRadLengthGenerator::Init() { return kTRUE; }
12
13Bool_t CbmLitRadLengthGenerator::ReadEvent(FairPrimaryGenerator* primGen)
14{
15 static UInt_t eventNo = 0;
16
17 if (eventNo < fX.size() && eventNo < fY.size()) {
18 primGen->AddTrack(0, 0, 0, 1, fX[eventNo], fY[eventNo], 0);
19 }
20 else {
21 }
22
23 eventNo++;
24
25 return kTRUE;
26}
27
ClassImp(CbmConverterManager)
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)