Skip to content

Commit 8d3f932

Browse files
remove deprecated efficiency loader
1 parent ec81575 commit 8d3f932

3 files changed

Lines changed: 0 additions & 32 deletions

File tree

‎Detectors/Upgrades/ALICE3/IOTOF/simulation/include/IOTOFSimulation/DPLDigitizerParam.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ struct DPLDigitizerParam : public o2::conf::ConfigurableParamHelper<DPLDigitizer
3030
float timeResolution = 0.020f; ///< time resolution sigma in ns (20 ps default)
3131
float tdcBin = 0.010f; ///< TDC time bin (10 ps default)
3232
float efficiency = 0.98f; ///< detection efficiency
33-
std::string efficiencyFilePath{}; ///< optional efficiency map file path.
34-
///< The efficiency map is currently available at /alice/cern.ch/user/g/glucia/ALICE3/IOTOF/pixelEfficiency/PixelEfficiencyMap_TH2.root. FIXME to be removed once switch to CCDBFetcher
3533
std::string efficiencyCcdbPath{}; ///< optional efficiency map CCDB path.
3634
///< The efficiency map is currently available at Users/g/glucia/tmp/ALICE3/IOTOF/pixelEfficiency
3735
int chargeThreshold = 100; ///< charge threshold in Nelectrons

‎Detectors/Upgrades/ALICE3/IOTOF/simulation/include/IOTOFSimulation/Digitizer.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ class Digitizer : public TObject
9292
int energyToCharge(float energyLoss) const;
9393

9494
/// Load the efficiency map from a file
95-
void loadEfficiencyMap(const std::string& filePath);
9695
void loadEfficiencyMapFromCCDB(const std::string& ccdbPath);
9796

9897
/// Check if the hit passes efficiency cut

‎Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Digitizer.cxx‎

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ void Digitizer::init()
6666
if (!digitizerParams.efficiencyCcdbPath.empty()) {
6767
LOG(info) << "Loading efficiency map from CCDB: " << digitizerParams.efficiencyCcdbPath;
6868
loadEfficiencyMapFromCCDB(digitizerParams.efficiencyCcdbPath);
69-
} else if (!digitizerParams.efficiencyFilePath.empty()) {
70-
LOG(info) << "Loading efficiency map from file: " << digitizerParams.efficiencyFilePath;
71-
loadEfficiencyMap(digitizerParams.efficiencyFilePath);
7269
} else {
7370
LOG(info) << "No efficiency map provided, using uniform efficiency: " << digitizerParams.efficiency * 100 << " %";
7471
}
@@ -345,32 +342,6 @@ int Digitizer::energyToCharge(float energyLoss) const
345342
}
346343

347344
//_______________________________________________________________________
348-
void Digitizer::loadEfficiencyMap(const std::string& filePath)
349-
{
350-
// Load the efficiency map from a file
351-
TFile* file = TFile::Open(filePath.c_str());
352-
if (!file || !file->IsOpen()) {
353-
LOG(error) << "Failed to open efficiency map file: " << filePath;
354-
return;
355-
}
356-
357-
auto* rawMap = dynamic_cast<TH2D*>(file->Get("hEfficiencyMap"));
358-
if (!rawMap) {
359-
LOG(error) << "Failed to retrieve efficiency map from file: " << filePath;
360-
LOG(error) << "Available keys in the file:";
361-
TIter next(file->GetListOfKeys());
362-
TKey* key;
363-
while ((key = dynamic_cast<TKey*>(next()))) {
364-
LOG(error) << " " << key->GetName() << " (" << key->GetClassName() << ")";
365-
}
366-
file->Close();
367-
return;
368-
}
369-
mEfficiencyMap = dynamic_cast<TH2D*>(rawMap->Clone("mEfficiencyMap"));
370-
mEfficiencyMap->SetDirectory(nullptr); // Detach from file to avoid deletion when file is closed
371-
372-
file->Close();
373-
}
374345

375346
void Digitizer::loadEfficiencyMapFromCCDB(const std::string& ccdbPath)
376347
{

0 commit comments

Comments
 (0)