Skip to content

Commit

Permalink
Add electron collection merger
Browse files Browse the repository at this point in the history
  • Loading branch information
mbluj authored and Sebastian Wozniewski committed Oct 19, 2020
1 parent 2aee2d1 commit bf70fdd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CommonTools/Egamma/plugins/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<export>
</export>
<library name="CommonToolsEgammaPlugins" file="*.cc">
<use name="FWCore/Framework"/>
<use name="FWCore/ParameterSet"/>
<use name="DataFormats/EgammaCandidates"/>
<use name="DataFormats/PatCandidates"/>
<use name="CommonTools/UtilAlgos"/>
</library>
19 changes: 19 additions & 0 deletions CommonTools/Egamma/plugins/ElectronCollectionMerger.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* \class ElectronCollectionMerger
*
* Producer of merged Electron collection
*
* \author: Michal Bluj, NCBJ, Poland
*
*/
#include "FWCore/Framework/interface/MakerMacros.h"
#include "CommonTools/UtilAlgos/interface/Merger.h"
#include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
#include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
#include "DataFormats/PatCandidates/interface/Electron.h"

typedef Merger<reco::GsfElectronCollection> GsfElectronCollMerger;
DEFINE_FWK_MODULE(GsfElectronCollMerger);

typedef Merger<pat::ElectronCollection> PATElectronCollMerger;
DEFINE_FWK_MODULE(PATElectronCollMerger);

0 comments on commit bf70fdd

Please sign in to comment.