@@ -77,25 +77,6 @@ namespace edm {
77
77
selectors_.resize (1 );
78
78
wantAllEvents_ = detail::configureEventSelector (
79
79
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
- }
99
80
}
100
81
101
82
void OutputModuleCore::configure (OutputModuleDescription const & desc) {
@@ -249,13 +230,7 @@ namespace edm {
249
230
250
231
void OutputModuleCore::preallocLumis (unsigned int ) {}
251
232
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 (); }
259
234
260
235
void OutputModuleCore::doEndJob () { endJob (); }
261
236
@@ -273,14 +248,11 @@ namespace edm {
273
248
std::vector<ProductResolverIndexAndSkipBit> returnValue;
274
249
auto const & s = selectors_[0 ];
275
250
auto const n = s.numberOfTokens ();
276
- returnValue.reserve (n + tokensForEndPaths_. size () );
251
+ returnValue.reserve (n);
277
252
278
253
for (unsigned int i = 0 ; i < n; ++i) {
279
254
returnValue.emplace_back (uncheckedIndexFrom (s.token (i)));
280
255
}
281
- for (auto token : tokensForEndPaths_) {
282
- returnValue.emplace_back (uncheckedIndexFrom (token));
283
- }
284
256
return returnValue;
285
257
}
286
258
@@ -400,7 +372,6 @@ namespace edm {
400
372
std::vector<std::string> const & defaultOutputCommands) {
401
373
ProductSelectorRules::fillDescription (desc, " outputCommands" , defaultOutputCommands);
402
374
EventSelector::fillDescription (desc);
403
- desc.addOptionalNode (ParameterDescription<bool >(" @onFinalPath" , false , false ), false );
404
375
}
405
376
406
377
void OutputModuleCore::prevalidate (ConfigurationDescriptions&) {}
0 commit comments