CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
l1extra::L1ParticleMap Class Reference

#include <L1ParticleMap.h>

Public Types

typedef std::vector< unsigned int > L1IndexCombo
 
typedef std::vector< L1IndexComboL1IndexComboVector
 
enum  L1ObjectType {
  kEM, kJet, kMuon, kEtMiss,
  kEtTotal, kEtHad, kNumOfL1ObjectTypes
}
 
typedef std::vector< L1ObjectTypeL1ObjectTypeVector
 
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
}
 

Public Member Functions

std::vector< const reco::LeafCandidate * > candidateCombo (const L1IndexCombo &aCombo) const
 
const reco::LeafCandidatecandidateInCombo (int aIndexInCombo, const L1IndexCombo &aCombo) const
 
const L1EmParticleemParticleInCombo (int aIndexInCombo, const L1IndexCombo &aCombo) const
 
const L1EmParticleVectorRefemParticles () const
 
const L1EtMissParticleRefProdetMissParticle () const
 
const L1EtMissParticleetMissParticleInCombo (int aIndexInCombo, const L1IndexCombo &aCombo) const
 
const L1IndexComboVectorindexCombos () const
 
const L1JetParticlejetParticleInCombo (int aIndexInCombo, const L1IndexCombo &aCombo) const
 
const L1JetParticleVectorRefjetParticles () 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 L1MuonParticlemuonParticleInCombo (int aIndexInCombo, const L1IndexCombo &aCombo) const
 
const L1MuonParticleVectorRefmuonParticles () const
 
int numOfObjects () const
 
const L1ObjectTypeVectorobjectTypes () const
 
L1ParticleMapoperator= (const L1ParticleMap &)
 
void swap (L1ParticleMap &)
 
bool triggerDecision () const
 
const std::string & triggerName () const
 
L1TriggerType triggerType () const
 
virtual ~L1ParticleMap ()
 

Static Public Member Functions

static bool objectTypeIsGlobal (L1ObjectType type)
 
static const std::string & triggerName (L1TriggerType type)
 
static L1TriggerType triggerType (const std::string &name)
 

Private Member Functions

void setIndexCombos () const
 

Private Attributes

L1EmParticleVectorRef emParticles_
 
L1EtMissParticleRefProd etMissParticle_
 
L1IndexComboVector indexCombos_
 
std::atomic< char > indexCombosState_
 
L1JetParticleVectorRef jetParticles_
 
L1MuonParticleVectorRef muonParticles_
 
L1ObjectTypeVector objectTypes_
 
bool triggerDecision_
 
L1TriggerType triggerType_
 

Static Private Attributes

static const std::string triggerNames_ [kNumOfL1TriggerTypes]
 

Detailed Description

Definition at line 117 of file L1ParticleMap.h.

Member Typedef Documentation

◆ L1IndexCombo

typedef std::vector<unsigned int> l1extra::L1ParticleMap::L1IndexCombo

Definition at line 262 of file L1ParticleMap.h.

◆ L1IndexComboVector

Definition at line 263 of file L1ParticleMap.h.

◆ L1ObjectTypeVector

Definition at line 264 of file L1ParticleMap.h.

Member Enumeration Documentation

◆ L1ObjectType

Enumerator
kEM 
kJet 
kMuon 
kEtMiss 
kEtTotal 
kEtHad 
kNumOfL1ObjectTypes 

Definition at line 119 of file L1ParticleMap.h.

119  {
120  kEM, // = isolated or non-isolated
121  kJet, // = central, forward, or tau
122  kMuon,
123  kEtMiss,
124  kEtTotal,
125  kEtHad,
127  };

◆ 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.

135  {
136  kSingleMu3,
137  kSingleMu5,
138  kSingleMu7,
139  kSingleMu10,
140  kSingleMu14,
141  kSingleMu20,
142  kSingleMu25,
150  kSingleEG5,
151  kSingleEG8,
152  kSingleEG10,
153  kSingleEG12,
154  kSingleEG15,
155  kSingleEG20,
156  kSingleEG25,
157  kSingleJet15,
158  kSingleJet20,
159  kSingleJet30,
160  kSingleJet50,
161  kSingleJet70,
173  kHTT100,
174  kHTT200,
175  kHTT250,
176  kHTT300,
177  kHTT400,
178  kHTT500,
179  kETM10,
180  kETM15,
181  kETM20,
182  kETM30,
183  kETM40,
184  kETM50,
185  kETM60,
186  kETT60,
187  kDoubleMu3,
190  kDoubleEG5,
191  kDoubleEG10,
192  kDoubleEG15,
193  kDoubleJet70,
199  kMu3_IsoEG5,
200  kMu5_IsoEG10,
201  kMu3_EG12,
202  kMu3_Jet15,
203  kMu5_Jet15,
204  kMu3_Jet70,
205  kMu5_Jet20,
215  kEG10_Jet15,
216  kEG12_Jet20,
217  kEG12_Jet70,
220  kMu3_HTT200,
222  kEG12_HTT200,
225  kMu3_ETM30,
227  kEG12_ETM30,
228  kJet70_ETM40,
233  kTripleMu3,
235  kTripleEG10,
236  kTripleJet50,
252  kQuadJet30,
258  kZeroBias,
260  };

Constructor & Destructor Documentation

◆ L1ParticleMap() [1/3]

L1ParticleMap::L1ParticleMap ( )

Definition at line 165 of file L1ParticleMap.cc.

165 {}

◆ L1ParticleMap() [2/3]

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() 
)

Definition at line 167 of file L1ParticleMap.cc.

References indexCombos(), and kSet.

◆ L1ParticleMap() [3/3]

L1ParticleMap::L1ParticleMap ( const L1ParticleMap rhs)

Definition at line 185 of file L1ParticleMap.cc.

186  : triggerType_(rhs.triggerType_),
188  indexCombosState_(IndexComboStates::kUnset),
194  indexCombos_() {
195  // do actual copying here;
196  if (rhs.indexCombosState_.load(std::memory_order_acquire) == kSet) {
198  indexCombosState_.store(kSet, std::memory_order_release);
199  }
200 }

References indexCombos_, indexCombosState_, and kSet.

◆ ~L1ParticleMap()

L1ParticleMap::~L1ParticleMap ( )
virtual

Definition at line 202 of file L1ParticleMap.cc.

202 {}

Member Function Documentation

◆ candidateCombo()

std::vector< const reco::LeafCandidate * > L1ParticleMap::candidateCombo ( const L1IndexCombo aCombo) const

Definition at line 370 of file L1ParticleMap.cc.

370  {
371  std::vector<const reco::LeafCandidate*> tmp;
372 
373  for (int i = 0; i < numOfObjects(); ++i) {
374  tmp.push_back(candidateInCombo(i, aCombo));
375  }
376 
377  return tmp;
378 }

References candidateInCombo(), mps_fire::i, numOfObjects(), and createJobs::tmp.

◆ candidateInCombo()

const reco::LeafCandidate * L1ParticleMap::candidateInCombo ( int  aIndexInCombo,
const L1IndexCombo aCombo 
) const

Definition at line 310 of file L1ParticleMap.cc.

310  {
311  L1ObjectType type = objectTypes_[aIndexInCombo];
312  int particleInList = aCombo[aIndexInCombo];
313 
314  if (type == kEM) {
315  return dynamic_cast<const reco::LeafCandidate*>(emParticles_[particleInList].get());
316  } else if (type == kJet) {
317  return dynamic_cast<const reco::LeafCandidate*>(jetParticles_[particleInList].get());
318  } else if (type == kMuon) {
319  return dynamic_cast<const reco::LeafCandidate*>(muonParticles_[particleInList].get());
320  } else if (type == kEtMiss || type == kEtTotal || type == kEtHad) {
321  return dynamic_cast<const reco::LeafCandidate*>(etMissParticle_.get());
322  } else {
323  return nullptr;
324  }
325 }

References emParticles_, etMissParticle_, edm::RefProd< C >::get(), get, jetParticles_, kEM, kEtHad, kEtMiss, kEtTotal, kJet, kMuon, muonParticles_, and objectTypes_.

Referenced by candidateCombo().

◆ emParticleInCombo()

const L1EmParticle * L1ParticleMap::emParticleInCombo ( int  aIndexInCombo,
const L1IndexCombo aCombo 
) const

Definition at line 327 of file L1ParticleMap.cc.

327  {
328  L1ObjectType type = objectTypes_[aIndexInCombo];
329  int particleInList = aCombo[aIndexInCombo];
330 
331  if (type == kEM) {
332  return emParticles_[particleInList].get();
333  } else {
334  return nullptr;
335  }
336 }

References emParticles_, kEM, and objectTypes_.

◆ emParticles()

const L1EmParticleVectorRef& l1extra::L1ParticleMap::emParticles ( ) const
inline

Definition at line 296 of file L1ParticleMap.h.

296 { return emParticles_; }

References emParticles_.

◆ etMissParticle()

const L1EtMissParticleRefProd& l1extra::L1ParticleMap::etMissParticle ( ) const
inline

Definition at line 302 of file L1ParticleMap.h.

302 { return etMissParticle_; }

References etMissParticle_.

◆ etMissParticleInCombo()

const L1EtMissParticle * L1ParticleMap::etMissParticleInCombo ( int  aIndexInCombo,
const L1IndexCombo aCombo 
) const

Definition at line 360 of file L1ParticleMap.cc.

360  {
361  L1ObjectType type = objectTypes_[aIndexInCombo];
362 
363  if (type == kEtMiss || type == kEtTotal || type == kEtHad) {
364  return etMissParticle_.get();
365  } else {
366  return nullptr;
367  }
368 }

References etMissParticle_, edm::RefProd< C >::get(), kEtHad, kEtMiss, kEtTotal, and objectTypes_.

◆ indexCombos()

const L1ParticleMap::L1IndexComboVector & L1ParticleMap::indexCombos ( ) const

Definition at line 236 of file L1ParticleMap.cc.

236  {
237  if (kSet != indexCombosState_.load(std::memory_order_acquire)) {
238  setIndexCombos();
239  }
240  return indexCombos_;
241 }

References indexCombos_, indexCombosState_, kSet, and setIndexCombos().

Referenced by L1ParticleMap().

◆ jetParticleInCombo()

const L1JetParticle * L1ParticleMap::jetParticleInCombo ( int  aIndexInCombo,
const L1IndexCombo aCombo 
) const

Definition at line 338 of file L1ParticleMap.cc.

338  {
339  L1ObjectType type = objectTypes_[aIndexInCombo];
340  int particleInList = aCombo[aIndexInCombo];
341 
342  if (type == kJet) {
343  return jetParticles_[particleInList].get();
344  } else {
345  return nullptr;
346  }
347 }

References jetParticles_, kJet, and objectTypes_.

◆ jetParticles()

const L1JetParticleVectorRef& l1extra::L1ParticleMap::jetParticles ( ) const
inline

Definition at line 298 of file L1ParticleMap.h.

298 { return jetParticles_; }

References jetParticles_.

◆ muonParticleInCombo()

const L1MuonParticle * L1ParticleMap::muonParticleInCombo ( int  aIndexInCombo,
const L1IndexCombo aCombo 
) const

Definition at line 349 of file L1ParticleMap.cc.

349  {
350  L1ObjectType type = objectTypes_[aIndexInCombo];
351  int particleInList = aCombo[aIndexInCombo];
352 
353  if (type == kMuon) {
354  return muonParticles_[particleInList].get();
355  } else {
356  return nullptr;
357  }
358 }

References kMuon, muonParticles_, and objectTypes_.

◆ muonParticles()

const L1MuonParticleVectorRef& l1extra::L1ParticleMap::muonParticles ( ) const
inline

Definition at line 300 of file L1ParticleMap.h.

300 { return muonParticles_; }

References muonParticles_.

◆ numOfObjects()

int l1extra::L1ParticleMap::numOfObjects ( ) const
inline

Definition at line 294 of file L1ParticleMap.h.

294 { return objectTypes_.size(); }

References objectTypes_.

Referenced by candidateCombo(), and setIndexCombos().

◆ objectTypeIsGlobal()

bool L1ParticleMap::objectTypeIsGlobal ( L1ObjectType  type)
static

Definition at line 395 of file L1ParticleMap.cc.

395  {
396  return type == kEtMiss || type == kEtTotal || type == kEtHad;
397 }

References kEtHad, kEtMiss, and kEtTotal.

Referenced by setIndexCombos().

◆ objectTypes()

const L1ObjectTypeVector& l1extra::L1ParticleMap::objectTypes ( ) const
inline

Definition at line 291 of file L1ParticleMap.h.

291 { return objectTypes_; }

References objectTypes_.

◆ operator=()

L1ParticleMap & L1ParticleMap::operator= ( const L1ParticleMap rhs)

Definition at line 207 of file L1ParticleMap.cc.

207  {
208  //An exception safe implementation is
209  L1ParticleMap temp(rhs);
210  swap(temp);
211 
212  return *this;
213 }

References swap(), and groupFilesInBlocks::temp.

◆ setIndexCombos()

void L1ParticleMap::setIndexCombos ( ) const
private

Definition at line 243 of file L1ParticleMap.cc.

243  {
244  // Determine the number of non-global objects. There should be 0 or 1.
245  int numNonGlobal = 0;
246  L1ObjectType nonGlobalType = kNumOfL1ObjectTypes;
247  int nonGlobalIndex = -1;
248 
249  L1IndexComboVector tempIndexCombos;
250  for (int i = 0; i < numOfObjects(); ++i) {
252  ++numNonGlobal;
253  nonGlobalType = objectTypes_[i];
254  nonGlobalIndex = i;
255  }
256  }
257 
258  if (numNonGlobal == 0) {
259  // Dummy entry for each object type.
260  L1IndexCombo tmpCombo;
261  tmpCombo.reserve(numOfObjects());
262  for (int i = 0; i < numOfObjects(); ++i) {
263  tmpCombo.push_back(0);
264  }
265 
266  tempIndexCombos.push_back(tmpCombo);
267  } else if (numNonGlobal == 1) {
268  int nParticles = 0;
269 
270  if (nonGlobalType == kEM) {
271  nParticles = emParticles_.size();
272  } else if (nonGlobalType == kJet) {
273  nParticles = jetParticles_.size();
274  } else if (nonGlobalType == kMuon) {
275  nParticles = muonParticles_.size();
276  }
277 
278  tempIndexCombos.reserve(nParticles);
279  for (int i = 0; i < nParticles; ++i) {
280  L1IndexCombo tmpCombo;
281  tmpCombo.reserve(numOfObjects());
282  for (int j = 0; j < numOfObjects(); ++j) {
283  if (j == nonGlobalIndex) {
284  tmpCombo.push_back(i);
285  } else {
286  tmpCombo.push_back(0);
287  }
288  }
289 
290  tempIndexCombos.push_back(tmpCombo);
291  }
292  }
293  char expected = IndexComboStates::kUnset;
294  if (indexCombosState_.compare_exchange_strong(expected, kSetting, std::memory_order_acq_rel)) {
295  //If this was read from an old file, it is possible that indexCombos_ is already set.
296  // This is the only safe place to check since we know no other thread can be attempting
297  // to change this value.
298  if (indexCombos_.empty()) {
299  indexCombos_.swap(tempIndexCombos);
300  }
301  indexCombosState_.store(kSet, std::memory_order_release);
302  } else {
303  //have to wait
304  while (kSet != indexCombosState_.load(std::memory_order_acquire)) {
305  hardware_pause();
306  }
307  }
308 }

References emParticles_, mps_fire::i, indexCombos_, indexCombosState_, dqmiolumiharvest::j, jetParticles_, kEM, kJet, kMuon, kNumOfL1ObjectTypes, kSet, muonParticles_, numOfObjects(), objectTypeIsGlobal(), and objectTypes_.

Referenced by indexCombos().

◆ swap()

void L1ParticleMap::swap ( L1ParticleMap rhs)

Definition at line 218 of file L1ParticleMap.cc.

218  {
221  indexCombosState_.store(
222  rhs.indexCombosState_.exchange(indexCombosState_.load(std::memory_order_acquire), std::memory_order_acq_rel),
223  std::memory_order_release);
230 }

References emParticles_, etMissParticle_, indexCombos_, indexCombosState_, jetParticles_, muonParticles_, objectTypes_, std::swap(), triggerDecision_, and triggerType_.

Referenced by operator=().

◆ triggerDecision()

bool l1extra::L1ParticleMap::triggerDecision ( ) const
inline

Definition at line 286 of file L1ParticleMap.h.

286 { return triggerDecision_; }

References triggerDecision_.

◆ triggerName() [1/2]

const std::string& l1extra::L1ParticleMap::triggerName ( ) const
inline

Definition at line 284 of file L1ParticleMap.h.

284 { return triggerName(triggerType_); }

References triggerName(), and triggerType_.

Referenced by triggerName().

◆ triggerName() [2/2]

const std::string & L1ParticleMap::triggerName ( L1TriggerType  type)
static

Definition at line 383 of file L1ParticleMap.cc.

383 { return triggerNames_[type]; }

References triggerNames_.

◆ triggerType() [1/2]

L1TriggerType l1extra::L1ParticleMap::triggerType ( ) const
inline

Definition at line 282 of file L1ParticleMap.h.

282 { return triggerType_; }

References triggerType_.

◆ triggerType() [2/2]

L1ParticleMap::L1TriggerType L1ParticleMap::triggerType ( const std::string &  name)
static

Definition at line 385 of file L1ParticleMap.cc.

385  {
386  for (int i = 0; i < kNumOfL1TriggerTypes; ++i) {
387  if (triggerNames_[i] == name) {
388  return (L1TriggerType)i;
389  }
390  }
391 
392  return kNumOfL1TriggerTypes;
393 }

References mps_fire::i, kNumOfL1TriggerTypes, Skims_PA_cff::name, and triggerNames_.

Member Data Documentation

◆ emParticles_

L1EmParticleVectorRef l1extra::L1ParticleMap::emParticles_
private

◆ etMissParticle_

L1EtMissParticleRefProd l1extra::L1ParticleMap::etMissParticle_
private

Definition at line 365 of file L1ParticleMap.h.

Referenced by candidateInCombo(), etMissParticle(), etMissParticleInCombo(), and swap().

◆ indexCombos_

L1IndexComboVector l1extra::L1ParticleMap::indexCombos_
mutableprivate

Definition at line 376 of file L1ParticleMap.h.

Referenced by indexCombos(), L1ParticleMap(), setIndexCombos(), and swap().

◆ indexCombosState_

std::atomic<char> l1extra::L1ParticleMap::indexCombosState_
mutableprivate

Definition at line 349 of file L1ParticleMap.h.

Referenced by indexCombos(), L1ParticleMap(), setIndexCombos(), and swap().

◆ jetParticles_

L1JetParticleVectorRef l1extra::L1ParticleMap::jetParticles_
private

◆ muonParticles_

L1MuonParticleVectorRef l1extra::L1ParticleMap::muonParticles_
private

◆ objectTypes_

L1ObjectTypeVector l1extra::L1ParticleMap::objectTypes_
private

◆ triggerDecision_

bool l1extra::L1ParticleMap::triggerDecision_
private

Definition at line 347 of file L1ParticleMap.h.

Referenced by swap(), and triggerDecision().

◆ triggerNames_

const std::string L1ParticleMap::triggerNames_
staticprivate

Definition at line 379 of file L1ParticleMap.h.

Referenced by triggerName(), and triggerType().

◆ triggerType_

L1TriggerType l1extra::L1ParticleMap::triggerType_
private

Definition at line 345 of file L1ParticleMap.h.

Referenced by swap(), triggerName(), and triggerType().

l1extra::L1ParticleMap::kSingleTauJet10
Definition: L1ParticleMap.h:165
l1extra::L1ParticleMap::kMu5_Jet20
Definition: L1ParticleMap.h:205
l1extra::L1ParticleMap::kETM10
Definition: L1ParticleMap.h:179
l1extra::L1ParticleMap::kETM40
Definition: L1ParticleMap.h:183
l1extra::L1ParticleMap::kSingleMu20
Definition: L1ParticleMap.h:141
l1extra::L1ParticleMap::kDoubleEG5
Definition: L1ParticleMap.h:190
l1extra::L1ParticleMap::kEG12_Jet70
Definition: L1ParticleMap.h:217
l1extra::L1ParticleMap::kSingleEG5
Definition: L1ParticleMap.h:150
mps_fire.i
i
Definition: mps_fire.py:355
l1extra::L1ParticleMap::kEG12_Jet20
Definition: L1ParticleMap.h:216
l1extra::L1ParticleMap::kIsoEG10_Jet20
Definition: L1ParticleMap.h:210
l1extra::L1ParticleMap::kSingleTauJet35
Definition: L1ParticleMap.h:168
l1extra::L1ParticleMap::kSingleJet100
Definition: L1ParticleMap.h:162
l1extra::L1ParticleMap::kHTT250
Definition: L1ParticleMap.h:175
l1extra::L1ParticleMap::kIsoEG10_TauJet30
Definition: L1ParticleMap.h:214
l1extra::L1ParticleMap::triggerName
const std::string & triggerName() const
Definition: L1ParticleMap.h:284
l1extra::L1ParticleMap::muonParticles_
L1MuonParticleVectorRef muonParticles_
Definition: L1ParticleMap.h:361
kSet
const char * kSet
Definition: RootMinuitCommands.h:19
l1extra::L1ParticleMap::L1IndexComboVector
std::vector< L1IndexCombo > L1IndexComboVector
Definition: L1ParticleMap.h:263
l1extra::L1ParticleMap::kDoubleEG10_Mu3
Definition: L1ParticleMap.h:241
l1extra::L1ParticleMap::kSingleEG20
Definition: L1ParticleMap.h:155
l1extra::L1ParticleMap::kMu3_Jet70
Definition: L1ParticleMap.h:204
l1extra::L1ParticleMap::kDoubleTauJet30
Definition: L1ParticleMap.h:196
l1extra::L1ParticleMap::kMu5_Jet15
Definition: L1ParticleMap.h:203
l1extra::L1ParticleMap::jetParticles
const L1JetParticleVectorRef & jetParticles() const
Definition: L1ParticleMap.h:298
l1extra::L1ParticleMap::kExclusiveJet25_Gap_Jet25
Definition: L1ParticleMap.h:255
l1extra::L1ParticleMap::kSingleMu3
Definition: L1ParticleMap.h:136
l1extra::L1ParticleMap::kDoubleMu3_ETM20
Definition: L1ParticleMap.h:247
l1extra::L1ParticleMap::kSingleEG8
Definition: L1ParticleMap.h:151
l1extra::L1ParticleMap::candidateInCombo
const reco::LeafCandidate * candidateInCombo(int aIndexInCombo, const L1IndexCombo &aCombo) const
Definition: L1ParticleMap.cc:310
l1extra::L1ParticleMap::kDoubleEG15
Definition: L1ParticleMap.h:192
l1extra::L1ParticleMap::kDoubleMu3
Definition: L1ParticleMap.h:187
l1extra::L1ParticleMap::kSingleJet30
Definition: L1ParticleMap.h:159
l1extra::L1ParticleMap::kSingleJet15
Definition: L1ParticleMap.h:157
l1extra::L1ParticleMap::kJet
Definition: L1ParticleMap.h:121
l1extra::L1ParticleMap::kSingleJet20
Definition: L1ParticleMap.h:158
l1extra::L1ParticleMap::objectTypes_
L1ObjectTypeVector objectTypes_
Definition: L1ParticleMap.h:355
l1extra::L1ParticleMap::kHTT400
Definition: L1ParticleMap.h:177
l1extra::L1ParticleMap::kDoubleEG10_HTT200
Definition: L1ParticleMap.h:244
l1extra::L1ParticleMap::kHTT100
Definition: L1ParticleMap.h:173
l1extra::L1ParticleMap::kSingleIsoEG20
Definition: L1ParticleMap.h:148
l1extra::L1ParticleMap::muonParticles
const L1MuonParticleVectorRef & muonParticles() const
Definition: L1ParticleMap.h:300
l1extra::L1ParticleMap::kMu5_TauJet20
Definition: L1ParticleMap.h:206
l1extra::L1ParticleMap::kDoubleJet50_HTT200
Definition: L1ParticleMap.h:245
l1extra::L1ParticleMap::kETM50
Definition: L1ParticleMap.h:184
l1extra::L1ParticleMap::kSingleEG12
Definition: L1ParticleMap.h:153
l1extra::L1ParticleMap::jetParticles_
L1JetParticleVectorRef jetParticles_
Definition: L1ParticleMap.h:360
l1extra::L1ParticleMap::objectTypes
const L1ObjectTypeVector & objectTypes() const
Definition: L1ParticleMap.h:291
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
l1extra::L1ParticleMap::triggerType_
L1TriggerType triggerType_
Definition: L1ParticleMap.h:345
l1extra::L1ParticleMap::kMu5_TauJet30
Definition: L1ParticleMap.h:207
l1extra::L1ParticleMap::kSingleMu14
Definition: L1ParticleMap.h:140
l1extra::L1ParticleMap::indexCombos
const L1IndexComboVector & indexCombos() const
Definition: L1ParticleMap.cc:236
l1extra::L1ParticleMap::triggerDecision_
bool triggerDecision_
Definition: L1ParticleMap.h:347
edm::RefProd::get
product_type const * get() const
Definition: RefProd.h:106
l1extra::L1ParticleMap::kIsoEG10_EG10
Definition: L1ParticleMap.h:208
l1extra::L1ParticleMap::kQuadJet30
Definition: L1ParticleMap.h:252
l1extra::L1ParticleMap::kEtMiss
Definition: L1ParticleMap.h:123
l1extra::L1ParticleMap::kDoubleTauJet40
Definition: L1ParticleMap.h:198
l1extra::L1ParticleMap::kTauJet20_ETM20
Definition: L1ParticleMap.h:229
l1extra::L1ParticleMap::kDoubleMu3_IsoEG5
Definition: L1ParticleMap.h:238
l1extra::L1ParticleMap::kDoubleJet100
Definition: L1ParticleMap.h:194
l1extra::L1ParticleMap::kHTT100_ETM30
Definition: L1ParticleMap.h:232
l1extra::L1ParticleMap::kSingleIsoEG8
Definition: L1ParticleMap.h:144
l1extra::L1ParticleMap::kIsoEG10_HTT200
Definition: L1ParticleMap.h:221
l1extra::L1ParticleMap::kDoubleMu3_HTT200
Definition: L1ParticleMap.h:242
l1extra::L1ParticleMap::kSingleTauJet30
Definition: L1ParticleMap.h:167
l1extra::L1ParticleMap::triggerType
L1TriggerType triggerType() const
Definition: L1ParticleMap.h:282
l1extra::L1ParticleMap::kJet70_HTT200
Definition: L1ParticleMap.h:223
l1extra::L1ParticleMap::emParticles_
L1EmParticleVectorRef emParticles_
Definition: L1ParticleMap.h:359
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
l1extra::L1ParticleMap::kETM20
Definition: L1ParticleMap.h:181
l1extra::L1ParticleMap::indexCombosState_
std::atomic< char > indexCombosState_
Definition: L1ParticleMap.h:349
l1extra::L1ParticleMap::kDoubleTauJet40_ETM20
Definition: L1ParticleMap.h:251
l1extra::L1ParticleMap::kHTT500
Definition: L1ParticleMap.h:178
l1extra::L1ParticleMap::kMu3_IsoEG5
Definition: L1ParticleMap.h:199
l1extra::L1ParticleMap::swap
void swap(L1ParticleMap &)
Definition: L1ParticleMap.cc:218
l1extra::L1ParticleMap::objectTypeIsGlobal
static bool objectTypeIsGlobal(L1ObjectType type)
Definition: L1ParticleMap.cc:395
l1extra::L1ParticleMap::kSingleJet70
Definition: L1ParticleMap.h:161
l1extra::L1ParticleMap::kEG12_ETM30
Definition: L1ParticleMap.h:227
l1extra::L1ParticleMap::kDoubleMu3_EG10
Definition: L1ParticleMap.h:239
l1extra::L1ParticleMap::kSingleTauJet40
Definition: L1ParticleMap.h:169
l1extra::L1ParticleMap::kMu3_EG12
Definition: L1ParticleMap.h:201
l1extra::L1ParticleMap::kEtHad
Definition: L1ParticleMap.h:125
l1extra::L1ParticleMap::kHTT300
Definition: L1ParticleMap.h:176
l1extra::L1ParticleMap::kDoubleIsoEG5_HTT200
Definition: L1ParticleMap.h:243
l1extra::L1ParticleMap::kSingleIsoEG5
Definition: L1ParticleMap.h:143
l1extra::L1ParticleMap::kDoubleIsoEG8
Definition: L1ParticleMap.h:188
l1extra::L1ParticleMap::kNumOfL1ObjectTypes
Definition: L1ParticleMap.h:126
l1extra::L1ParticleMap::kEG10_Jet15
Definition: L1ParticleMap.h:215
l1extra::L1ParticleMap::kTauJet40_HTT200
Definition: L1ParticleMap.h:224
l1extra::L1ParticleMap::kDoubleIsoEG5_Mu3
Definition: L1ParticleMap.h:240
l1extra::L1ParticleMap::kJet70_ETM40
Definition: L1ParticleMap.h:228
l1extra::L1ParticleMap::kIsoEG10_Jet15
Definition: L1ParticleMap.h:209
l1extra::L1ParticleMap::kETM15
Definition: L1ParticleMap.h:180
l1extra::L1ParticleMap::setIndexCombos
void setIndexCombos() const
Definition: L1ParticleMap.cc:243
l1extra::L1ParticleMap::kMu3_Jet15
Definition: L1ParticleMap.h:202
l1extra::L1ParticleMap::kMu3_HTT200
Definition: L1ParticleMap.h:220
l1extra::L1ParticleMap::L1ObjectType
L1ObjectType
Definition: L1ParticleMap.h:119
l1extra::L1ParticleMap::triggerDecision
bool triggerDecision() const
Definition: L1ParticleMap.h:286
l1extra::L1ParticleMap::kSingleIsoEG25
Definition: L1ParticleMap.h:149
l1extra::L1ParticleMap::kDoubleTauJet20
Definition: L1ParticleMap.h:195
l1extra::L1ParticleMap::kSingleTauJet20
Definition: L1ParticleMap.h:166
l1extra::L1ParticleMap::kTauJet30_ETM40
Definition: L1ParticleMap.h:231
l1extra::L1ParticleMap::kSingleJet50
Definition: L1ParticleMap.h:160
l1extra::L1ParticleMap
Definition: L1ParticleMap.h:117
hardware_pause
l1extra::L1ParticleMap::kDoubleJet70
Definition: L1ParticleMap.h:193
l1extra::L1ParticleMap::kETM30
Definition: L1ParticleMap.h:182
l1extra::L1ParticleMap::kTripleJet50
Definition: L1ParticleMap.h:236
l1extra::L1ParticleMap::kZeroBias
Definition: L1ParticleMap.h:258
l1extra::L1ParticleMap::kEG12_TauJet40
Definition: L1ParticleMap.h:218
l1extra::L1ParticleMap::kSingleIsoEG15
Definition: L1ParticleMap.h:147
l1extra::L1ParticleMap::kMu5_IsoEG10
Definition: L1ParticleMap.h:200
l1extra::L1ParticleMap::kDoubleJet50_ETM20
Definition: L1ParticleMap.h:250
l1extra::L1ParticleMap::kDoubleIsoEG5_ETM20
Definition: L1ParticleMap.h:248
l1extra::L1ParticleMap::kIsoEG10_Jet70
Definition: L1ParticleMap.h:212
l1extra::L1ParticleMap::kSingleMu5
Definition: L1ParticleMap.h:137
l1extra::L1ParticleMap::kDoubleEG10
Definition: L1ParticleMap.h:191
l1extra::L1ParticleMap::kMinBias_HTT10
Definition: L1ParticleMap.h:257
l1extra::L1ParticleMap::kSingleIsoEG12
Definition: L1ParticleMap.h:146
l1extra::L1ParticleMap::kSingleTauJet100
Definition: L1ParticleMap.h:172
get
#define get
l1extra::L1ParticleMap::kSingleMu10
Definition: L1ParticleMap.h:139
l1extra::L1ParticleMap::kSingleEG10
Definition: L1ParticleMap.h:152
l1extra::L1ParticleMap::kHTT200
Definition: L1ParticleMap.h:174
l1extra::L1ParticleMap::kExclusiveDoubleJet60
Definition: L1ParticleMap.h:254
l1extra::L1ParticleMap::etMissParticle
const L1EtMissParticleRefProd & etMissParticle() const
Definition: L1ParticleMap.h:302
l1extra::L1ParticleMap::kMu3_ETM30
Definition: L1ParticleMap.h:225
l1extra::L1ParticleMap::kJet70_TauJet40
Definition: L1ParticleMap.h:219
l1extra::L1ParticleMap::kNumOfL1TriggerTypes
Definition: L1ParticleMap.h:259
l1extra::L1ParticleMap::kSingleJet150
Definition: L1ParticleMap.h:163
type
type
Definition: HCALResponse.h:21
l1extra::L1ParticleMap::kETM60
Definition: L1ParticleMap.h:185
l1extra::L1ParticleMap::triggerNames_
static const std::string triggerNames_[kNumOfL1TriggerTypes]
Definition: L1ParticleMap.h:379
l1extra::L1ParticleMap::kTripleTauJet40
Definition: L1ParticleMap.h:237
l1extra::L1ParticleMap::kMuon
Definition: L1ParticleMap.h:122
l1extra::L1ParticleMap::kEtTotal
Definition: L1ParticleMap.h:124
l1extra::L1ParticleMap::numOfObjects
int numOfObjects() const
Definition: L1ParticleMap.h:294
l1extra::L1ParticleMap::kTripleMu3
Definition: L1ParticleMap.h:233
l1extra::L1ParticleMap::L1IndexCombo
std::vector< unsigned int > L1IndexCombo
Definition: L1ParticleMap.h:262
l1extra::L1ParticleMap::kDoubleEG10_ETM20
Definition: L1ParticleMap.h:249
l1extra::L1ParticleMap::kTripleEG10
Definition: L1ParticleMap.h:235
l1extra::L1ParticleMap::L1TriggerType
L1TriggerType
Definition: L1ParticleMap.h:135
l1extra::L1ParticleMap::kEG12_HTT200
Definition: L1ParticleMap.h:222
l1extra::L1ParticleMap::kDoubleIsoEG10
Definition: L1ParticleMap.h:189
l1extra::L1ParticleMap::kIsoEG10_TauJet20
Definition: L1ParticleMap.h:213
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
l1extra::L1ParticleMap::kTauJet30_ETM30
Definition: L1ParticleMap.h:230
l1extra::L1ParticleMap::kSingleIsoEG10
Definition: L1ParticleMap.h:145
l1extra::L1ParticleMap::kSingleMu7
Definition: L1ParticleMap.h:138
l1extra::L1ParticleMap::kEM
Definition: L1ParticleMap.h:120
l1extra::L1ParticleMap::emParticles
const L1EmParticleVectorRef & emParticles() const
Definition: L1ParticleMap.h:296
l1extra::L1ParticleMap::kSingleJet200
Definition: L1ParticleMap.h:164
l1extra::L1ParticleMap::kSingleMu25
Definition: L1ParticleMap.h:142
l1extra::L1ParticleMap::etMissParticle_
L1EtMissParticleRefProd etMissParticle_
Definition: L1ParticleMap.h:365
l1extra::L1ParticleMap::kIsoEG10_Jet30
Definition: L1ParticleMap.h:211
l1extra::L1ParticleMap::kDoubleTauJet35
Definition: L1ParticleMap.h:197
l1extra::L1ParticleMap::kSingleEG15
Definition: L1ParticleMap.h:154
l1extra::L1ParticleMap::indexCombos_
L1IndexComboVector indexCombos_
Definition: L1ParticleMap.h:376
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
l1extra::L1ParticleMap::kSingleEG25
Definition: L1ParticleMap.h:156
l1extra::L1ParticleMap::kETT60
Definition: L1ParticleMap.h:186
l1extra::L1ParticleMap::kIsoEG10_ETM30
Definition: L1ParticleMap.h:226
l1extra::L1ParticleMap::kDoubleTauJet40_HTT200
Definition: L1ParticleMap.h:246
l1extra::L1ParticleMap::kTripleIsoEG5
Definition: L1ParticleMap.h:234
l1extra::L1ParticleMap::kSingleTauJet80
Definition: L1ParticleMap.h:171
l1extra::L1ParticleMap::kSingleTauJet60
Definition: L1ParticleMap.h:170
l1extra::L1ParticleMap::kExclusiveDoubleIsoEG4
Definition: L1ParticleMap.h:253
l1extra::L1ParticleMap::kIsoEG10_Jet20_ForJet10
Definition: L1ParticleMap.h:256