File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Steer/DigitizerWorkflow/src Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,8 @@ void CDBInterface::createDefaultGainMap()
257257 if (random < minGain) {
258258 random = minGain;
259259 }
260- if (random > minGain ) {
261- random = minGain ;
260+ if (random > maxGain ) {
261+ random = maxGain ;
262262 }
263263 val = random;
264264 }
Original file line number Diff line number Diff line change 1717#include " TStopwatch.h"
1818#include " Steer/HitProcessingManager.h" // for RunContext
1919#include " TChain.h"
20+ #include " TSystem.h"
2021#include < SimulationDataFormat/MCCompLabel.h>
2122#include < SimulationDataFormat/MCTruthContainer.h>
2223#include " Framework/Task.h"
@@ -159,6 +160,10 @@ class TPCDPLDigitizerTask
159160 // / For the time being use the defaults for the CDB
160161 auto & cdb = o2::tpc::CDBInterface::instance ();
161162 cdb.setUseDefaults ();
163+ if (!gSystem ->AccessPathName (" GainMap.root" )) {
164+ LOG (INFO) << " TPC: Using gain map from 'GainMap.root'" << FairLogger::endl;
165+ cdb.setGainMapFromFile (" GainMap.root" );
166+ }
162167
163168 // read collision context from input
164169 auto context = pc.inputs ().get <o2::steer::RunContext*>(" collisioncontext" );
You can’t perform that action at this time.
0 commit comments