-
Notifications
You must be signed in to change notification settings - Fork 10
consumes and getByToken
We currently access the collections in our Makers using edm::getByLabel. This will still be supported in 7_0_0 but will be removed sometime in the 71X cycle in favor of a new API using something called consumes and edm::getByToken. We can use getByLabel for CSA14 but will have to switch to getByToken to prepare for run 2.
This [commit](https://github.com/cmstas/NtupleMaker/commit/e353bb2a6af4ec12083adec396ebb98128843202) shows an example of how to switch from getByLabel to getByToken.
– The only challenge is finding the type (“reco::VertexCollection” in the example). This can normally be found by just searching for the associated variable (vertexHandle in this example) and seeing how it is defined. Use the reco:: namespace where appropriate.
– Some GetByLabel() functions have three arguments. In this case, the second argument should be added to the input tag in the associated python file, and omitted from the new GetByToken() function.
For more information on the new API see these [slides]
(https://indico.cern.ch/getFile.py/access?contribId=4&sessionId=1&resId=0&materialId=slides&confId=254366).
The following packages still need to be done (PLEASE KEEP THIS UP TO DATE):
L1Maker.cc
PhotonMaker.cc
BCMaker.cc
LepGenFilter.cc
PhotonMaker.cc_momsdiff
BTagMaker.cc
RECOErrorLogMaker.cc
FastJetMaker.cc
METMaker.cc
RecoConversionMaker.cc
CaloTauMaker.cc
FlavorHistoryMaker.cc
MITConversionMaker.cc
SCMaker.cc
CaloTowerHFMaker.cc
GSFTrackMaker.cc
SDFilter.cc
CaloTowerMaker.cc
GenJetMaker.cc
MVAJetIdMaker.cc
SParmMaker.cc
CandToGenAssMaker.cc
GenMaker.cc
SecondaryVertexMaker.cc
ConversionMaker.cc
HLTMaker.cc
MetFilterMaker.cc
TCMETMaker.cc
DilepGenFilter.cc
HypDilepMaker.cc
MuToJetAssMaker.cc
TrackIsolationMaker.cc
HypDilepPruner.cc
MuToPFMuAssMaker.cc
TrackMaker.cc
HypDilepVertexMaker.cc
MuonIsolationMaker.cc
EcalAnomalousEventMaker.cc
HypGenMaker.cc
MuonMaker.cc
TrackToMuonAssMaker.cc
EcalDeadCellEventFilter.cc
HypIsoMaker.cc
ObjectToTriggerLegAssMaker.cc
TriggerFilter.cc
EcalRecHitMaker.cc
HypQuadlepMaker.cc
PDFInfoMaker.cc
TrkJetMaker.cc
HypTrilepMaker.cc
PFCandidateMaker.cc
TrkMETMaker.cc
ElESIsoMaker.cc
InterestingRecHitMaker.cc
PFClusterMaker.cc
TrkMuonFilter.cc
ElTkJuraIsoMaker.cc
PFElToElAssMaker.cc
TrkToVtxAssMaker.cc
JPTMaker.cc
PFElectronMaker.cc
VertexMaker.cc
ElToMITConvAssMaker.cc
JetCollectionPruner.cc
PFJetMaker.cc
WWFilter.cc
ElToMuAssMaker.cc
JetFlavorMaker.cc
PFMETMaker.cc
ElToPFElAssMaker.cc
JetMaker.cc
PFMuToMuAssMaker.cc
simpleDRfilter.cc
JetToElAssMaker.cc
PFMuonMaker.cc
JetToMuAssMaker.cc
PFTauMaker.cc
ElectronMaker.cc
PUSummaryInfoMaker.cc