Skip to content
Merged
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
13 changes: 13 additions & 0 deletions Detectors/TPC/simulation/src/Detector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

#include "DetectorsBase/MaterialManager.h"
#include "TPCSimulation/Detector.h"
#include "TPCSimulation/Point.h"
#include "TPCBase/ParameterGas.h"
Expand Down Expand Up @@ -3078,6 +3079,18 @@ void Detector::defineSensitiveVolumes()
// set volume sentive
AddSensitiveVolume(v);
}

// Special sensitive volume parameters in case FLUKA is used as transport engine
auto vmc = TVirtualMC::GetMC();
if (strcmp(vmc->GetName(), "TFluka") == 0) {
LOG(INFO) << "Setting special FLUKA parameters for TPC Driftgas";
auto& mgr = o2::base::MaterialManager::Instance();
Int_t index = mgr.getMediumID("TPC", kDriftGas2);
vmc->Gstpar(index, "PRIMIO_E", 20.77);
vmc->Gstpar(index, "PRIMIO_N", 14.35);
vmc->Gstpar(index, "LOSS", 14);
vmc->Gstpar(index, "STRA", 4);
}
}

Double_t Detector::Gamma(Double_t k)
Expand Down