CbmRoot
CbmLitRadLengthGenerator.cxx
Go to the documentation of this file.
2 
3 #include "FairPrimaryGenerator.h"
4 
6  : FairGenerator(), fX(), fY() {}
7 
8 Bool_t CbmLitRadLengthGenerator::Init() { return kTRUE; }
9 
10 Bool_t CbmLitRadLengthGenerator::ReadEvent(FairPrimaryGenerator* primGen) {
11  static Int_t eventNo = 0;
12 
13  if (eventNo < fX.size() && eventNo < fY.size()) {
14  primGen->AddTrack(0, 0, 0, 1, fX[eventNo], fY[eventNo], 0);
15  } else {
16  }
17 
18  eventNo++;
19 
20  return kTRUE;
21 }
22 
CbmLitRadLengthGenerator::ReadEvent
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Definition: CbmLitRadLengthGenerator.cxx:10
CbmLitRadLengthGenerator::fX
vector< Double_t > fX
Definition: CbmLitRadLengthGenerator.h:25
CbmLitRadLengthGenerator::CbmLitRadLengthGenerator
CbmLitRadLengthGenerator()
Definition: CbmLitRadLengthGenerator.cxx:5
CbmLitRadLengthGenerator::fY
vector< Double_t > fY
Definition: CbmLitRadLengthGenerator.h:26
CbmLitRadLengthGenerator::Init
Bool_t Init()
Definition: CbmLitRadLengthGenerator.cxx:8
CbmLitRadLengthGenerator
Definition: CbmLitRadLengthGenerator.h:11
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition: CbmConverterManager.cxx:12
CbmLitRadLengthGenerator.h