Skip to content

Commit

Permalink
Resolve conflict with cms-sw#31072
Browse files Browse the repository at this point in the history
  • Loading branch information
mbluj committed Aug 11, 2020
2 parents 1f08b68 + bd0bca6 commit 105c13e
Show file tree
Hide file tree
Showing 140 changed files with 9,058 additions and 2,070 deletions.
4 changes: 2 additions & 2 deletions CommonTools/PileupAlgos/python/Puppi_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
)
)

from Configuration.Eras.Modifier_run2_miniAOD_devel_cff import run2_miniAOD_devel
run2_miniAOD_devel.toModify(
from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL
run2_miniAOD_UL.toModify(
puppi,
EtaMinUseDeltaZ = 2.4,
PtMaxCharged = 20.,
Expand Down
8 changes: 8 additions & 0 deletions Configuration/Applications/python/ConfigBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2289,6 +2289,14 @@ def prepare(self, doChecking = False):
from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
self.process = customiseEarlyDelete(self.process)

imports = cms.specialImportRegistry.getSpecialImports()
if len(imports) > 0:
#need to inject this at the top
index = self.pythonCfgCode.find("import FWCore.ParameterSet.Config")
#now find the end of line
index = self.pythonCfgCode.find("\n",index)
self.pythonCfgCode = self.pythonCfgCode[:index]+ "\n" + "\n".join(imports)+"\n" +self.pythonCfgCode[index:]


# make the .io file

Expand Down
11 changes: 11 additions & 0 deletions DataFormats/BTauReco/interface/ChargedCandidateFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ class ChargedCandidateFeatures {
public:

float ptrel;
float ptrel_noclip;
float erel;
float etarel;
float puppiw;
float vtx_ass;

Expand All @@ -25,6 +28,14 @@ class ChargedCandidateFeatures {

float btagPf_trackJetDistVal;

float drsubjet1;
float drsubjet2;
float dxy;
float dxysig;
float dz;
float dzsig;
float deltaR;

float chi2;
float quality;

Expand Down
9 changes: 6 additions & 3 deletions DataFormats/BTauReco/interface/DeepDoubleXFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "DataFormats/BTauReco/interface/SecondaryVertexFeatures.h"
#include "DataFormats/BTauReco/interface/BoostedDoubleSVTagInfoFeatures.h"
#include "DataFormats/BTauReco/interface/ChargedCandidateFeatures.h"
#include "DataFormats/BTauReco/interface/NeutralCandidateFeatures.h"

namespace btagbtvdeep {

Expand All @@ -25,11 +26,13 @@ class DeepDoubleXFeatures {
JetFeatures jet_features;
BoostedDoubleSVTagInfoFeatures tag_info_features;

std::vector<SecondaryVertexFeatures> sv_features;

std::vector<ChargedCandidateFeatures> c_pf_features;

std::size_t npv; // used by deep flavour
std::vector<NeutralCandidateFeatures> n_pf_features;

std::vector<SecondaryVertexFeatures> sv_features;

std::size_t npv; // used by deep flavour

private:
bool is_empty_ = true;
Expand Down
6 changes: 6 additions & 0 deletions DataFormats/BTauReco/interface/NeutralCandidateFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ class NeutralCandidateFeatures {
public:

float ptrel;
float ptrel_noclip;
float erel;

float drsubjet1;
float drsubjet2;

float puppiw;
float deltaR;
float deltaR_noclip;
float isGamma;

float hadFrac;
Expand Down
1 change: 1 addition & 0 deletions DataFormats/BTauReco/interface/SecondaryVertexFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class SecondaryVertexFeatures {
public:

float pt;
float ptrel;
float mass;

float deltaR;
Expand Down
12 changes: 8 additions & 4 deletions DataFormats/BTauReco/src/classes_def.xml
Original file line number Diff line number Diff line change
Expand Up @@ -408,23 +408,27 @@
<class name="btagbtvdeep::JetFeatures" ClassVersion="3">
<version ClassVersion="3" checksum="386672900"/>
</class>
<class name="btagbtvdeep::SecondaryVertexFeatures" ClassVersion="3">
<class name="btagbtvdeep::SecondaryVertexFeatures" ClassVersion="4">
<version ClassVersion="4" checksum="3987593676"/>
<version ClassVersion="3" checksum="3610780843"/>
</class>
<class name="btagbtvdeep::ShallowTagInfoFeatures" ClassVersion="3">
<version ClassVersion="3" checksum="273372007"/>
</class>
<class name="btagbtvdeep::NeutralCandidateFeatures" ClassVersion="3">
<class name="btagbtvdeep::NeutralCandidateFeatures" ClassVersion="4">
<version ClassVersion="4" checksum="3657612864"/>
<version ClassVersion="3" checksum="938442516"/>
</class>
<class name="btagbtvdeep::ChargedCandidateFeatures" ClassVersion="4">
<class name="btagbtvdeep::ChargedCandidateFeatures" ClassVersion="5">
<version ClassVersion="5" checksum="3385708923"/>
<version ClassVersion="4" checksum="2173116472"/>
<version ClassVersion="3" checksum="1302021141"/>
</class>
<class name="btagbtvdeep::DeepFlavourFeatures" ClassVersion="3">
<version ClassVersion="3" checksum="2487956635"/>
</class>
<class name="btagbtvdeep::DeepDoubleXFeatures" ClassVersion="3">
<class name="btagbtvdeep::DeepDoubleXFeatures" ClassVersion="4">
<version ClassVersion="4" checksum="3057931654"/>
<version ClassVersion="3" checksum="1764960743"/>
</class>
<class name="btagbtvdeep::BoostedDoubleSVTagInfoFeatures" ClassVersion="3">
Expand Down
26 changes: 26 additions & 0 deletions DataFormats/Common/interface/RandomNumberGeneratorState.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#ifndef DataFormats_Common_RandomNumberGeneratorState_h
#define DataFormats_Common_RandomNumberGeneratorState_h

/*----------------------------------------------------------------------
RandomNumberGeneratorState is used to communicate with an external process
----------------------------------------------------------------------*/

#include <vector>
namespace edm {
struct RandomNumberGeneratorState {
RandomNumberGeneratorState() = default;
RandomNumberGeneratorState(std::vector<unsigned long> iState, long iSeed)
: state_(std::move(iState)), seed_{iSeed} {}

RandomNumberGeneratorState(RandomNumberGeneratorState const&) = default;
RandomNumberGeneratorState(RandomNumberGeneratorState&&) = default;

RandomNumberGeneratorState& operator=(RandomNumberGeneratorState const&) = default;
RandomNumberGeneratorState& operator=(RandomNumberGeneratorState&&) = default;

std::vector<unsigned long> state_;
long seed_;
};
} // namespace edm
#endif
1 change: 1 addition & 0 deletions DataFormats/Common/src/classes.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "DataFormats/Common/interface/SecondaryEventIDAndFileInfo.h"
#include "DataFormats/Provenance/interface/EventAuxiliary.h"
#include "FWCore/MessageLogger/interface/ErrorSummaryEntry.h"
#include "DataFormats/Common/interface/RandomNumberGeneratorState.h"

#include <vector>

3 changes: 3 additions & 0 deletions DataFormats/Common/src/classes_def.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,8 @@

<class name="edm::RefProd<std::vector<int> >"/>
<class name="edm::RefToBaseProd<int>"/>
<class name="edm::RandomNumberGeneratorState" ClassVersion="3">
<version ClassVersion="3" checksum="2237762164"/>
</class>

</lcgdict>
Loading

0 comments on commit 105c13e

Please sign in to comment.