Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Detectors/ZDC/simulation/include/ZDCSimulation/Detector.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@ class Detector : public o2::base::DetImpl<Detector>
ParticlePhotonResponse* mResponsesPtr = &mResponses;

// fast simulation (replaces geometry + transport when enabled via ZDCSimParam.useZDCFastSim)
bool mUseFastSim = false; //!
std::unique_ptr<FastSim> mFastSim; //!
std::vector<int> mFastSimIndices; //! indices of the primaries given to the model
std::vector<float> mFastSimInput; //! flat input of the model
bool mUseFastSim = false; //!
std::unique_ptr<FastSim> mFastSim; //!
std::vector<int> mFastSimIndices; //! indices of the primaries given to the model
std::vector<float> mFastSimInput; //! flat input of the model
std::vector<ULong_t> mFastSimSeeds; //! per-primary seeds of the model (SimCutParams.trackSeed only)
std::vector<float> mFastSimOutput; //! flat output of the model
size_t mFastSimNInvalid = 0; //! number of primaries with an invalid model output
std::vector<float> mFastSimOutput; //! flat output of the model
size_t mFastSimNInvalid = 0; //! number of primaries with an invalid model output

template <typename Det>
friend class o2::base::DetImpl;
Expand Down
2 changes: 1 addition & 1 deletion Detectors/ZDC/simulation/src/FastSim.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void FastSim::run(const std::vector<float>& conditions, int nParticles, std::vec
LOG(fatal) << "ZDC fast simulation: " << seeds.size() << " seeds for " << nParticles << " particles";
}
const bool hasUniform = mImpl->inputNames.size() > 2; // uniform numbers for the stochastic rounding done inside the model
auto* rnd = o2::base::simRandom(); // the generator of the transport of this thread
auto* rnd = o2::base::simRandom(); // the generator of the transport of this thread
mNoise.resize(size_t(nParticles) * FastSimModel::NOutputs);
mUniform.resize(hasUniform ? mNoise.size() : 0);
if (perParticleSeeds) {
Expand Down
Loading