Skip to content

Commit

Permalink
fix parameter percolation
Browse files Browse the repository at this point in the history
  • Loading branch information
matteosan1 committed Nov 12, 2014
1 parent 60a09db commit dcb36c3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Expand Up @@ -365,8 +365,9 @@ GsfElectronBaseProducer::GsfElectronBaseProducer( const edm::ParameterSet& cfg )
}


mva_NIso_Cfg_.vweightsfiles=cfg.getParameter<std::vector<std::string>>("SoftElecMVAFilesString");
mva_Iso_Cfg_.vweightsfiles=cfg.getParameter<std::vector<std::string>>("ElecMVAFilesString");
mva_NIso_Cfg_.vweightsfiles = cfg.getParameter<std::vector<std::string>>("SoftElecMVAFilesString");
mva_NIso_Cfg_.vtxCollection = consumes<reco::VertexCollection>(cfg.getParameter<edm::InputTag>("vtxTag"));
mva_Iso_Cfg_.vweightsfiles = cfg.getParameter<std::vector<std::string>>("ElecMVAFilesString");
// create algo
algo_ = new GsfElectronAlgo
( inputCfg_, strategyCfg_,
Expand Down
Expand Up @@ -162,7 +162,6 @@
SoftElecMVAFilesString = cms.vstring(
"RecoEgamma/ElectronIdentification/data/TMVA_BDTSoftElectrons_7Feb2014.weights.xml"
),
SoftElecMVAVtxTag = cms.InputTag('offlinePrimaryVertices'),
ElecMVAFilesString = cms.vstring(
"RecoEgamma/ElectronIdentification/data/TMVA_BDTSimpleCat_17Feb2011.weights.xml"
),
Expand Down
2 changes: 0 additions & 2 deletions RecoEgamma/EgammaElectronProducers/python/gsfElectrons_cfi.py
Expand Up @@ -160,7 +160,6 @@
SoftElecMVAFilesString = cms.vstring(
"RecoEgamma/ElectronIdentification/data/TMVA_BDTSoftElectrons_9Dec2013.weights.xml"
),
SoftElecMVAVtxTag = cms.InputTag('offlinePrimaryVertices'),
ElecMVAFilesString = cms.vstring(
"RecoEgamma/ElectronIdentification/data/TMVA_BDTSimpleCat_17Feb2011.weights.xml"
),
Expand Down Expand Up @@ -335,7 +334,6 @@
SoftElecMVAFilesString = cms.vstring(
"RecoEgamma/ElectronIdentification/data/TMVA_BDTSoftElectrons_7Feb2014.weights.xml"
),
SoftElecMVAVtxTag = cms.InputTag('offlinePrimaryVertices'),
ElecMVAFilesString = cms.vstring(
"RecoEgamma/ElectronIdentification/data/TMVA_BDTSimpleCat_17Feb2011.weights.xml"
),
Expand Down
Expand Up @@ -13,7 +13,7 @@ class SoftElectronMVAEstimator {
public:
struct Configuration{
std::vector<std::string> vweightsfiles;
edm::InputTag fullPrimaryVertexTag_;
edm::EDGetTokenT<reco::VertexCollection> vtxCollection;
};
SoftElectronMVAEstimator(const Configuration & );
~SoftElectronMVAEstimator() ;
Expand Down
Expand Up @@ -114,7 +114,7 @@ UInt_t SoftElectronMVAEstimator::GetMVABin(int pu, double eta, double pt) const
double SoftElectronMVAEstimator::mva(const reco::GsfElectron& myElectron,const edm::Event & evt) {

edm::Handle<reco::VertexCollection> FullprimaryVertexCollection;
evt.getByLabel(cfg_.fullPrimaryVertexTag_, FullprimaryVertexCollection);
evt.getByToken(cfg_.vtxCollection, FullprimaryVertexCollection);
const reco::VertexCollection pvc = *(FullprimaryVertexCollection.product());

fbrem =myElectron.fbrem();
Expand Down

0 comments on commit dcb36c3

Please sign in to comment.