-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25680 from bainbrid/LowPtElectrons_102X
Low pT electrons (up to GsfTracks) for 10_2_X
- Loading branch information
Showing
17 changed files
with
1,217 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
bParking = cms.Modifier() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
180 changes: 83 additions & 97 deletions
180
FastSimulation/Tracking/plugins/ElectronSeedTrackRefFix.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 24 additions & 27 deletions
51
FastSimulation/Tracking/plugins/ElectronSeedTrackRefFix.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,41 @@ | ||
// system include files | ||
#ifndef FastSimulation_Tracking_ElectronSeedTrackRefFix_h | ||
#define FastSimulation_Tracking_ElectronSeedTrackRefFix_h | ||
|
||
|
||
#include <memory> | ||
|
||
// user include files | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "DataFormats/Common/interface/ValueMap.h" | ||
#include "DataFormats/EgammaReco/interface/ElectronSeedFwd.h" | ||
#include "DataFormats/ParticleFlowReco/interface/PreIdFwd.h" | ||
#include "DataFormats/TrackReco/interface/TrackFwd.h" | ||
#include "DataFormats/EgammaReco/interface/ElectronSeedFwd.h" | ||
|
||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "FWCore/Framework/interface/stream/EDProducer.h" | ||
#include "DataFormats/Common/interface/ValueMap.h" | ||
|
||
#include <memory> | ||
|
||
class ElectronSeedTrackRefFix : public edm::stream::EDProducer<> { | ||
public: | ||
|
||
public: | ||
|
||
explicit ElectronSeedTrackRefFix(const edm::ParameterSet&); | ||
~ElectronSeedTrackRefFix() override; | ||
|
||
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions); | ||
|
||
private: | ||
private: | ||
|
||
void produce(edm::Event&, const edm::EventSetup&) override; | ||
|
||
// ----------member data --------------------------- | ||
edm::EDGetTokenT<reco::TrackCollection > newTracksToken; | ||
edm::EDGetTokenT<reco::TrackCollection > oldTracksToken; | ||
edm::EDGetTokenT<reco::ElectronSeedCollection > seedsToken; | ||
edm::EDGetTokenT<reco::PreIdCollection > idsToken; | ||
edm::EDGetTokenT<edm::ValueMap<reco::PreIdRef> > idMapToken; | ||
|
||
std::string preidgsfLabel; | ||
std::string preidLabel; | ||
edm::InputTag oldTracksTag; | ||
edm::InputTag newTracksTag; | ||
edm::InputTag seedsTag; | ||
edm::InputTag idsTag; | ||
// member data | ||
|
||
edm::EDGetTokenT<reco::TrackCollection > newTracksToken_; | ||
edm::EDGetTokenT<reco::TrackCollection > oldTracksToken_; | ||
edm::EDGetTokenT<reco::ElectronSeedCollection > seedsToken_; | ||
std::vector<edm::EDGetTokenT<reco::PreIdCollection > > idsToken_; | ||
std::vector<edm::EDGetTokenT<edm::ValueMap<reco::PreIdRef> > > idMapToken_; | ||
std::string preidgsfLabel_; | ||
std::vector<std::string> preidLabel_; | ||
edm::InputTag oldTracksTag_; | ||
edm::InputTag newTracksTag_; | ||
edm::InputTag seedsTag_; | ||
std::vector<edm::InputTag> idsTag_; | ||
|
||
}; | ||
|
||
#endif | ||
#endif // FastSimulation_Tracking_ElectronSeedTrackRefFix_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<use name="CondFormats/EgammaObjects"/> | ||
<use name="DataFormats/BeamSpot"/> | ||
<use name="DataFormats/ParticleFlowReco"/> | ||
<use name="DataFormats/TrackReco"/> | ||
<use name="FWCore/ParameterSet"/> | ||
<use name="RecoEcal/EgammaCoreTools"/> | ||
<use name="RecoEgamma/EgammaTools"/> | ||
<export> | ||
<lib name="RecoEgammaEgammaElectronProducers"/> | ||
</export> |
Oops, something went wrong.