Skip to content

Commit

Permalink
Merge pull request #9478 from cvuosalo/VuosaloHLTMigrate74
Browse files Browse the repository at this point in the history
Thread-safe conversion for HLT modules in CommonTools/RecoAlgos, backport of #9081
  • Loading branch information
cmsbuild committed Jun 16, 2015
2 parents 37d5661 + 56c1406 commit c531ec5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions CommonTools/RecoAlgos/interface/TrackSelector.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* $Id: TrackSelector.h,v 1.1 2009/03/04 13:11:28 llista Exp $
*
*/

#include "FWCore/Framework/interface/stream/EDFilter.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/TrackReco/interface/TrackExtra.h"
Expand Down Expand Up @@ -130,7 +132,7 @@ namespace helper {


//----------------------------------------------------------------------
class TrackSelectorBase : public edm::EDFilter {
class TrackSelectorBase : public edm::stream::EDFilter<> {
public:
TrackSelectorBase( const edm::ParameterSet & cfg ) {
std::string alias( cfg.getParameter<std::string>( "@module_label" ) );
Expand All @@ -145,7 +147,7 @@ namespace helper {


template<>
struct StoreManagerTrait<reco::TrackCollection> {
struct StoreManagerTrait< reco::TrackCollection, edm::stream::EDFilter<> > {
typedef TrackCollectionStoreManager type;
typedef TrackSelectorBase base;
};
Expand Down
4 changes: 2 additions & 2 deletions CommonTools/RecoAlgos/plugins/LargestEtCaloJetSelector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
*
*/
#include "FWCore/Framework/interface/MakerMacros.h"
#include "CommonTools/UtilAlgos/interface/ObjectSelector.h"
#include "CommonTools/UtilAlgos/interface/ObjectSelectorStream.h"
#include "CommonTools/UtilAlgos/interface/SortCollectionSelector.h"
#include "DataFormats/JetReco/interface/CaloJet.h"
#include "CommonTools/Utils/interface/EtComparator.h"

typedef ObjectSelector<
typedef ObjectSelectorStream<
SortCollectionSelector<
reco::CaloJetCollection,
GreaterByEt<reco::CaloJet>
Expand Down
4 changes: 2 additions & 2 deletions CommonTools/RecoAlgos/plugins/LargestEtPFJetSelector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
*
*/
#include "FWCore/Framework/interface/MakerMacros.h"
#include "CommonTools/UtilAlgos/interface/ObjectSelector.h"
#include "CommonTools/UtilAlgos/interface/ObjectSelectorStream.h"
#include "CommonTools/UtilAlgos/interface/SortCollectionSelector.h"
#include "DataFormats/JetReco/interface/PFJet.h"
#include "CommonTools/Utils/interface/EtComparator.h"

typedef ObjectSelector<
typedef ObjectSelectorStream<
SortCollectionSelector<
reco::PFJetCollection,
GreaterByEt<reco::PFJet>
Expand Down

0 comments on commit c531ec5

Please sign in to comment.