Skip to content

Commit

Permalink
Merge CMSSW_10_5_X into CMSSW_10_5_DEVEL_X.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed Feb 5, 2019
2 parents 2c8f51c + 34af739 commit f1f6c35
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
3 changes: 0 additions & 3 deletions PhysicsTools/TagAndProbe/interface/BaseTreeFiller.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ class BaseTreeFiller : boost::noncopyable {
edm::EDGetTokenT<pat::METCollection> pfmetTokenMiniAOD_;
edm::EDGetTokenT<std::vector<PileupSummaryInfo> > pileupInfoToken_;

/// Ignore exceptions when evaluating variables
bool ignoreExceptions_;

/// Add branches with run and lumisection number
bool addRunLumiInfo_;

Expand Down
21 changes: 3 additions & 18 deletions PhysicsTools/TagAndProbe/src/BaseTreeFiller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ tnp::BaseTreeFiller::BaseTreeFiller(const char *name, const edm::ParameterSet& i
rhoToken_ = iC.consumes<double>(iConfig.getParameter<edm::InputTag>("rho"));
tree_->Branch("event_rho" ,&rho_ ,"rho/F");
}


ignoreExceptions_ = iConfig.existsAs<bool>("ignoreExceptions") ? iConfig.getParameter<bool>("ignoreExceptions") : false;
}

tnp::BaseTreeFiller::BaseTreeFiller(BaseTreeFiller &main, const edm::ParameterSet &iConfig, edm::ConsumesCollector && iC, const std::string &branchNamePrefix) :
Expand Down Expand Up @@ -304,22 +301,10 @@ void tnp::BaseTreeFiller::init(const edm::Event &iEvent) const {
}

void tnp::BaseTreeFiller::fill(const reco::CandidateBaseRef &probe) const {
for (std::vector<tnp::ProbeVariable>::const_iterator it = vars_.begin(), ed = vars_.end(); it != ed; ++it) {
if (ignoreExceptions_) {
try{ it->fill(probe); } catch(cms::Exception &ex ){}
} else {

it->fill(probe);
}
}

for (std::vector<tnp::ProbeFlag>::const_iterator it = flags_.begin(), ed = flags_.end(); it != ed; ++it) {
if (ignoreExceptions_) {
try{ it->fill(probe); } catch(cms::Exception &ex ){}
} else {
it->fill(probe);
}
}
for(auto const& var : vars_) var.fill(probe);
for(auto const& flag : flags_) flag.fill(probe);

if (tree_) tree_->Fill();
}
void tnp::BaseTreeFiller::writeProvenance(const edm::ParameterSet &pset) const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,6 @@

CommonStuffForGsfElectronProbe = cms.PSet(
variables = cms.PSet(ProbeVariablesToStore),
ignoreExceptions = cms.bool (False),
addRunLumiInfo = cms.bool (True),
addEventVariablesInfo = cms.bool (True),
pairVariables = cms.PSet(ZVariablesToStore),
Expand Down Expand Up @@ -1249,7 +1248,6 @@
probe_gsfEle_isEE = cms.string("isEE"),
probe_gsfEle_isGap = cms.string("isGap"),
),
ignoreExceptions = cms.bool (False),
addRunLumiInfo = cms.bool (False),
addEventVariablesInfo = cms.bool (False),
tagProbePairs = cms.InputTag("tagWP95"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@

CommonStuffForPhotonProbe = cms.PSet(
variables = cms.PSet(ProbePhotonVariablesToStore),
ignoreExceptions = cms.bool (False),
#fillTagTree = cms.bool (True),
addRunLumiInfo = cms.bool (True),
addEventVariablesInfo = cms.bool (True),
Expand Down Expand Up @@ -505,7 +504,6 @@
probe_phi = cms.string("phi"),
probe_et = cms.string("et"),
),
ignoreExceptions = cms.bool (False),
addRunLumiInfo = cms.bool (False),
addEventVariablesInfo = cms.bool (False),
tagProbePairs = cms.InputTag("tagphotonIDsusydiphoton"),
Expand Down

0 comments on commit f1f6c35

Please sign in to comment.