@@ -77,25 +77,6 @@ namespace edm {
7777 selectors_.resize (1 );
7878 wantAllEvents_ = detail::configureEventSelector (
7979 selectEvents_, process_name_, getAllTriggerNames (), selectors_[0 ], consumesCollector ());
80-
81- // Check if on final path
82- if (pset.exists (" @onFinalPath" )) {
83- onFinalPath_ = pset.getUntrackedParameter <bool >(" @onFinalPath" );
84- }
85- if (onFinalPath_) {
86- wantAllEvents_ = false ;
87- if (not getAllTriggerNames ().empty () and selectors_.front ().numberOfTokens () == 0 ) {
88- // need to wait for trigger paths to finish
89- tokensForEndPaths_.push_back (consumes<TriggerResults>(edm::InputTag (" TriggerResults" , " " , process_name_)));
90- }
91- // need to wait for EndPaths to finish
92- for (auto const & n : tns->getEndPaths ()) {
93- if (n == " @finalPath" ) {
94- continue ;
95- }
96- tokensForEndPaths_.push_back (consumes<EndPathStatus>(edm::InputTag (n, " " , process_name_)));
97- }
98- }
9980 }
10081
10182 void OutputModuleCore::configure (OutputModuleDescription const & desc) {
@@ -249,13 +230,7 @@ namespace edm {
249230
250231 void OutputModuleCore::preallocLumis (unsigned int ) {}
251232
252- void OutputModuleCore::doBeginJob_ () {
253- this ->beginJob ();
254- if (onFinalPath_) {
255- // this stops prefetching of the data products
256- resetItemsToGetFrom (edm::InEvent);
257- }
258- }
233+ void OutputModuleCore::doBeginJob_ () { this ->beginJob (); }
259234
260235 void OutputModuleCore::doEndJob () { endJob (); }
261236
@@ -273,14 +248,11 @@ namespace edm {
273248 std::vector<ProductResolverIndexAndSkipBit> returnValue;
274249 auto const & s = selectors_[0 ];
275250 auto const n = s.numberOfTokens ();
276- returnValue.reserve (n + tokensForEndPaths_. size () );
251+ returnValue.reserve (n);
277252
278253 for (unsigned int i = 0 ; i < n; ++i) {
279254 returnValue.emplace_back (uncheckedIndexFrom (s.token (i)));
280255 }
281- for (auto token : tokensForEndPaths_) {
282- returnValue.emplace_back (uncheckedIndexFrom (token));
283- }
284256 return returnValue;
285257 }
286258
@@ -400,7 +372,6 @@ namespace edm {
400372 std::vector<std::string> const & defaultOutputCommands) {
401373 ProductSelectorRules::fillDescription (desc, " outputCommands" , defaultOutputCommands);
402374 EventSelector::fillDescription (desc);
403- desc.addOptionalNode (ParameterDescription<bool >(" @onFinalPath" , false , false ), false );
404375 }
405376
406377 void OutputModuleCore::prevalidate (ConfigurationDescriptions&) {}
0 commit comments