Skip to content

Commit

Permalink
Merge pull request #86 from gpetruc/correlator_CI_cmssw_123X
Browse files Browse the repository at this point in the history
Updates to get the correlator-common CI running using CMSSW
  • Loading branch information
gpetruc authored Apr 1, 2022
2 parents 754f83d + 66746a1 commit db807ac
Show file tree
Hide file tree
Showing 27 changed files with 15 additions and 130 deletions.
2 changes: 1 addition & 1 deletion L1Trigger/Phase2L1ParticleFlow/python/l1ctLayer1_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
caloSectors = cms.VPSet(
cms.PSet(
etaBoundaries = cms.vdouble(-1.5, 1.5),
phiSlices = cms.uint32(6),
phiSlices = cms.uint32(3),
phiZero = cms.double(0),
)
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
#include <algorithm>
#include <cassert>

#ifdef CMSSW_GIT_HASH
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#else
#include "../utils/dbgPrintf.h"
#endif

inline unsigned int PowerOf2LessThan(unsigned int n) {
unsigned int i = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
#include <cstdlib>
#include <algorithm>

#ifdef CMSSW_GIT_HASH
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#else
#include "../utils/dbgPrintf.h"
#endif

#ifdef CMSSW_GIT_HASH
#include "DataFormats/Math/interface/deltaPhi.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
#include <vector>
#include "deregionizer_input.h"

#ifdef CMSSW_GIT_HASH
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#else
#include "../../utils/dbgPrintf.h"
#endif

l1ct::DeregionizerInput::DeregionizerInput(std::vector<float> &regionEtaCenter,
std::vector<float> &regionPhiCenter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
#define L1Trigger_Phase2L1ParticleFlow_newfirmware_deregionizer_input_h

#include <vector>
#ifdef CMSSW_GIT_HASH
#include "../dataformats/layer1_emulator.h"
#else
#include "../../dataformats/layer1_emulator.h"
#endif

namespace l1ct {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
#include <cstdio>
#include <vector>

#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"

#ifdef CMSSW_GIT_HASH
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"

l1ct::DeregionizerEmulator::DeregionizerEmulator(const edm::ParameterSet &iConfig)
: DeregionizerEmulator(iConfig.getParameter<uint32_t>("nPuppiFinalBuffer"),
Expand All @@ -15,8 +16,6 @@ l1ct::DeregionizerEmulator::DeregionizerEmulator(const edm::ParameterSet &iConfi
iConfig.getParameter<uint32_t>("nPuppiThirdBuffers")) {
debug_ = iConfig.getUntrackedParameter<bool>("debug", false);
}
#else
#include "../../utils/dbgPrintf.h"
#endif

l1ct::DeregionizerEmulator::DeregionizerEmulator(const unsigned int nPuppiFinalBuffer /*=128*/,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
#ifndef L2EGENCODER_REF_H
#define L2EGENCODER_REF_H

#ifdef CMSSW_GIT_HASH
#include "../dataformats/layer1_emulator.h"
#include "../dataformats/egamma.h"
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"

#else
#include "../../dataformats/layer1_emulator.h"
#include "../../dataformats/egamma.h"
#include "../../utils/dbgPrintf.h"

#endif

namespace edm {
class ParameterSet;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
#ifndef L2EgSorter_REF_H
#define L2EgSorter_REF_H

#ifdef CMSSW_GIT_HASH
#include "../dataformats/layer1_emulator.h"
#include "../dataformats/egamma.h"
#include "../dataformats/pf.h"
#include "../common/bitonic_hybrid_sort_ref.h"
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"

#else
#include "../../dataformats/layer1_emulator.h"
#include "../../dataformats/egamma.h"
#include "../../dataformats/pf.h"
#include "../../common/bitonic_hybrid_sort_ref.h"
#include "../../utils/dbgPrintf.h"

#endif
#include <algorithm>
#include <bitset>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
#ifndef PFEGINPUT_REF_H
#define PFEGINPUT_REF_H

#ifdef CMSSW_GIT_HASH
#include "../dataformats/layer1_emulator.h"
#include "../dataformats/egamma.h"
#include "../dataformats/pf.h"
#else
#include "../../../dataformats/layer1_emulator.h"
#include "../../../dataformats/egamma.h"
#include "../../../dataformats/pf.h"
#endif

namespace edm {
class ParameterSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
#include <memory>
#include <iostream>

#ifdef CMSSW_GIT_HASH
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#else
#include "../../../utils/dbgPrintf.h"
#endif

using namespace l1ct;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
#ifndef PFTKEGALGO_REF_H
#define PFTKEGALGO_REF_H

#ifdef CMSSW_GIT_HASH
#include "../dataformats/layer1_emulator.h"
#include "../dataformats/egamma.h"
#include "../dataformats/pf.h"
#else
#include "../../../dataformats/layer1_emulator.h"
#include "../../../dataformats/egamma.h"
#include "../../../dataformats/pf.h"
#endif

namespace edm {
class ParameterSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
#include <cstdio>
#include <vector>

#ifdef CMSSW_GIT_HASH
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#include "../dataformats/layer1_emulator.h"
#else
#include "../../../dataformats/layer1_emulator.h"
#include "../../../utils/dbgPrintf.h"

#ifdef CMSSW_GIT_HASH
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#endif

namespace edm {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
#ifndef L1Trigger_Phase2L1ParticleFlow_HTMHT_h
#define L1Trigger_Phase2L1ParticleFlow_HTMHT_h

#ifdef CMSSW_GIT_HASH
#include "../dataformats/jets.h"
#include "../dataformats/sums.h"
#include "./L1SeedConePFJetEmulator.h"
#include "L1Trigger/Phase2L1ParticleFlow/src/newfirmware/dataformats/jets.h"
#include "L1Trigger/Phase2L1ParticleFlow/src/newfirmware/dataformats/sums.h"
#include "L1SeedConePFJetEmulator.h"
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#else
#include "../../../dataformats/jets.h"
#include "../../../dataformats/sums.h"
#include "../../seededcone/ref/L1SeedConePFJetEmulator.h"
#include "../../../utils/dbgPrintf.h"

#ifndef CMSSW_GIT_HASH
#include "hls_math.h"
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
#ifndef L1Trigger_Phase2L1ParticleFlow_L1SeedConePFJetEmulator_h
#define L1Trigger_Phase2L1ParticleFlow_L1SeedConePFJetEmulator_h

#ifdef CMSSW_GIT_HASH
#include "../dataformats/layer1_emulator.h"
#include "../dataformats/jets.h"
#else
#include "../../../dataformats/layer1_emulator.h"
#include "../../../dataformats/jets.h"
#endif

#include <iostream>
#include <vector>
#include <numeric>
#include <algorithm>

#ifdef CMSSW_GIT_HASH
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#else
#include "../../../utils/dbgPrintf.h"
#endif

class L1SCJetEmu {
public:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#ifndef L1Trigger_Phase2L1ParticleFlow_newfirmware_hgcalinput_ref_h
#define L1Trigger_Phase2L1ParticleFlow_newfirmware_hgcalinput_ref_h

#ifdef CMSSW_GIT_HASH
#include "../../dataformats/layer1_emulator.h"
#else
#include "../../../dataformats/layer1_emulator.h"
#endif

namespace l1ct {
class HgcalClusterDecoderEmulator {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#ifndef L1Trigger_Phase2L1ParticleFlow_newfirmware_muonGmtToL1ct_ref_h
#define L1Trigger_Phase2L1ParticleFlow_newfirmware_muonGmtToL1ct_ref_h

#ifdef CMSSW_GIT_HASH
#include "../../dataformats/layer1_emulator.h"
#else
#include "../../../dataformats/layer1_emulator.h"
#endif

namespace edm {
class ParameterSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
#include <cassert>
#include <cstdio>

#ifdef CMSSW_GIT_HASH
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#else
#include "../../../utils/dbgPrintf.h"
#endif

#ifdef CMSSW_GIT_HASH
#include <cstdint>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#ifndef L1Trigger_Phase2L1ParticleFlow_l1converters_tracks_tkinput_ref_h
#define L1Trigger_Phase2L1ParticleFlow_l1converters_tracks_tkinput_ref_h

#ifdef CMSSW_GIT_HASH
#include "../../dataformats/layer1_emulator.h"
#else
#include "../../../dataformats/layer1_emulator.h"
#endif
#include <cstdio>
#include <algorithm>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
#include <vector>
#include <memory>

#ifdef CMSSW_GIT_HASH
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#else
#include "../../utils/dbgPrintf.h"
#endif

#ifdef CMSSW_GIT_HASH
#include "FWCore/ParameterSet/interface/ParameterSet.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
#include <cmath>
#include <cstdio>

#ifdef CMSSW_GIT_HASH
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#else
#include "../../utils/dbgPrintf.h"
#endif

#ifdef CMSSW_GIT_HASH
#include "FWCore/ParameterSet/interface/ParameterSet.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
#ifndef PFALGO_COMMON_REF_H
#define PFALGO_COMMON_REF_H

#ifdef CMSSW_GIT_HASH
#include "../dataformats/layer1_emulator.h"
#include "pfalgo_types.h"
#else
#include "../../dataformats/layer1_emulator.h"
#include "../firmware/pfalgo_types.h"
#endif

#include <algorithm>
#include <vector>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#ifndef FIRMWARE_PFALGO_TYPES_H
#define FIRMWARE_PFALGO_TYPES_H

#ifdef CMSSW_GIT_HASH
#include "../dataformats/datatypes.h"
#else
#include "../../dataformats/datatypes.h"
#endif

namespace l1ct {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,12 @@
#include <cmath>
#include <algorithm>

#ifdef CMSSW_GIT_HASH
#include "linpuppi_bits.h"
#else
#include "firmware/linpuppi_bits.h"
#endif

#include "../common/bitonic_hybrid_sort_ref.h"
#include "../common/bitonic_sort_ref.h"

#ifdef CMSSW_GIT_HASH
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#else
#include "../utils/dbgPrintf.h"
#endif

#ifdef CMSSW_GIT_HASH
#include "FWCore/ParameterSet/interface/ParameterSet.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef multififo_regionizer_elements_ref_h
#define multififo_regionizer_elements_ref_h

#include "../../dataformats/layer1_emulator.h"
#include "L1Trigger/Phase2L1ParticleFlow/src/newfirmware/dataformats/layer1_emulator.h"

#include <list>
#include <vector>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#ifdef CMSSW_GIT_HASH
#include "L1Trigger/Phase2L1ParticleFlow/src/dbgPrintf.h"
#else
#include "../../utils/dbgPrintf.h"
#endif

template <typename T>
void l1ct::multififo_regionizer::maybe_push(const T& t,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#include "multififo_regionizer_ref.h"
#ifdef CMSSW_GIT_HASH
#include "../../egamma/pfeginput_ref.h"
#include "../../egamma/pfeginput_ref.cpp"
#else
#include "../../egamma/l1-input/ref/pfeginput_ref.h"
#include "../../egamma/l1-input/ref/pfeginput_ref.cpp"
#endif
#include "L1Trigger/Phase2L1ParticleFlow/src/newfirmware/egamma/pfeginput_ref.h"
#include "L1Trigger/Phase2L1ParticleFlow/src/newfirmware/egamma/pfeginput_ref.cpp"

#include <iostream>
#include <memory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@

for det in "Barrel", "Barrel9", "HGCal", "HGCalNoTK", "HF":
l1pf = getattr(process, 'l1ctLayer1'+det)
l1pf.dumpFileName = cms.untracked.string("TTbar_PU200_110X_"+det+".dump")
l1pf.dumpFileName = cms.untracked.string("TTbar_PU200_"+det+".dump")

0 comments on commit db807ac

Please sign in to comment.