File tree Expand file tree Collapse file tree
Framework/AnalysisSupport/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,6 +105,14 @@ using o2::monitoring::tags::Value;
105105
106106namespace o2 ::framework::readers
107107{
108+ static bool shouldSkipInvalidReads ()
109+ {
110+ auto const * envValue = getenv (" DPL_AOD_READER_SKIP_INVALID" );
111+ return envValue != nullptr &&
112+ strcmp (envValue, " 0" ) != 0 &&
113+ strcmp (envValue, " false" ) != 0 ;
114+ }
115+
108116AlgorithmSpec AODJAlienReaderHelpers::rootFileReaderCallback (ConfigContext const & ctx)
109117{
110118 // aod-parent-base-path-replacement is now a workflow option, so it needs to be
@@ -197,10 +205,7 @@ AlgorithmSpec AODJAlienReaderHelpers::rootFileReaderCallback(ConfigContext const
197205 int level = originLevelMapping.empty () ? -1 : 0 ;
198206 auto fileCounter = std::make_shared<int >(0 );
199207 auto numTF = std::make_shared<int >(-1 );
200- bool const skipInvalidReads = [] {
201- auto const * envValue = getenv (" DPL_AOD_READER_SKIP_INVALID" );
202- return envValue != nullptr && strcmp (envValue, " 0" ) != 0 && strcmp (envValue, " false" ) != 0 ;
203- }();
208+ bool const skipInvalidReads = shouldSkipInvalidReads ();
204209 return adaptStateless ([TFNumberHeader,
205210 TFFileNameHeader,
206211 requestedTables,
You can’t perform that action at this time.
0 commit comments