1818#include " FDDWorkflow/ReconstructorSpec.h"
1919#include " DataFormatsFDD/Digit.h"
2020#include " DataFormatsFDD/MCLabel.h"
21+ #include " Framework/CCDBParamSpec.h"
2122
2223using namespace o2 ::framework;
2324
@@ -28,6 +29,7 @@ namespace fdd
2829
2930void FDDReconstructorDPL::init (InitContext& ic)
3031{
32+
3133}
3234
3335void FDDReconstructorDPL::run (ProcessingContext& pc)
@@ -44,6 +46,10 @@ void FDDReconstructorDPL::run(ProcessingContext& pc)
4446 // lblPtr = labels.get();
4547 LOG (info) << " Ignoring MC info" ;
4648 }
49+ if (mUseDeadChannelMap ) {
50+ auto deadChannelMap = pc.inputs ().get <o2::fit::DeadChannelMap*>(" deadChannelMap" );
51+ mReco .setDeadChannelMap (deadChannelMap.get ());
52+ }
4753 int nDig = digitsBC.size ();
4854 mRecPoints .reserve (nDig);
4955 mRecChData .reserve (digitsCh.size ());
@@ -70,7 +76,8 @@ DataProcessorSpec getFDDReconstructorSpec(bool useMC, bool useDeadChannelMap)
7076 // inputSpec.emplace_back("labels", o2::header::gDataOriginFDD, "DIGITSMCTR", 0, Lifetime::Timeframe);
7177 }
7278 if (useDeadChannelMap) {
73- inputSpec.emplace_back (" deadChannelMap" , o2::header::gDataOriginFDD , " DeadChannelMap" , 0 , LifeTime::Condition, ccdbParamSpec (" FDD/Calib/DeadChannelMap" ));
79+ LOG (info) << " Dead channel map will be applied during reconstruction" ;
80+ inputSpec.emplace_back (" deadChannelMap" , o2::header::gDataOriginFDD , " DeadChannelMap" , 0 , Lifetime::Condition, ccdbParamSpec (" FDD/Calib/DeadChannelMap" ));
7481 }
7582 outputSpec.emplace_back (o2::header::gDataOriginFDD , " RECPOINTS" , 0 , Lifetime::Timeframe);
7683 outputSpec.emplace_back (o2::header::gDataOriginFDD , " RECCHDATA" , 0 , Lifetime::Timeframe);
0 commit comments