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
5
#include "
CbmLitRadLengthGenerator.h
"
6
7
#include "FairPrimaryGenerator.h"
8
9
CbmLitRadLengthGenerator::CbmLitRadLengthGenerator
() : FairGenerator(), fX(), fY() {}
10
11
Bool_t
CbmLitRadLengthGenerator::Init
() {
return
kTRUE; }
12
13
Bool_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
28
ClassImp
(
CbmLitRadLengthGenerator
)
ClassImp
ClassImp(CbmConverterManager)
CbmLitRadLengthGenerator.h
CbmLitRadLengthGenerator
Definition
CbmLitRadLengthGenerator.h:16
CbmLitRadLengthGenerator::fX
vector< Double_t > fX
Definition
CbmLitRadLengthGenerator.h:31
CbmLitRadLengthGenerator::fY
vector< Double_t > fY
Definition
CbmLitRadLengthGenerator.h:32
CbmLitRadLengthGenerator::Init
Bool_t Init()
Definition
CbmLitRadLengthGenerator.cxx:11
CbmLitRadLengthGenerator::ReadEvent
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Definition
CbmLitRadLengthGenerator.cxx:13
CbmLitRadLengthGenerator::CbmLitRadLengthGenerator
CbmLitRadLengthGenerator()
Definition
CbmLitRadLengthGenerator.cxx:9
reco
littrack
cbm
qa
radlength
CbmLitRadLengthGenerator.cxx
Generated on Sun Dec 22 2024 23:04:17 for CbmRoot by
1.12.0