#include <L1ParticleMap.h>
|
typedef std::vector< unsigned int > | L1IndexCombo |
|
typedef std::vector< L1IndexCombo > | L1IndexComboVector |
|
enum | L1ObjectType {
kEM,
kJet,
kMuon,
kEtMiss,
kEtTotal,
kEtHad,
kNumOfL1ObjectTypes
} |
|
typedef std::vector< L1ObjectType > | L1ObjectTypeVector |
|
enum | L1TriggerType {
kSingleMu3,
kSingleMu5,
kSingleMu7,
kSingleMu10,
kSingleMu14,
kSingleMu20,
kSingleMu25,
kSingleIsoEG5,
kSingleIsoEG8,
kSingleIsoEG10,
kSingleIsoEG12,
kSingleIsoEG15,
kSingleIsoEG20,
kSingleIsoEG25,
kSingleEG5,
kSingleEG8,
kSingleEG10,
kSingleEG12,
kSingleEG15,
kSingleEG20,
kSingleEG25,
kSingleJet15,
kSingleJet20,
kSingleJet30,
kSingleJet50,
kSingleJet70,
kSingleJet100,
kSingleJet150,
kSingleJet200,
kSingleTauJet10,
kSingleTauJet20,
kSingleTauJet30,
kSingleTauJet35,
kSingleTauJet40,
kSingleTauJet60,
kSingleTauJet80,
kSingleTauJet100,
kHTT100,
kHTT200,
kHTT250,
kHTT300,
kHTT400,
kHTT500,
kETM10,
kETM15,
kETM20,
kETM30,
kETM40,
kETM50,
kETM60,
kETT60,
kDoubleMu3,
kDoubleIsoEG8,
kDoubleIsoEG10,
kDoubleEG5,
kDoubleEG10,
kDoubleEG15,
kDoubleJet70,
kDoubleJet100,
kDoubleTauJet20,
kDoubleTauJet30,
kDoubleTauJet35,
kDoubleTauJet40,
kMu3_IsoEG5,
kMu5_IsoEG10,
kMu3_EG12,
kMu3_Jet15,
kMu5_Jet15,
kMu3_Jet70,
kMu5_Jet20,
kMu5_TauJet20,
kMu5_TauJet30,
kIsoEG10_EG10,
kIsoEG10_Jet15,
kIsoEG10_Jet20,
kIsoEG10_Jet30,
kIsoEG10_Jet70,
kIsoEG10_TauJet20,
kIsoEG10_TauJet30,
kEG10_Jet15,
kEG12_Jet20,
kEG12_Jet70,
kEG12_TauJet40,
kJet70_TauJet40,
kMu3_HTT200,
kIsoEG10_HTT200,
kEG12_HTT200,
kJet70_HTT200,
kTauJet40_HTT200,
kMu3_ETM30,
kIsoEG10_ETM30,
kEG12_ETM30,
kJet70_ETM40,
kTauJet20_ETM20,
kTauJet30_ETM30,
kTauJet30_ETM40,
kHTT100_ETM30,
kTripleMu3,
kTripleIsoEG5,
kTripleEG10,
kTripleJet50,
kTripleTauJet40,
kDoubleMu3_IsoEG5,
kDoubleMu3_EG10,
kDoubleIsoEG5_Mu3,
kDoubleEG10_Mu3,
kDoubleMu3_HTT200,
kDoubleIsoEG5_HTT200,
kDoubleEG10_HTT200,
kDoubleJet50_HTT200,
kDoubleTauJet40_HTT200,
kDoubleMu3_ETM20,
kDoubleIsoEG5_ETM20,
kDoubleEG10_ETM20,
kDoubleJet50_ETM20,
kDoubleTauJet40_ETM20,
kQuadJet30,
kExclusiveDoubleIsoEG4,
kExclusiveDoubleJet60,
kExclusiveJet25_Gap_Jet25,
kIsoEG10_Jet20_ForJet10,
kMinBias_HTT10,
kZeroBias,
kNumOfL1TriggerTypes
} |
|
|
std::vector< const reco::LeafCandidate * > | candidateCombo (const L1IndexCombo &aCombo) const |
|
const reco::LeafCandidate * | candidateInCombo (int aIndexInCombo, const L1IndexCombo &aCombo) const |
|
const L1EmParticle * | emParticleInCombo (int aIndexInCombo, const L1IndexCombo &aCombo) const |
|
const L1EmParticleVectorRef & | emParticles () const |
|
const L1EtMissParticleRefProd & | etMissParticle () const |
|
const L1EtMissParticle * | etMissParticleInCombo (int aIndexInCombo, const L1IndexCombo &aCombo) const |
|
const L1IndexComboVector & | indexCombos () const |
|
const L1JetParticle * | jetParticleInCombo (int aIndexInCombo, const L1IndexCombo &aCombo) const |
|
const L1JetParticleVectorRef & | jetParticles () const |
|
| L1ParticleMap () |
|
| L1ParticleMap (const L1ParticleMap &) |
|
| L1ParticleMap (L1TriggerType triggerType, bool triggerDecision, const L1ObjectTypeVector &objectTypes, const L1EmParticleVectorRef &emParticles=L1EmParticleVectorRef(), const L1JetParticleVectorRef &jetParticles=L1JetParticleVectorRef(), const L1MuonParticleVectorRef &muonParticles=L1MuonParticleVectorRef(), const L1EtMissParticleRefProd &etMissParticle=L1EtMissParticleRefProd(), const L1IndexComboVector &indexCombos=L1IndexComboVector()) |
|
const L1MuonParticle * | muonParticleInCombo (int aIndexInCombo, const L1IndexCombo &aCombo) const |
|
const L1MuonParticleVectorRef & | muonParticles () const |
|
int | numOfObjects () const |
|
const L1ObjectTypeVector & | objectTypes () const |
|
L1ParticleMap & | operator= (const L1ParticleMap &) |
|
void | swap (L1ParticleMap &) |
|
bool | triggerDecision () const |
|
const std::string & | triggerName () const |
|
L1TriggerType | triggerType () const |
|
virtual | ~L1ParticleMap () |
|
Definition at line 117 of file L1ParticleMap.h.
◆ L1IndexCombo
◆ L1IndexComboVector
◆ L1ObjectTypeVector
◆ L1ObjectType
Enumerator |
---|
kEM | |
kJet | |
kMuon | |
kEtMiss | |
kEtTotal | |
kEtHad | |
kNumOfL1ObjectTypes | |
Definition at line 119 of file L1ParticleMap.h.
◆ L1TriggerType
Enumerator |
---|
kSingleMu3 | |
kSingleMu5 | |
kSingleMu7 | |
kSingleMu10 | |
kSingleMu14 | |
kSingleMu20 | |
kSingleMu25 | |
kSingleIsoEG5 | |
kSingleIsoEG8 | |
kSingleIsoEG10 | |
kSingleIsoEG12 | |
kSingleIsoEG15 | |
kSingleIsoEG20 | |
kSingleIsoEG25 | |
kSingleEG5 | |
kSingleEG8 | |
kSingleEG10 | |
kSingleEG12 | |
kSingleEG15 | |
kSingleEG20 | |
kSingleEG25 | |
kSingleJet15 | |
kSingleJet20 | |
kSingleJet30 | |
kSingleJet50 | |
kSingleJet70 | |
kSingleJet100 | |
kSingleJet150 | |
kSingleJet200 | |
kSingleTauJet10 | |
kSingleTauJet20 | |
kSingleTauJet30 | |
kSingleTauJet35 | |
kSingleTauJet40 | |
kSingleTauJet60 | |
kSingleTauJet80 | |
kSingleTauJet100 | |
kHTT100 | |
kHTT200 | |
kHTT250 | |
kHTT300 | |
kHTT400 | |
kHTT500 | |
kETM10 | |
kETM15 | |
kETM20 | |
kETM30 | |
kETM40 | |
kETM50 | |
kETM60 | |
kETT60 | |
kDoubleMu3 | |
kDoubleIsoEG8 | |
kDoubleIsoEG10 | |
kDoubleEG5 | |
kDoubleEG10 | |
kDoubleEG15 | |
kDoubleJet70 | |
kDoubleJet100 | |
kDoubleTauJet20 | |
kDoubleTauJet30 | |
kDoubleTauJet35 | |
kDoubleTauJet40 | |
kMu3_IsoEG5 | |
kMu5_IsoEG10 | |
kMu3_EG12 | |
kMu3_Jet15 | |
kMu5_Jet15 | |
kMu3_Jet70 | |
kMu5_Jet20 | |
kMu5_TauJet20 | |
kMu5_TauJet30 | |
kIsoEG10_EG10 | |
kIsoEG10_Jet15 | |
kIsoEG10_Jet20 | |
kIsoEG10_Jet30 | |
kIsoEG10_Jet70 | |
kIsoEG10_TauJet20 | |
kIsoEG10_TauJet30 | |
kEG10_Jet15 | |
kEG12_Jet20 | |
kEG12_Jet70 | |
kEG12_TauJet40 | |
kJet70_TauJet40 | |
kMu3_HTT200 | |
kIsoEG10_HTT200 | |
kEG12_HTT200 | |
kJet70_HTT200 | |
kTauJet40_HTT200 | |
kMu3_ETM30 | |
kIsoEG10_ETM30 | |
kEG12_ETM30 | |
kJet70_ETM40 | |
kTauJet20_ETM20 | |
kTauJet30_ETM30 | |
kTauJet30_ETM40 | |
kHTT100_ETM30 | |
kTripleMu3 | |
kTripleIsoEG5 | |
kTripleEG10 | |
kTripleJet50 | |
kTripleTauJet40 | |
kDoubleMu3_IsoEG5 | |
kDoubleMu3_EG10 | |
kDoubleIsoEG5_Mu3 | |
kDoubleEG10_Mu3 | |
kDoubleMu3_HTT200 | |
kDoubleIsoEG5_HTT200 | |
kDoubleEG10_HTT200 | |
kDoubleJet50_HTT200 | |
kDoubleTauJet40_HTT200 | |
kDoubleMu3_ETM20 | |
kDoubleIsoEG5_ETM20 | |
kDoubleEG10_ETM20 | |
kDoubleJet50_ETM20 | |
kDoubleTauJet40_ETM20 | |
kQuadJet30 | |
kExclusiveDoubleIsoEG4 | |
kExclusiveDoubleJet60 | |
kExclusiveJet25_Gap_Jet25 | |
kIsoEG10_Jet20_ForJet10 | |
kMinBias_HTT10 | |
kZeroBias | |
kNumOfL1TriggerTypes | |
Definition at line 135 of file L1ParticleMap.h.
◆ L1ParticleMap() [1/3]
L1ParticleMap::L1ParticleMap |
( |
| ) |
|
◆ L1ParticleMap() [2/3]
◆ L1ParticleMap() [3/3]
◆ ~L1ParticleMap()
L1ParticleMap::~L1ParticleMap |
( |
| ) |
|
|
virtual |
◆ candidateCombo()
◆ candidateInCombo()
Definition at line 310 of file L1ParticleMap.cc.
312 int particleInList = aCombo[aIndexInCombo];
315 return dynamic_cast<const reco::LeafCandidate*>(
emParticles_[particleInList].
get());
317 return dynamic_cast<const reco::LeafCandidate*>(
jetParticles_[particleInList].
get());
319 return dynamic_cast<const reco::LeafCandidate*>(
muonParticles_[particleInList].
get());
References emParticles_, etMissParticle_, edm::RefProd< C >::get(), get, jetParticles_, kEM, kEtHad, kEtMiss, kEtTotal, kJet, kMuon, muonParticles_, and objectTypes_.
Referenced by candidateCombo().
◆ emParticleInCombo()
◆ emParticles()
◆ etMissParticle()
◆ etMissParticleInCombo()
◆ indexCombos()
◆ jetParticleInCombo()
◆ jetParticles()
◆ muonParticleInCombo()
◆ muonParticles()
◆ numOfObjects()
int l1extra::L1ParticleMap::numOfObjects |
( |
| ) |
const |
|
inline |
◆ objectTypeIsGlobal()
◆ objectTypes()
◆ operator=()
◆ setIndexCombos()
void L1ParticleMap::setIndexCombos |
( |
| ) |
const |
|
private |
Definition at line 243 of file L1ParticleMap.cc.
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)) {
References emParticles_, mps_fire::i, indexCombos_, indexCombosState_, dqmiolumiharvest::j, jetParticles_, kEM, kJet, kMuon, kNumOfL1ObjectTypes, kSet, muonParticles_, numOfObjects(), objectTypeIsGlobal(), and objectTypes_.
Referenced by indexCombos().
◆ swap()
◆ triggerDecision()
bool l1extra::L1ParticleMap::triggerDecision |
( |
| ) |
const |
|
inline |
◆ triggerName() [1/2]
const std::string& l1extra::L1ParticleMap::triggerName |
( |
| ) |
const |
|
inline |
◆ triggerName() [2/2]
const std::string & L1ParticleMap::triggerName |
( |
L1TriggerType |
type | ) |
|
|
static |
◆ triggerType() [1/2]
◆ triggerType() [2/2]
◆ emParticles_
◆ etMissParticle_
◆ indexCombos_
◆ indexCombosState_
std::atomic<char> l1extra::L1ParticleMap::indexCombosState_ |
|
mutableprivate |
◆ jetParticles_
◆ muonParticles_
◆ objectTypes_
◆ triggerDecision_
bool l1extra::L1ParticleMap::triggerDecision_ |
|
private |
◆ triggerNames_
const std::string L1ParticleMap::triggerNames_ |
|
staticprivate |
◆ triggerType_
const std::string & triggerName() const
L1MuonParticleVectorRef muonParticles_
std::vector< L1IndexCombo > L1IndexComboVector
const L1JetParticleVectorRef & jetParticles() const
const reco::LeafCandidate * candidateInCombo(int aIndexInCombo, const L1IndexCombo &aCombo) const
L1ObjectTypeVector objectTypes_
const L1MuonParticleVectorRef & muonParticles() const
L1JetParticleVectorRef jetParticles_
const L1ObjectTypeVector & objectTypes() const
L1TriggerType triggerType_
const L1IndexComboVector & indexCombos() const
L1TriggerType triggerType() const
L1EmParticleVectorRef emParticles_
std::atomic< char > indexCombosState_
void swap(L1ParticleMap &)
static bool objectTypeIsGlobal(L1ObjectType type)
void setIndexCombos() const
bool triggerDecision() const
const L1EtMissParticleRefProd & etMissParticle() const
static const std::string triggerNames_[kNumOfL1TriggerTypes]
std::vector< unsigned int > L1IndexCombo
const L1EmParticleVectorRef & emParticles() const
L1EtMissParticleRefProd etMissParticle_
L1IndexComboVector indexCombos_