22 using namespace l1extra;
111 "L1_IsoEG10_TauJet20",
112 "L1_IsoEG10_TauJet30",
122 "L1_TauJet40_HTT200",
136 "L1_DoubleMu3_IsoEG5",
138 "L1_DoubleIsoEG5_Mu3",
140 "L1_DoubleMu3_HTT200",
141 "L1_DoubleIsoEG5_HTT200",
142 "L1_DoubleEG10_HTT200",
143 "L1_DoubleJet50_HTT200",
144 "L1_DoubleTauJet40_HTT200",
145 "L1_DoubleMu3_ETM20",
146 "L1_DoubleIsoEG5_ETM20",
147 "L1_DoubleEG10_ETM20",
148 "L1_DoubleJet50_ETM20",
149 "L1_DoubleTauJet40_ETM20",
151 "L1_ExclusiveDoubleIsoEG4",
152 "L1_ExclusiveDoubleJet60",
153 "L1_ExclusiveJet25_Gap_Jet25",
154 "L1_IsoEG10_Jet20_ForJet10",
168 bool triggerDecision,
175 : triggerType_(triggerType),
176 triggerDecision_(triggerDecision),
177 indexCombosState_{
static_cast<char>(!indexCombos.empty() ?
kSet : IndexComboStates::kUnset)},
223 std::memory_order_release);
245 int numNonGlobal = 0;
247 int nonGlobalIndex = -1;
258 if (numNonGlobal == 0) {
263 tmpCombo.push_back(0);
266 tempIndexCombos.push_back(tmpCombo);
267 }
else if (numNonGlobal == 1) {
270 if (nonGlobalType ==
kEM) {
272 }
else if (nonGlobalType ==
kJet) {
274 }
else if (nonGlobalType ==
kMuon) {
278 tempIndexCombos.reserve(nParticles);
279 for (
int i = 0;
i < nParticles; ++
i) {
283 if (
j == nonGlobalIndex) {
284 tmpCombo.push_back(
i);
286 tmpCombo.push_back(0);
290 tempIndexCombos.push_back(tmpCombo);
293 char expected = IndexComboStates::kUnset;
294 if (
indexCombosState_.compare_exchange_strong(expected, kSetting, std::memory_order_acq_rel)) {
312 int particleInList = aCombo[aIndexInCombo];
316 }
else if (type ==
kJet) {
318 }
else if (type ==
kMuon) {
329 int particleInList = aCombo[aIndexInCombo];
340 int particleInList = aCombo[aIndexInCombo];
351 int particleInList = aCombo[aIndexInCombo];
371 std::vector<const reco::LeafCandidate*>
tmp;
std::atomic< char > indexCombosState_
void swap(L1ParticleMap &)
std::vector< unsigned int > L1IndexCombo
std::vector< L1ObjectType > L1ObjectTypeVector
const std::string & triggerName() const
const L1JetParticle * jetParticleInCombo(int aIndexInCombo, const L1IndexCombo &aCombo) const
L1IndexComboVector indexCombos_
const L1EtMissParticle * etMissParticleInCombo(int aIndexInCombo, const L1IndexCombo &aCombo) const
L1ParticleMap & operator=(const L1ParticleMap &)
static const std::string triggerNames_[kNumOfL1TriggerTypes]
const L1MuonParticle * muonParticleInCombo(int aIndexInCombo, const L1IndexCombo &aCombo) const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
L1EtMissParticleRefProd etMissParticle_
const L1EmParticle * emParticleInCombo(int aIndexInCombo, const L1IndexCombo &aCombo) const
void setIndexCombos() const
std::vector< const reco::LeafCandidate * > candidateCombo(const L1IndexCombo &aCombo) const
L1EmParticleVectorRef emParticles_
std::vector< L1IndexCombo > L1IndexComboVector
L1MuonParticleVectorRef muonParticles_
product_type const * get() const
static bool objectTypeIsGlobal(L1ObjectType type)
L1TriggerType triggerType() const
const reco::LeafCandidate * candidateInCombo(int aIndexInCombo, const L1IndexCombo &aCombo) const
const L1IndexComboVector & indexCombos() const
L1JetParticleVectorRef jetParticles_
L1ObjectTypeVector objectTypes_
L1TriggerType triggerType_