#include <ElectronSeedTrackRefFix.h>
Definition at line 12 of file ElectronSeedTrackRefFix.h.
◆ ElectronSeedTrackRefFix()
ElectronSeedTrackRefFix::ElectronSeedTrackRefFix |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 33 of file ElectronSeedTrackRefFix.cc.
45 produces<reco::PreIdCollection>(idLabel);
46 produces<edm::ValueMap<reco::PreIdRef>>(idLabel);
53 for (
const auto& idTag :
idsTag_) {
54 idsToken_.emplace_back(consumes<reco::PreIdCollection>(idTag));
References edm::ParameterSet::getParameter(), idMapToken_, idsTag_, idsToken_, newTracksTag_, newTracksToken_, oldTracksTag_, oldTracksToken_, preidgsfLabel_, preidLabel_, seedsTag_, seedsToken_, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ ~ElectronSeedTrackRefFix()
ElectronSeedTrackRefFix::~ElectronSeedTrackRefFix |
( |
| ) |
|
|
override |
◆ fillDescriptions()
◆ produce()
Definition at line 65 of file ElectronSeedTrackRefFix.cc.
70 auto oSeeds = std::make_unique<reco::ElectronSeedCollection>();
71 for (
unsigned int s = 0;
s < iSeeds->size(); ++
s) {
72 oSeeds->push_back(iSeeds->at(
s));
73 reco::TrackRef newTrackRef(newTracks, oSeeds->back().ctfTrack().index());
74 oSeeds->back().setCtfTrack(newTrackRef);
78 for (
size_t idNr = 0; idNr <
idsTag_.size(); idNr++) {
80 auto oIds = std::make_unique<reco::PreIdCollection>();
81 for (
unsigned int i = 0;
i < iIds->size(); ++
i) {
82 oIds->push_back(iIds->at(
i));
83 reco::TrackRef newTrackRef(newTracks, oIds->back().trackRef().index());
84 oIds->back().setTrack(newTrackRef);
89 std::vector<reco::PreIdRef>
values;
90 for (
size_t trkNr = 0; trkNr < newTracks->size(); ++trkNr) {
92 if (trkNr < oldTracks->
size() && iIdMap.isValid()) {
References mps_fire::i, idMapToken_, idsTag_, idsToken_, iEvent, eostools::move(), newTracksToken_, oldTracksToken_, preidgsfLabel_, preidLabel_, alignCSCRings::s, seedsToken_, findQualityFiles::size, and contentValuesCheck::values.
◆ idMapToken_
◆ idsTag_
◆ idsToken_
◆ newTracksTag_
◆ newTracksToken_
◆ oldTracksTag_
◆ oldTracksToken_
◆ preidgsfLabel_
std::string ElectronSeedTrackRefFix::preidgsfLabel_ |
|
private |
◆ preidLabel_
std::vector<std::string> ElectronSeedTrackRefFix::preidLabel_ |
|
private |
◆ seedsTag_
◆ seedsToken_