CMS 3D CMS Logo

TriggerRefsCollections.h
Go to the documentation of this file.
1 #ifndef HLTReco_TriggerRefsCollections_h
2 #define HLTReco_TriggerRefsCollections_h
3 
21 
24 
34 
40 
57 
60 
61 #include <cassert>
62 #include <vector>
63 
64 #include <typeinfo>
65 
66 namespace trigger {
67 
68  typedef std::vector<reco::RecoEcalCandidateRef> VRphoton;
69  typedef std::vector<reco::ElectronRef> VRelectron;
70  typedef std::vector<reco::RecoChargedCandidateRef> VRmuon;
71  typedef std::vector<reco::CaloJetRef> VRjet;
72  typedef std::vector<reco::CompositeCandidateRef> VRcomposite;
73  typedef std::vector<reco::METRef> VRbasemet;
74  typedef std::vector<reco::CaloMETRef> VRcalomet;
75  typedef std::vector<reco::IsolatedPixelTrackCandidateRef> VRpixtrack;
76 
77  typedef std::vector<l1extra::L1EmParticleRef> VRl1em; //deprecate
78  typedef std::vector<l1extra::L1MuonParticleRef> VRl1muon; //deprecate
79  typedef std::vector<l1extra::L1JetParticleRef> VRl1jet; //deprecate
80  typedef std::vector<l1extra::L1EtMissParticleRef> VRl1etmiss; //deprecate
81  typedef std::vector<l1extra::L1HFRingsRef> VRl1hfrings; //deprecate
82 
89 
90  /* Phase-2 */
98 
99  typedef std::vector<reco::PFJetRef> VRpfjet;
100  typedef std::vector<reco::PFTauRef> VRpftau;
101  typedef std::vector<reco::PFMETRef> VRpfmet;
102 
105  private:
123 
134 
147 
148  /* Phase-2 */
163 
170 
172  public:
175  : photonIds_(),
176  photonRefs_(),
177  electronIds_(),
178  electronRefs_(),
179  muonIds_(),
180  muonRefs_(),
181  jetIds_(),
182  jetRefs_(),
183  compositeIds_(),
184  compositeRefs_(),
185  basemetIds_(),
186  basemetRefs_(),
187  calometIds_(),
188  calometRefs_(),
189  pixtrackIds_(),
190  pixtrackRefs_(),
191 
192  l1emIds_(),
193  l1emRefs_(),
194  l1muonIds_(),
195  l1muonRefs_(),
196  l1jetIds_(),
197  l1jetRefs_(),
198  l1etmissIds_(),
199  l1etmissRefs_(),
200  l1hfringsIds_(),
201  l1hfringsRefs_(),
202 
203  l1tmuonIds_(),
204  l1tmuonRefs_(),
207  l1tegammaIds_(),
208  l1tegammaRefs_(),
209  l1tjetIds_(),
210  l1tjetRefs_(),
211  l1ttauIds_(),
212  l1ttauRefs_(),
213  l1tetsumIds_(),
214  l1tetsumRefs_(),
215 
216  /* Phase-2 */
217  l1ttkmuonIds_(),
218  l1ttkmuonRefs_(),
219  l1ttkeleIds_(),
220  l1ttkeleRefs_(),
221  l1ttkemIds_(),
222  l1ttkemRefs_(),
223  l1tpfjetIds_(),
224  l1tpfjetRefs_(),
225  l1tpftauIds_(),
226  l1tpftauRefs_(),
227  l1thpspftauIds_(),
229  l1tpftrackIds_(),
230  l1tpftrackRefs_(),
231 
232  pfjetIds_(),
233  pfjetRefs_(),
234  pftauIds_(),
235  pftauRefs_(),
236  pfmetIds_(),
237  pfmetRefs_() {}
238 
241  std::swap(photonIds_, other.photonIds_);
242  std::swap(photonRefs_, other.photonRefs_);
243  std::swap(electronIds_, other.electronIds_);
244  std::swap(electronRefs_, other.electronRefs_);
245  std::swap(muonIds_, other.muonIds_);
246  std::swap(muonRefs_, other.muonRefs_);
247  std::swap(jetIds_, other.jetIds_);
248  std::swap(jetRefs_, other.jetRefs_);
249  std::swap(compositeIds_, other.compositeIds_);
250  std::swap(compositeRefs_, other.compositeRefs_);
251  std::swap(basemetIds_, other.basemetIds_);
252  std::swap(basemetRefs_, other.basemetRefs_);
253  std::swap(calometIds_, other.calometIds_);
254  std::swap(calometRefs_, other.calometRefs_);
255  std::swap(pixtrackIds_, other.pixtrackIds_);
256  std::swap(pixtrackRefs_, other.pixtrackRefs_);
257 
258  std::swap(l1emIds_, other.l1emIds_);
259  std::swap(l1emRefs_, other.l1emRefs_);
260  std::swap(l1muonIds_, other.l1muonIds_);
261  std::swap(l1muonRefs_, other.l1muonRefs_);
262  std::swap(l1jetIds_, other.l1jetIds_);
263  std::swap(l1jetRefs_, other.l1jetRefs_);
264  std::swap(l1etmissIds_, other.l1etmissIds_);
265  std::swap(l1etmissRefs_, other.l1etmissRefs_);
266  std::swap(l1hfringsIds_, other.l1hfringsIds_);
267  std::swap(l1hfringsRefs_, other.l1hfringsRefs_);
268 
269  std::swap(l1tmuonIds_, other.l1tmuonIds_);
270  std::swap(l1tmuonRefs_, other.l1tmuonRefs_);
271  std::swap(l1tmuonShowerIds_, other.l1tmuonShowerIds_);
272  std::swap(l1tmuonShowerRefs_, other.l1tmuonShowerRefs_);
273  std::swap(l1tegammaIds_, other.l1tegammaIds_);
274  std::swap(l1tegammaRefs_, other.l1tegammaRefs_);
275  std::swap(l1tjetIds_, other.l1tjetIds_);
276  std::swap(l1tjetRefs_, other.l1tjetRefs_);
277  std::swap(l1ttauIds_, other.l1ttauIds_);
278  std::swap(l1ttauRefs_, other.l1ttauRefs_);
279  std::swap(l1tetsumIds_, other.l1tetsumIds_);
280  std::swap(l1tetsumRefs_, other.l1tetsumRefs_);
281 
282  /* Phase-2 */
283  std::swap(l1ttkmuonIds_, other.l1ttkmuonIds_);
284  std::swap(l1ttkmuonRefs_, other.l1ttkmuonRefs_);
285  std::swap(l1ttkeleIds_, other.l1ttkeleIds_);
286  std::swap(l1ttkeleRefs_, other.l1ttkeleRefs_);
287  std::swap(l1ttkemIds_, other.l1ttkemIds_);
288  std::swap(l1ttkemRefs_, other.l1ttkemRefs_);
289  std::swap(l1tpfjetIds_, other.l1tpfjetIds_);
290  std::swap(l1tpfjetRefs_, other.l1tpfjetRefs_);
291  std::swap(l1tpftauIds_, other.l1tpftauIds_);
292  std::swap(l1tpftauRefs_, other.l1tpftauRefs_);
293  std::swap(l1thpspftauIds_, other.l1thpspftauIds_);
294  std::swap(l1thpspftauRefs_, other.l1thpspftauRefs_);
295  std::swap(l1tpftrackIds_, other.l1tpftrackIds_);
296  std::swap(l1tpftrackRefs_, other.l1tpftrackRefs_);
297 
298  std::swap(pfjetIds_, other.pfjetIds_);
299  std::swap(pfjetRefs_, other.pfjetRefs_);
300  std::swap(pftauIds_, other.pftauIds_);
301  std::swap(pftauRefs_, other.pftauRefs_);
302  std::swap(pfmetIds_, other.pfmetIds_);
303  std::swap(pfmetRefs_, other.pfmetRefs_);
304  }
305 
307  void addObject(int id, const reco::RecoEcalCandidateRef& ref) {
308  photonIds_.push_back(id);
309  photonRefs_.push_back(ref);
310  }
311  void addObject(int id, const reco::ElectronRef& ref) {
312  electronIds_.push_back(id);
313  electronRefs_.push_back(ref);
314  }
315  void addObject(int id, const reco::RecoChargedCandidateRef& ref) {
316  muonIds_.push_back(id);
317  muonRefs_.push_back(ref);
318  }
319  void addObject(int id, const reco::CaloJetRef& ref) {
320  jetIds_.push_back(id);
321  jetRefs_.push_back(ref);
322  }
323  void addObject(int id, const reco::CompositeCandidateRef& ref) {
324  compositeIds_.push_back(id);
325  compositeRefs_.push_back(ref);
326  }
327  void addObject(int id, const reco::METRef& ref) {
328  basemetIds_.push_back(id);
329  basemetRefs_.push_back(ref);
330  }
331  void addObject(int id, const reco::CaloMETRef& ref) {
332  calometIds_.push_back(id);
333  calometRefs_.push_back(ref);
334  }
336  pixtrackIds_.push_back(id);
337  pixtrackRefs_.push_back(ref);
338  }
339 
340  void addObject(int id, const l1extra::L1EmParticleRef& ref) {
341  l1emIds_.push_back(id);
342  l1emRefs_.push_back(ref);
343  }
344  void addObject(int id, const l1extra::L1MuonParticleRef& ref) {
345  l1muonIds_.push_back(id);
346  l1muonRefs_.push_back(ref);
347  }
348  void addObject(int id, const l1extra::L1JetParticleRef& ref) {
349  l1jetIds_.push_back(id);
350  l1jetRefs_.push_back(ref);
351  }
352  void addObject(int id, const l1extra::L1EtMissParticleRef& ref) {
353  l1etmissIds_.push_back(id);
354  l1etmissRefs_.push_back(ref);
355  }
356  void addObject(int id, const l1extra::L1HFRingsRef& ref) {
357  l1hfringsIds_.push_back(id);
358  l1hfringsRefs_.push_back(ref);
359  }
360  void addObject(int id, const l1t::MuonRef& ref) {
361  l1tmuonIds_.push_back(id);
362  l1tmuonRefs_.push_back(ref);
363  }
364  void addObject(int id, const l1t::MuonShowerRef& ref) {
365  l1tmuonShowerIds_.push_back(id);
366  l1tmuonShowerRefs_.push_back(ref);
367  }
368  void addObject(int id, const l1t::EGammaRef& ref) {
369  l1tegammaIds_.push_back(id);
370  l1tegammaRefs_.push_back(ref);
371  }
372  void addObject(int id, const l1t::JetRef& ref) {
373  l1tjetIds_.push_back(id);
374  l1tjetRefs_.push_back(ref);
375  }
376  void addObject(int id, const l1t::TauRef& ref) {
377  l1ttauIds_.push_back(id);
378  l1ttauRefs_.push_back(ref);
379  }
380  void addObject(int id, const l1t::EtSumRef& ref) {
381  l1tetsumIds_.push_back(id);
382  l1tetsumRefs_.push_back(ref);
383  }
384 
385  /* Phase-2 */
386  void addObject(int id, const l1t::TkMuonRef& ref) {
387  l1ttkmuonIds_.push_back(id);
388  l1ttkmuonRefs_.push_back(ref);
389  }
390  void addObject(int id, const l1t::TkElectronRef& ref) {
391  l1ttkeleIds_.push_back(id);
392  l1ttkeleRefs_.push_back(ref);
393  }
394  void addObject(int id, const l1t::TkEmRef& ref) {
395  l1ttkemIds_.push_back(id);
396  l1ttkemRefs_.push_back(ref);
397  }
398  void addObject(int id, const l1t::PFJetRef& ref) {
399  l1tpfjetIds_.push_back(id);
400  l1tpfjetRefs_.push_back(ref);
401  }
402  void addObject(int id, const l1t::PFTauRef& ref) {
403  l1tpftauIds_.push_back(id);
404  l1tpftauRefs_.push_back(ref);
405  }
406  void addObject(int id, const l1t::HPSPFTauRef& ref) {
407  l1thpspftauIds_.push_back(id);
408  l1thpspftauRefs_.push_back(ref);
409  }
410  void addObject(int id, const l1t::PFTrackRef& ref) {
411  l1tpftrackIds_.push_back(id);
412  l1tpftrackRefs_.push_back(ref);
413  }
414  void addObject(int id, const reco::PFJetRef& ref) {
415  pfjetIds_.push_back(id);
416  pfjetRefs_.push_back(ref);
417  }
418  void addObject(int id, const reco::PFTauRef& ref) {
419  pftauIds_.push_back(id);
420  pftauRefs_.push_back(ref);
421  }
422  void addObject(int id, const reco::PFMETRef& ref) {
423  pfmetIds_.push_back(id);
424  pfmetRefs_.push_back(ref);
425  }
426 
428  size_type addObjects(const Vids& ids, const VRphoton& refs) {
429  assert(ids.size() == refs.size());
430  photonIds_.insert(photonIds_.end(), ids.begin(), ids.end());
431  photonRefs_.insert(photonRefs_.end(), refs.begin(), refs.end());
432  return photonIds_.size();
433  }
434  size_type addObjects(const Vids& ids, const VRelectron& refs) {
435  assert(ids.size() == refs.size());
436  electronIds_.insert(electronIds_.end(), ids.begin(), ids.end());
437  electronRefs_.insert(electronRefs_.end(), refs.begin(), refs.end());
438  return electronIds_.size();
439  }
440  size_type addObjects(const Vids& ids, const VRmuon& refs) {
441  assert(ids.size() == refs.size());
442  muonIds_.insert(muonIds_.end(), ids.begin(), ids.end());
443  muonRefs_.insert(muonRefs_.end(), refs.begin(), refs.end());
444  return muonIds_.size();
445  }
446  size_type addObjects(const Vids& ids, const VRjet& refs) {
447  assert(ids.size() == refs.size());
448  jetIds_.insert(jetIds_.end(), ids.begin(), ids.end());
449  jetRefs_.insert(jetRefs_.end(), refs.begin(), refs.end());
450  return jetIds_.size();
451  }
452  size_type addObjects(const Vids& ids, const VRcomposite& refs) {
453  assert(ids.size() == refs.size());
454  compositeIds_.insert(compositeIds_.end(), ids.begin(), ids.end());
455  compositeRefs_.insert(compositeRefs_.end(), refs.begin(), refs.end());
456  return compositeIds_.size();
457  }
458  size_type addObjects(const Vids& ids, const VRbasemet& refs) {
459  assert(ids.size() == refs.size());
460  basemetIds_.insert(basemetIds_.end(), ids.begin(), ids.end());
461  basemetRefs_.insert(basemetRefs_.end(), refs.begin(), refs.end());
462  return basemetIds_.size();
463  }
464  size_type addObjects(const Vids& ids, const VRcalomet& refs) {
465  assert(ids.size() == refs.size());
466  calometIds_.insert(calometIds_.end(), ids.begin(), ids.end());
467  calometRefs_.insert(calometRefs_.end(), refs.begin(), refs.end());
468  return calometIds_.size();
469  }
470  size_type addObjects(const Vids& ids, const VRpixtrack& refs) {
471  assert(ids.size() == refs.size());
472  pixtrackIds_.insert(pixtrackIds_.end(), ids.begin(), ids.end());
473  pixtrackRefs_.insert(pixtrackRefs_.end(), refs.begin(), refs.end());
474  return pixtrackIds_.size();
475  }
476 
477  size_type addObjects(const Vids& ids, const VRl1em& refs) {
478  assert(ids.size() == refs.size());
479  l1emIds_.insert(l1emIds_.end(), ids.begin(), ids.end());
480  l1emRefs_.insert(l1emRefs_.end(), refs.begin(), refs.end());
481  return l1emIds_.size();
482  }
483  size_type addObjects(const Vids& ids, const VRl1muon& refs) {
484  assert(ids.size() == refs.size());
485  l1muonIds_.insert(l1muonIds_.end(), ids.begin(), ids.end());
486  l1muonRefs_.insert(l1muonRefs_.end(), refs.begin(), refs.end());
487  return l1muonIds_.size();
488  }
489  size_type addObjects(const Vids& ids, const VRl1jet& refs) {
490  assert(ids.size() == refs.size());
491  l1jetIds_.insert(l1jetIds_.end(), ids.begin(), ids.end());
492  l1jetRefs_.insert(l1jetRefs_.end(), refs.begin(), refs.end());
493  return l1jetIds_.size();
494  }
495  size_type addObjects(const Vids& ids, const VRl1etmiss& refs) {
496  assert(ids.size() == refs.size());
497  l1etmissIds_.insert(l1etmissIds_.end(), ids.begin(), ids.end());
498  l1etmissRefs_.insert(l1etmissRefs_.end(), refs.begin(), refs.end());
499  return l1etmissIds_.size();
500  }
501  size_type addObjects(const Vids& ids, const VRl1tmuon& refs) {
502  assert(ids.size() == refs.size());
503  l1tmuonIds_.insert(l1tmuonIds_.end(), ids.begin(), ids.end());
504  l1tmuonRefs_.insert(l1tmuonRefs_.end(), refs.begin(), refs.end());
505  return l1tmuonIds_.size();
506  }
507  size_type addObjects(const Vids& ids, const VRl1tmuonShower& refs) {
508  assert(ids.size() == refs.size());
509  l1tmuonShowerIds_.insert(l1tmuonShowerIds_.end(), ids.begin(), ids.end());
510  l1tmuonShowerRefs_.insert(l1tmuonShowerRefs_.end(), refs.begin(), refs.end());
511  return l1tmuonShowerIds_.size();
512  }
513  size_type addObjects(const Vids& ids, const VRl1tegamma& refs) {
514  assert(ids.size() == refs.size());
515  l1tegammaIds_.insert(l1tegammaIds_.end(), ids.begin(), ids.end());
516  l1tegammaRefs_.insert(l1tegammaRefs_.end(), refs.begin(), refs.end());
517  return l1tegammaIds_.size();
518  }
519  size_type addObjects(const Vids& ids, const VRl1tjet& refs) {
520  assert(ids.size() == refs.size());
521  l1tjetIds_.insert(l1tjetIds_.end(), ids.begin(), ids.end());
522  l1tjetRefs_.insert(l1tjetRefs_.end(), refs.begin(), refs.end());
523  return l1tjetIds_.size();
524  }
525  size_type addObjects(const Vids& ids, const VRl1ttau& refs) {
526  assert(ids.size() == refs.size());
527  l1ttauIds_.insert(l1ttauIds_.end(), ids.begin(), ids.end());
528  l1ttauRefs_.insert(l1ttauRefs_.end(), refs.begin(), refs.end());
529  return l1ttauIds_.size();
530  }
531  size_type addObjects(const Vids& ids, const VRl1tetsum& refs) {
532  assert(ids.size() == refs.size());
533  l1tetsumIds_.insert(l1tetsumIds_.end(), ids.begin(), ids.end());
534  l1tetsumRefs_.insert(l1tetsumRefs_.end(), refs.begin(), refs.end());
535  return l1tetsumIds_.size();
536  }
537  size_type addObjects(const Vids& ids, const VRl1hfrings& refs) {
538  assert(ids.size() == refs.size());
539  l1hfringsIds_.insert(l1hfringsIds_.end(), ids.begin(), ids.end());
540  l1hfringsRefs_.insert(l1hfringsRefs_.end(), refs.begin(), refs.end());
541  return l1hfringsIds_.size();
542  }
543 
544  /* Phase-2 */
545  size_type addObjects(const Vids& ids, const VRl1ttkmuon& refs) {
546  assert(ids.size() == refs.size());
547  l1ttkmuonIds_.insert(l1ttkmuonIds_.end(), ids.begin(), ids.end());
548  l1ttkmuonRefs_.insert(l1ttkmuonRefs_.end(), refs.begin(), refs.end());
549  return l1ttkmuonIds_.size();
550  }
551  size_type addObjects(const Vids& ids, const VRl1ttkele& refs) {
552  assert(ids.size() == refs.size());
553  l1ttkeleIds_.insert(l1ttkeleIds_.end(), ids.begin(), ids.end());
554  l1ttkeleRefs_.insert(l1ttkeleRefs_.end(), refs.begin(), refs.end());
555  return l1ttkeleIds_.size();
556  }
557  size_type addObjects(const Vids& ids, const VRl1ttkem& refs) {
558  assert(ids.size() == refs.size());
559  l1ttkemIds_.insert(l1ttkemIds_.end(), ids.begin(), ids.end());
560  l1ttkemRefs_.insert(l1ttkemRefs_.end(), refs.begin(), refs.end());
561  return l1ttkemIds_.size();
562  }
563  size_type addObjects(const Vids& ids, const VRl1tpfjet& refs) {
564  assert(ids.size() == refs.size());
565  l1tpfjetIds_.insert(l1tpfjetIds_.end(), ids.begin(), ids.end());
566  l1tpfjetRefs_.insert(l1tpfjetRefs_.end(), refs.begin(), refs.end());
567  return l1tpfjetIds_.size();
568  }
569  size_type addObjects(const Vids& ids, const VRl1tpftau& refs) {
570  assert(ids.size() == refs.size());
571  l1tpftauIds_.insert(l1tpftauIds_.end(), ids.begin(), ids.end());
572  l1tpftauRefs_.insert(l1tpftauRefs_.end(), refs.begin(), refs.end());
573  return l1tpftauIds_.size();
574  }
575  size_type addObjects(const Vids& ids, const VRl1thpspftau& refs) {
576  assert(ids.size() == refs.size());
577  l1thpspftauIds_.insert(l1thpspftauIds_.end(), ids.begin(), ids.end());
578  l1thpspftauRefs_.insert(l1thpspftauRefs_.end(), refs.begin(), refs.end());
579  return l1thpspftauIds_.size();
580  }
581  size_type addObjects(const Vids& ids, const VRl1tpftrack& refs) {
582  assert(ids.size() == refs.size());
583  l1tpftrackIds_.insert(l1tpftrackIds_.end(), ids.begin(), ids.end());
584  l1tpftrackRefs_.insert(l1tpftrackRefs_.end(), refs.begin(), refs.end());
585  return l1tpftrackIds_.size();
586  }
587 
588  size_type addObjects(const Vids& ids, const VRpfjet& refs) {
589  assert(ids.size() == refs.size());
590  pfjetIds_.insert(pfjetIds_.end(), ids.begin(), ids.end());
591  pfjetRefs_.insert(pfjetRefs_.end(), refs.begin(), refs.end());
592  return pfjetIds_.size();
593  }
594  size_type addObjects(const Vids& ids, const VRpftau& refs) {
595  assert(ids.size() == refs.size());
596  pftauIds_.insert(pftauIds_.end(), ids.begin(), ids.end());
597  pftauRefs_.insert(pftauRefs_.end(), refs.begin(), refs.end());
598  return pftauIds_.size();
599  }
600  size_type addObjects(const Vids& ids, const VRpfmet& refs) {
601  assert(ids.size() == refs.size());
602  pfmetIds_.insert(pfmetIds_.end(), ids.begin(), ids.end());
603  pfmetRefs_.insert(pfmetRefs_.end(), refs.begin(), refs.end());
604  return pfmetIds_.size();
605  }
606 
608  void getObjects(Vids& ids, VRphoton& refs) const { getObjects(ids, refs, 0, photonIds_.size()); }
609  void getObjects(Vids& ids, VRphoton& refs, size_type begin, size_type end) const {
610  assert(begin <= end);
611  assert(end <= photonIds_.size());
612  const size_type n(end - begin);
613  ids.resize(n);
614  refs.resize(n);
615  size_type j(0);
616  for (size_type i = begin; i != end; ++i) {
617  ids[j] = photonIds_[i];
618  refs[j] = photonRefs_[i];
619  ++j;
620  }
621  }
622  void getObjects(int id, VRphoton& refs) const { getObjects(id, refs, 0, photonIds_.size()); }
623  void getObjects(int id, VRphoton& refs, size_type begin, size_type end) const {
624  assert(begin <= end);
625  assert(end <= photonIds_.size());
626  size_type n(0);
627  for (size_type i = begin; i != end; ++i) {
628  if (id == photonIds_[i]) {
629  ++n;
630  }
631  }
632  refs.resize(n);
633  size_type j(0);
634  for (size_type i = begin; i != end; ++i) {
635  if (id == photonIds_[i]) {
636  refs[j] = photonRefs_[i];
637  ++j;
638  }
639  }
640  return;
641  }
642 
643  void getObjects(Vids& ids, VRelectron& refs) const { getObjects(ids, refs, 0, electronIds_.size()); }
644  void getObjects(Vids& ids, VRelectron& refs, size_type begin, size_type end) const {
645  assert(begin <= end);
646  assert(end <= electronIds_.size());
647  const size_type n(end - begin);
648  ids.resize(n);
649  refs.resize(n);
650  size_type j(0);
651  for (size_type i = begin; i != end; ++i) {
652  ids[j] = electronIds_[i];
653  refs[j] = electronRefs_[i];
654  ++j;
655  }
656  }
657  void getObjects(int id, VRelectron& refs) const { getObjects(id, refs, 0, electronIds_.size()); }
658  void getObjects(int id, VRelectron& refs, size_type begin, size_type end) const {
659  assert(begin <= end);
660  assert(end <= electronIds_.size());
661  size_type n(0);
662  for (size_type i = begin; i != end; ++i) {
663  if (id == electronIds_[i]) {
664  ++n;
665  }
666  }
667  refs.resize(n);
668  size_type j(0);
669  for (size_type i = begin; i != end; ++i) {
670  if (id == electronIds_[i]) {
671  refs[j] = electronRefs_[i];
672  ++j;
673  }
674  }
675  return;
676  }
677 
678  void getObjects(Vids& ids, VRmuon& refs) const { getObjects(ids, refs, 0, muonIds_.size()); }
679  void getObjects(Vids& ids, VRmuon& refs, size_type begin, size_type end) const {
680  assert(begin <= end);
681  assert(end <= muonIds_.size());
682  const size_type n(end - begin);
683  ids.resize(n);
684  refs.resize(n);
685  size_type j(0);
686  for (size_type i = begin; i != end; ++i) {
687  ids[j] = muonIds_[i];
688  refs[j] = muonRefs_[i];
689  ++j;
690  }
691  }
692  void getObjects(int id, VRmuon& refs) const { getObjects(id, refs, 0, muonIds_.size()); }
693  void getObjects(int id, VRmuon& refs, size_type begin, size_type end) const {
694  assert(begin <= end);
695  assert(end <= muonIds_.size());
696  size_type n(0);
697  for (size_type i = begin; i != end; ++i) {
698  if (id == muonIds_[i]) {
699  ++n;
700  }
701  }
702  refs.resize(n);
703  size_type j(0);
704  for (size_type i = begin; i != end; ++i) {
705  if (id == muonIds_[i]) {
706  refs[j] = muonRefs_[i];
707  ++j;
708  }
709  }
710  return;
711  }
712 
713  void getObjects(Vids& ids, VRjet& refs) const { getObjects(ids, refs, 0, jetIds_.size()); }
714  void getObjects(Vids& ids, VRjet& refs, size_type begin, size_type end) const {
715  assert(begin <= end);
716  assert(end <= jetIds_.size());
717  const size_type n(end - begin);
718  ids.resize(n);
719  refs.resize(n);
720  size_type j(0);
721  for (size_type i = begin; i != end; ++i) {
722  ids[j] = jetIds_[i];
723  refs[j] = jetRefs_[i];
724  ++j;
725  }
726  }
727  void getObjects(int id, VRjet& refs) const { getObjects(id, refs, 0, jetIds_.size()); }
728  void getObjects(int id, VRjet& refs, size_type begin, size_type end) const {
729  assert(begin <= end);
730  assert(end <= jetIds_.size());
731  size_type n(0);
732  for (size_type i = begin; i != end; ++i) {
733  if (id == jetIds_[i]) {
734  ++n;
735  }
736  }
737  refs.resize(n);
738  size_type j(0);
739  for (size_type i = begin; i != end; ++i) {
740  if (id == jetIds_[i]) {
741  refs[j] = jetRefs_[i];
742  ++j;
743  }
744  }
745  return;
746  }
747 
748  void getObjects(Vids& ids, VRcomposite& refs) const { getObjects(ids, refs, 0, compositeIds_.size()); }
749  void getObjects(Vids& ids, VRcomposite& refs, size_type begin, size_type end) const {
750  assert(begin <= end);
751  assert(end <= compositeIds_.size());
752  const size_type n(end - begin);
753  ids.resize(n);
754  refs.resize(n);
755  size_type j(0);
756  for (size_type i = begin; i != end; ++i) {
757  ids[j] = compositeIds_[i];
758  refs[j] = compositeRefs_[i];
759  ++j;
760  }
761  }
762  void getObjects(int id, VRcomposite& refs) const { getObjects(id, refs, 0, compositeIds_.size()); }
763  void getObjects(int id, VRcomposite& refs, size_type begin, size_type end) const {
764  assert(begin <= end);
765  assert(end <= compositeIds_.size());
766  size_type n(0);
767  for (size_type i = begin; i != end; ++i) {
768  if (id == compositeIds_[i]) {
769  ++n;
770  }
771  }
772  refs.resize(n);
773  size_type j(0);
774  for (size_type i = begin; i != end; ++i) {
775  if (id == compositeIds_[i]) {
776  refs[j] = compositeRefs_[i];
777  ++j;
778  }
779  }
780  return;
781  }
782 
783  void getObjects(Vids& ids, VRbasemet& refs) const { getObjects(ids, refs, 0, basemetIds_.size()); }
784  void getObjects(Vids& ids, VRbasemet& refs, size_type begin, size_type end) const {
785  assert(begin <= end);
786  assert(end <= basemetIds_.size());
787  const size_type n(end - begin);
788  ids.resize(n);
789  refs.resize(n);
790  size_type j(0);
791  for (size_type i = begin; i != end; ++i) {
792  ids[j] = basemetIds_[i];
793  refs[j] = basemetRefs_[i];
794  ++j;
795  }
796  }
797  void getObjects(int id, VRbasemet& refs) const { getObjects(id, refs, 0, basemetIds_.size()); }
798  void getObjects(int id, VRbasemet& refs, size_type begin, size_type end) const {
799  assert(begin <= end);
800  assert(end <= basemetIds_.size());
801  size_type n(0);
802  for (size_type i = begin; i != end; ++i) {
803  if (id == basemetIds_[i]) {
804  ++n;
805  }
806  }
807  refs.resize(n);
808  size_type j(0);
809  for (size_type i = begin; i != end; ++i) {
810  if (id == basemetIds_[i]) {
811  refs[j] = basemetRefs_[i];
812  ++j;
813  }
814  }
815  return;
816  }
817 
818  void getObjects(Vids& ids, VRcalomet& refs) const { getObjects(ids, refs, 0, calometIds_.size()); }
819  void getObjects(Vids& ids, VRcalomet& refs, size_type begin, size_type end) const {
820  assert(begin <= end);
821  assert(end <= calometIds_.size());
822  const size_type n(end - begin);
823  ids.resize(n);
824  refs.resize(n);
825  size_type j(0);
826  for (size_type i = begin; i != end; ++i) {
827  ids[j] = calometIds_[i];
828  refs[j] = calometRefs_[i];
829  ++j;
830  }
831  }
832  void getObjects(int id, VRcalomet& refs) const { getObjects(id, refs, 0, calometIds_.size()); }
833  void getObjects(int id, VRcalomet& refs, size_type begin, size_type end) const {
834  assert(begin <= end);
835  assert(end <= calometIds_.size());
836  size_type n(0);
837  for (size_type i = begin; i != end; ++i) {
838  if (id == calometIds_[i]) {
839  ++n;
840  }
841  }
842  refs.resize(n);
843  size_type j(0);
844  for (size_type i = begin; i != end; ++i) {
845  if (id == calometIds_[i]) {
846  refs[j] = calometRefs_[i];
847  ++j;
848  }
849  }
850  return;
851  }
852 
853  void getObjects(Vids& ids, VRpixtrack& refs) const { getObjects(ids, refs, 0, pixtrackIds_.size()); }
854  void getObjects(Vids& ids, VRpixtrack& refs, size_type begin, size_type end) const {
855  assert(begin <= end);
856  assert(end <= pixtrackIds_.size());
857  const size_type n(end - begin);
858  ids.resize(n);
859  refs.resize(n);
860  size_type j(0);
861  for (size_type i = begin; i != end; ++i) {
862  ids[j] = pixtrackIds_[i];
863  refs[j] = pixtrackRefs_[i];
864  ++j;
865  }
866  }
867  void getObjects(int id, VRpixtrack& refs) const { getObjects(id, refs, 0, pixtrackIds_.size()); }
868  void getObjects(int id, VRpixtrack& refs, size_type begin, size_type end) const {
869  assert(begin <= end);
870  assert(end <= pixtrackIds_.size());
871  size_type n(0);
872  for (size_type i = begin; i != end; ++i) {
873  if (id == pixtrackIds_[i]) {
874  ++n;
875  }
876  }
877  refs.resize(n);
878  size_type j(0);
879  for (size_type i = begin; i != end; ++i) {
880  if (id == pixtrackIds_[i]) {
881  refs[j] = pixtrackRefs_[i];
882  ++j;
883  }
884  }
885  return;
886  }
887 
888  void getObjects(Vids& ids, VRl1em& refs) const { getObjects(ids, refs, 0, l1emIds_.size()); }
889  void getObjects(Vids& ids, VRl1em& refs, size_type begin, size_type end) const {
890  assert(begin <= end);
891  assert(end <= l1emIds_.size());
892  const size_type n(end - begin);
893  ids.resize(n);
894  refs.resize(n);
895  size_type j(0);
896  for (size_type i = begin; i != end; ++i) {
897  ids[j] = l1emIds_[i];
898  refs[j] = l1emRefs_[i];
899  ++j;
900  }
901  }
902  void getObjects(int id, VRl1em& refs) const { getObjects(id, refs, 0, l1emIds_.size()); }
903  void getObjects(int id, VRl1em& refs, size_type begin, size_type end) const {
904  assert(begin <= end);
905  assert(end <= l1emIds_.size());
906  size_type n(0);
907  for (size_type i = begin; i != end; ++i) {
908  if (id == l1emIds_[i]) {
909  ++n;
910  }
911  }
912  refs.resize(n);
913  size_type j(0);
914  for (size_type i = begin; i != end; ++i) {
915  if (id == l1emIds_[i]) {
916  refs[j] = l1emRefs_[i];
917  ++j;
918  }
919  }
920  return;
921  }
922 
923  void getObjects(Vids& ids, VRl1muon& refs) const { getObjects(ids, refs, 0, l1muonIds_.size()); }
924  void getObjects(Vids& ids, VRl1muon& refs, size_type begin, size_type end) const {
925  assert(begin <= end);
926  assert(end <= l1muonIds_.size());
927  const size_type n(end - begin);
928  ids.resize(n);
929  refs.resize(n);
930  size_type j(0);
931  for (size_type i = begin; i != end; ++i) {
932  ids[j] = l1muonIds_[i];
933  refs[j] = l1muonRefs_[i];
934  ++j;
935  }
936  }
937  void getObjects(int id, VRl1muon& refs) const { getObjects(id, refs, 0, l1muonIds_.size()); }
938  void getObjects(int id, VRl1muon& refs, size_type begin, size_type end) const {
939  assert(begin <= end);
940  assert(end <= l1muonIds_.size());
941  size_type n(0);
942  for (size_type i = begin; i != end; ++i) {
943  if (id == l1muonIds_[i]) {
944  ++n;
945  }
946  }
947  refs.resize(n);
948  size_type j(0);
949  for (size_type i = begin; i != end; ++i) {
950  if (id == l1muonIds_[i]) {
951  refs[j] = l1muonRefs_[i];
952  ++j;
953  }
954  }
955  return;
956  }
957 
958  void getObjects(Vids& ids, VRl1jet& refs) const { getObjects(ids, refs, 0, l1jetIds_.size()); }
959  void getObjects(Vids& ids, VRl1jet& refs, size_type begin, size_type end) const {
960  assert(begin <= end);
961  assert(end <= l1jetIds_.size());
962  const size_type n(end - begin);
963  ids.resize(n);
964  refs.resize(n);
965  size_type j(0);
966  for (size_type i = begin; i != end; ++i) {
967  ids[j] = l1jetIds_[i];
968  refs[j] = l1jetRefs_[i];
969  ++j;
970  }
971  }
972  void getObjects(int id, VRl1jet& refs) const { getObjects(id, refs, 0, l1jetIds_.size()); }
973  void getObjects(int id, VRl1jet& refs, size_type begin, size_type end) const {
974  assert(begin <= end);
975  assert(end <= l1jetIds_.size());
976  size_type n(0);
977  for (size_type i = begin; i != end; ++i) {
978  if (id == l1jetIds_[i]) {
979  ++n;
980  }
981  }
982  refs.resize(n);
983  size_type j(0);
984  for (size_type i = begin; i != end; ++i) {
985  if (id == l1jetIds_[i]) {
986  refs[j] = l1jetRefs_[i];
987  ++j;
988  }
989  }
990  return;
991  }
992 
993  void getObjects(Vids& ids, VRl1etmiss& refs) const { getObjects(ids, refs, 0, l1etmissIds_.size()); }
994  void getObjects(Vids& ids, VRl1etmiss& refs, size_type begin, size_type end) const {
995  assert(begin <= end);
996  assert(end <= l1etmissIds_.size());
997  const size_type n(end - begin);
998  ids.resize(n);
999  refs.resize(n);
1000  size_type j(0);
1001  for (size_type i = begin; i != end; ++i) {
1002  ids[j] = l1etmissIds_[i];
1003  refs[j] = l1etmissRefs_[i];
1004  ++j;
1005  }
1006  }
1007  void getObjects(int id, VRl1etmiss& refs) const { getObjects(id, refs, 0, l1etmissIds_.size()); }
1008  void getObjects(int id, VRl1etmiss& refs, size_type begin, size_type end) const {
1009  assert(begin <= end);
1010  assert(end <= l1etmissIds_.size());
1011  size_type n(0);
1012  for (size_type i = begin; i != end; ++i) {
1013  if (id == l1etmissIds_[i]) {
1014  ++n;
1015  }
1016  }
1017  refs.resize(n);
1018  size_type j(0);
1019  for (size_type i = begin; i != end; ++i) {
1020  if (id == l1etmissIds_[i]) {
1021  refs[j] = l1etmissRefs_[i];
1022  ++j;
1023  }
1024  }
1025  return;
1026  }
1027 
1028  void getObjects(Vids& ids, VRl1hfrings& refs) const { getObjects(ids, refs, 0, l1hfringsIds_.size()); }
1029  void getObjects(Vids& ids, VRl1hfrings& refs, size_type begin, size_type end) const {
1030  assert(begin <= end);
1031  assert(end <= l1hfringsIds_.size());
1032  const size_type n(end - begin);
1033  ids.resize(n);
1034  refs.resize(n);
1035  size_type j(0);
1036  for (size_type i = begin; i != end; ++i) {
1037  ids[j] = l1hfringsIds_[i];
1038  refs[j] = l1hfringsRefs_[i];
1039  ++j;
1040  }
1041  }
1042  void getObjects(int id, VRl1hfrings& refs) const { getObjects(id, refs, 0, l1hfringsIds_.size()); }
1043  void getObjects(int id, VRl1hfrings& refs, size_type begin, size_type end) const {
1044  assert(begin <= end);
1045  assert(end <= l1hfringsIds_.size());
1046  size_type n(0);
1047  for (size_type i = begin; i != end; ++i) {
1048  if (id == l1hfringsIds_[i]) {
1049  ++n;
1050  }
1051  }
1052  refs.resize(n);
1053  size_type j(0);
1054  for (size_type i = begin; i != end; ++i) {
1055  if (id == l1hfringsIds_[i]) {
1056  refs[j] = l1hfringsRefs_[i];
1057  ++j;
1058  }
1059  }
1060  return;
1061  }
1062 
1063  void getObjects(Vids& ids, VRl1tmuon& refs) const { getObjects(ids, refs, 0, l1tmuonIds_.size()); }
1064  void getObjects(Vids& ids, VRl1tmuon& refs, size_type begin, size_type end) const {
1065  assert(begin <= end);
1066  assert(end <= l1tmuonIds_.size());
1067  const size_type n(end - begin);
1068  ids.resize(n);
1069  refs.resize(n);
1070  size_type j(0);
1071  for (size_type i = begin; i != end; ++i) {
1072  ids[j] = l1tmuonIds_[i];
1073  refs[j] = l1tmuonRefs_[i];
1074  ++j;
1075  }
1076  }
1077  void getObjects(int id, VRl1tmuon& refs) const { getObjects(id, refs, 0, l1tmuonIds_.size()); }
1078  void getObjects(int id, VRl1tmuon& refs, size_type begin, size_type end) const {
1079  assert(begin <= end);
1080  assert(end <= l1tmuonIds_.size());
1081  size_type n(0);
1082  for (size_type i = begin; i != end; ++i) {
1083  if (id == l1tmuonIds_[i]) {
1084  ++n;
1085  }
1086  }
1087  refs.resize(n);
1088  size_type j(0);
1089  for (size_type i = begin; i != end; ++i) {
1090  if (id == l1tmuonIds_[i]) {
1091  refs[j] = l1tmuonRefs_[i];
1092  ++j;
1093  }
1094  }
1095  return;
1096  }
1097 
1098  void getObjects(Vids& ids, VRl1tmuonShower& refs) const { getObjects(ids, refs, 0, l1tmuonShowerIds_.size()); }
1099  void getObjects(Vids& ids, VRl1tmuonShower& refs, size_type begin, size_type end) const {
1100  assert(begin <= end);
1101  assert(end <= l1tmuonShowerIds_.size());
1102  const size_type n(end - begin);
1103  ids.resize(n);
1104  refs.resize(n);
1105  size_type j(0);
1106  for (size_type i = begin; i != end; ++i) {
1107  ids[j] = l1tmuonShowerIds_[i];
1108  refs[j] = l1tmuonShowerRefs_[i];
1109  ++j;
1110  }
1111  }
1112  void getObjects(int id, VRl1tmuonShower& refs) const { getObjects(id, refs, 0, l1tmuonShowerIds_.size()); }
1113  void getObjects(int id, VRl1tmuonShower& refs, size_type begin, size_type end) const {
1114  assert(begin <= end);
1115  assert(end <= l1tmuonShowerIds_.size());
1116  size_type n(0);
1117  for (size_type i = begin; i != end; ++i) {
1118  if (id == l1tmuonShowerIds_[i]) {
1119  ++n;
1120  }
1121  }
1122  refs.resize(n);
1123  size_type j(0);
1124  for (size_type i = begin; i != end; ++i) {
1125  if (id == l1tmuonShowerIds_[i]) {
1126  refs[j] = l1tmuonShowerRefs_[i];
1127  ++j;
1128  }
1129  }
1130  return;
1131  }
1132 
1133  void getObjects(Vids& ids, VRl1tegamma& refs) const { getObjects(ids, refs, 0, l1tegammaIds_.size()); }
1134  void getObjects(Vids& ids, VRl1tegamma& refs, size_type begin, size_type end) const {
1135  assert(begin <= end);
1136  assert(end <= l1tegammaIds_.size());
1137  const size_type n(end - begin);
1138  ids.resize(n);
1139  refs.resize(n);
1140  size_type j(0);
1141  for (size_type i = begin; i != end; ++i) {
1142  ids[j] = l1tegammaIds_[i];
1143  refs[j] = l1tegammaRefs_[i];
1144  ++j;
1145  }
1146  }
1147  void getObjects(int id, VRl1tegamma& refs) const { getObjects(id, refs, 0, l1tegammaIds_.size()); }
1148  void getObjects(int id, VRl1tegamma& refs, size_type begin, size_type end) const {
1149  assert(begin <= end);
1150  assert(end <= l1tegammaIds_.size());
1151  size_type n(0);
1152  for (size_type i = begin; i != end; ++i) {
1153  if (id == l1tegammaIds_[i]) {
1154  ++n;
1155  }
1156  }
1157  refs.resize(n);
1158  size_type j(0);
1159  for (size_type i = begin; i != end; ++i) {
1160  if (id == l1tegammaIds_[i]) {
1161  refs[j] = l1tegammaRefs_[i];
1162  ++j;
1163  }
1164  }
1165  return;
1166  }
1167 
1168  void getObjects(Vids& ids, VRl1tjet& refs) const { getObjects(ids, refs, 0, l1tjetIds_.size()); }
1169  void getObjects(Vids& ids, VRl1tjet& refs, size_type begin, size_type end) const {
1170  assert(begin <= end);
1171  assert(end <= l1tjetIds_.size());
1172  const size_type n(end - begin);
1173  ids.resize(n);
1174  refs.resize(n);
1175  size_type j(0);
1176  for (size_type i = begin; i != end; ++i) {
1177  ids[j] = l1tjetIds_[i];
1178  refs[j] = l1tjetRefs_[i];
1179  ++j;
1180  }
1181  }
1182  void getObjects(int id, VRl1tjet& refs) const { getObjects(id, refs, 0, l1tjetIds_.size()); }
1183  void getObjects(int id, VRl1tjet& refs, size_type begin, size_type end) const {
1184  assert(begin <= end);
1185  assert(end <= l1tjetIds_.size());
1186  size_type n(0);
1187  for (size_type i = begin; i != end; ++i) {
1188  if (id == l1tjetIds_[i]) {
1189  ++n;
1190  }
1191  }
1192  refs.resize(n);
1193  size_type j(0);
1194  for (size_type i = begin; i != end; ++i) {
1195  if (id == l1tjetIds_[i]) {
1196  refs[j] = l1tjetRefs_[i];
1197  ++j;
1198  }
1199  }
1200  return;
1201  }
1202 
1203  void getObjects(Vids& ids, VRl1ttau& refs) const { getObjects(ids, refs, 0, l1ttauIds_.size()); }
1204  void getObjects(Vids& ids, VRl1ttau& refs, size_type begin, size_type end) const {
1205  assert(begin <= end);
1206  assert(end <= l1ttauIds_.size());
1207  const size_type n(end - begin);
1208  ids.resize(n);
1209  refs.resize(n);
1210  size_type j(0);
1211  for (size_type i = begin; i != end; ++i) {
1212  ids[j] = l1ttauIds_[i];
1213  refs[j] = l1ttauRefs_[i];
1214  ++j;
1215  }
1216  }
1217  void getObjects(int id, VRl1ttau& refs) const { getObjects(id, refs, 0, l1ttauIds_.size()); }
1218  void getObjects(int id, VRl1ttau& refs, size_type begin, size_type end) const {
1219  assert(begin <= end);
1220  assert(end <= l1ttauIds_.size());
1221  size_type n(0);
1222  for (size_type i = begin; i != end; ++i) {
1223  if (id == l1ttauIds_[i]) {
1224  ++n;
1225  }
1226  }
1227  refs.resize(n);
1228  size_type j(0);
1229  for (size_type i = begin; i != end; ++i) {
1230  if (id == l1ttauIds_[i]) {
1231  refs[j] = l1ttauRefs_[i];
1232  ++j;
1233  }
1234  }
1235  return;
1236  }
1237 
1238  void getObjects(Vids& ids, VRl1tetsum& refs) const { getObjects(ids, refs, 0, l1tetsumIds_.size()); }
1239  void getObjects(Vids& ids, VRl1tetsum& refs, size_type begin, size_type end) const {
1240  assert(begin <= end);
1241  assert(end <= l1tetsumIds_.size());
1242  const size_type n(end - begin);
1243  ids.resize(n);
1244  refs.resize(n);
1245  size_type j(0);
1246  for (size_type i = begin; i != end; ++i) {
1247  ids[j] = l1tetsumIds_[i];
1248  refs[j] = l1tetsumRefs_[i];
1249  ++j;
1250  }
1251  }
1252  void getObjects(int id, VRl1tetsum& refs) const { getObjects(id, refs, 0, l1tetsumIds_.size()); }
1253  void getObjects(int id, VRl1tetsum& refs, size_type begin, size_type end) const {
1254  assert(begin <= end);
1255  assert(end <= l1tetsumIds_.size());
1256  size_type n(0);
1257  for (size_type i = begin; i != end; ++i) {
1258  if (id == l1tetsumIds_[i]) {
1259  ++n;
1260  }
1261  }
1262  refs.resize(n);
1263  size_type j(0);
1264  for (size_type i = begin; i != end; ++i) {
1265  if (id == l1tetsumIds_[i]) {
1266  refs[j] = l1tetsumRefs_[i];
1267  ++j;
1268  }
1269  }
1270  return;
1271  }
1272 
1273  /* Phase-2 */
1274  void getObjects(Vids& ids, VRl1ttkmuon& refs) const { getObjects(ids, refs, 0, l1ttkmuonIds_.size()); }
1275  void getObjects(Vids& ids, VRl1ttkmuon& refs, size_type begin, size_type end) const {
1276  assert(begin <= end);
1277  assert(end <= l1ttkmuonIds_.size());
1278  const size_type n(end - begin);
1279  ids.resize(n);
1280  refs.resize(n);
1281  size_type j(0);
1282  for (size_type i = begin; i != end; ++i) {
1283  ids[j] = l1ttkmuonIds_[i];
1284  refs[j] = l1ttkmuonRefs_[i];
1285  ++j;
1286  }
1287  }
1288  void getObjects(int id, VRl1ttkmuon& refs) const { getObjects(id, refs, 0, l1ttkmuonIds_.size()); }
1289  void getObjects(int id, VRl1ttkmuon& refs, size_type begin, size_type end) const {
1290  assert(begin <= end);
1291  assert(end <= l1ttkmuonIds_.size());
1292  size_type n(0);
1293  for (size_type i = begin; i != end; ++i) {
1294  if (id == l1ttkmuonIds_[i]) {
1295  ++n;
1296  }
1297  }
1298  refs.resize(n);
1299  size_type j(0);
1300  for (size_type i = begin; i != end; ++i) {
1301  if (id == l1ttkmuonIds_[i]) {
1302  refs[j] = l1ttkmuonRefs_[i];
1303  ++j;
1304  }
1305  }
1306  return;
1307  }
1308 
1309  void getObjects(Vids& ids, VRl1ttkele& refs) const { getObjects(ids, refs, 0, l1ttkeleIds_.size()); }
1310  void getObjects(Vids& ids, VRl1ttkele& refs, size_type begin, size_type end) const {
1311  assert(begin <= end);
1312  assert(end <= l1ttkeleIds_.size());
1313  const size_type n(end - begin);
1314  ids.resize(n);
1315  refs.resize(n);
1316  size_type j(0);
1317  for (size_type i = begin; i != end; ++i) {
1318  ids[j] = l1ttkeleIds_[i];
1319  refs[j] = l1ttkeleRefs_[i];
1320  ++j;
1321  }
1322  }
1323  void getObjects(int id, VRl1ttkele& refs) const { getObjects(id, refs, 0, l1ttkeleIds_.size()); }
1324  void getObjects(int id, VRl1ttkele& refs, size_type begin, size_type end) const {
1325  assert(begin <= end);
1326  assert(end <= l1ttkeleIds_.size());
1327  size_type n(0);
1328  for (size_type i = begin; i != end; ++i) {
1329  if (id == l1ttkeleIds_[i]) {
1330  ++n;
1331  }
1332  }
1333  refs.resize(n);
1334  size_type j(0);
1335  for (size_type i = begin; i != end; ++i) {
1336  if (id == l1ttkeleIds_[i]) {
1337  refs[j] = l1ttkeleRefs_[i];
1338  ++j;
1339  }
1340  }
1341  return;
1342  }
1343 
1344  void getObjects(Vids& ids, VRl1ttkem& refs) const { getObjects(ids, refs, 0, l1ttkemIds_.size()); }
1345  void getObjects(Vids& ids, VRl1ttkem& refs, size_type begin, size_type end) const {
1346  assert(begin <= end);
1347  assert(end <= l1ttkemIds_.size());
1348  const size_type n(end - begin);
1349  ids.resize(n);
1350  refs.resize(n);
1351  size_type j(0);
1352  for (size_type i = begin; i != end; ++i) {
1353  ids[j] = l1ttkemIds_[i];
1354  refs[j] = l1ttkemRefs_[i];
1355  ++j;
1356  }
1357  }
1358  void getObjects(int id, VRl1ttkem& refs) const { getObjects(id, refs, 0, l1ttkemIds_.size()); }
1359  void getObjects(int id, VRl1ttkem& refs, size_type begin, size_type end) const {
1360  assert(begin <= end);
1361  assert(end <= l1ttkemIds_.size());
1362  size_type n(0);
1363  for (size_type i = begin; i != end; ++i) {
1364  if (id == l1ttkemIds_[i]) {
1365  ++n;
1366  }
1367  }
1368  refs.resize(n);
1369  size_type j(0);
1370  for (size_type i = begin; i != end; ++i) {
1371  if (id == l1ttkemIds_[i]) {
1372  refs[j] = l1ttkemRefs_[i];
1373  ++j;
1374  }
1375  }
1376  return;
1377  }
1378 
1379  void getObjects(Vids& ids, VRl1tpfjet& refs) const { getObjects(ids, refs, 0, l1tpfjetIds_.size()); }
1380  void getObjects(Vids& ids, VRl1tpfjet& refs, size_type begin, size_type end) const {
1381  assert(begin <= end);
1382  assert(end <= l1tpfjetIds_.size());
1383  const size_type n(end - begin);
1384  ids.resize(n);
1385  refs.resize(n);
1386  size_type j(0);
1387  for (size_type i = begin; i != end; ++i) {
1388  ids[j] = l1tpfjetIds_[i];
1389  refs[j] = l1tpfjetRefs_[i];
1390  ++j;
1391  }
1392  }
1393  void getObjects(int id, VRl1tpfjet& refs) const { getObjects(id, refs, 0, l1tpfjetIds_.size()); }
1394  void getObjects(int id, VRl1tpfjet& refs, size_type begin, size_type end) const {
1395  assert(begin <= end);
1396  assert(end <= l1tpfjetIds_.size());
1397  size_type n(0);
1398  for (size_type i = begin; i != end; ++i) {
1399  if (id == l1tpfjetIds_[i]) {
1400  ++n;
1401  }
1402  }
1403  refs.resize(n);
1404  size_type j(0);
1405  for (size_type i = begin; i != end; ++i) {
1406  if (id == l1tpfjetIds_[i]) {
1407  refs[j] = l1tpfjetRefs_[i];
1408  ++j;
1409  }
1410  }
1411  return;
1412  }
1413 
1414  void getObjects(Vids& ids, VRl1tpftau& refs) const { getObjects(ids, refs, 0, l1tpftauIds_.size()); }
1415  void getObjects(Vids& ids, VRl1tpftau& refs, size_type begin, size_type end) const {
1416  assert(begin <= end);
1417  assert(end <= l1tpftauIds_.size());
1418  const size_type n(end - begin);
1419  ids.resize(n);
1420  refs.resize(n);
1421  size_type j(0);
1422  for (size_type i = begin; i != end; ++i) {
1423  ids[j] = l1tpftauIds_[i];
1424  refs[j] = l1tpftauRefs_[i];
1425  ++j;
1426  }
1427  }
1428  void getObjects(int id, VRl1tpftau& refs) const { getObjects(id, refs, 0, l1tpftauIds_.size()); }
1429  void getObjects(int id, VRl1tpftau& refs, size_type begin, size_type end) const {
1430  assert(begin <= end);
1431  assert(end <= l1tpftauIds_.size());
1432  size_type n(0);
1433  for (size_type i = begin; i != end; ++i) {
1434  if (id == l1tpftauIds_[i]) {
1435  ++n;
1436  }
1437  }
1438  refs.resize(n);
1439  size_type j(0);
1440  for (size_type i = begin; i != end; ++i) {
1441  if (id == l1tpftauIds_[i]) {
1442  refs[j] = l1tpftauRefs_[i];
1443  ++j;
1444  }
1445  }
1446  return;
1447  }
1448 
1449  void getObjects(Vids& ids, VRl1thpspftau& refs) const { getObjects(ids, refs, 0, l1thpspftauIds_.size()); }
1450  void getObjects(Vids& ids, VRl1thpspftau& refs, size_type begin, size_type end) const {
1451  assert(begin <= end);
1452  assert(end <= l1thpspftauIds_.size());
1453  const size_type n(end - begin);
1454  ids.resize(n);
1455  refs.resize(n);
1456  size_type j(0);
1457  for (size_type i = begin; i != end; ++i) {
1458  ids[j] = l1thpspftauIds_[i];
1459  refs[j] = l1thpspftauRefs_[i];
1460  ++j;
1461  }
1462  }
1463  void getObjects(int id, VRl1thpspftau& refs) const { getObjects(id, refs, 0, l1thpspftauIds_.size()); }
1464  void getObjects(int id, VRl1thpspftau& refs, size_type begin, size_type end) const {
1465  assert(begin <= end);
1466  assert(end <= l1thpspftauIds_.size());
1467  size_type n(0);
1468  for (size_type i = begin; i != end; ++i) {
1469  if (id == l1thpspftauIds_[i]) {
1470  ++n;
1471  }
1472  }
1473  refs.resize(n);
1474  size_type j(0);
1475  for (size_type i = begin; i != end; ++i) {
1476  if (id == l1thpspftauIds_[i]) {
1477  refs[j] = l1thpspftauRefs_[i];
1478  ++j;
1479  }
1480  }
1481  return;
1482  }
1483 
1484  void getObjects(Vids& ids, VRl1tpftrack& refs) const { getObjects(ids, refs, 0, l1tpftrackIds_.size()); }
1485  void getObjects(Vids& ids, VRl1tpftrack& refs, size_type begin, size_type end) const {
1486  assert(begin <= end);
1487  assert(end <= l1tpftrackIds_.size());
1488  const size_type n(end - begin);
1489  ids.resize(n);
1490  refs.resize(n);
1491  size_type j(0);
1492  for (size_type i = begin; i != end; ++i) {
1493  ids[j] = l1tpftrackIds_[i];
1494  refs[j] = l1tpftrackRefs_[i];
1495  ++j;
1496  }
1497  }
1498  void getObjects(int id, VRl1tpftrack& refs) const { getObjects(id, refs, 0, l1tpftrackIds_.size()); }
1499  void getObjects(int id, VRl1tpftrack& refs, size_type begin, size_type end) const {
1500  assert(begin <= end);
1501  assert(end <= l1tpftrackIds_.size());
1502  size_type n(0);
1503  for (size_type i = begin; i != end; ++i) {
1504  if (id == l1tpftrackIds_[i]) {
1505  ++n;
1506  }
1507  }
1508  refs.resize(n);
1509  size_type j(0);
1510  for (size_type i = begin; i != end; ++i) {
1511  if (id == l1tpftrackIds_[i]) {
1512  refs[j] = l1tpftrackRefs_[i];
1513  ++j;
1514  }
1515  }
1516  return;
1517  }
1518 
1519  void getObjects(Vids& ids, VRpfjet& refs) const { getObjects(ids, refs, 0, pfjetIds_.size()); }
1520  void getObjects(Vids& ids, VRpfjet& refs, size_type begin, size_type end) const {
1521  assert(begin <= end);
1522  assert(end <= pfjetIds_.size());
1523  const size_type n(end - begin);
1524  ids.resize(n);
1525  refs.resize(n);
1526  size_type j(0);
1527  for (size_type i = begin; i != end; ++i) {
1528  ids[j] = pfjetIds_[i];
1529  refs[j] = pfjetRefs_[i];
1530  ++j;
1531  }
1532  }
1533  void getObjects(int id, VRpfjet& refs) const { getObjects(id, refs, 0, pfjetIds_.size()); }
1534  void getObjects(int id, VRpfjet& refs, size_type begin, size_type end) const {
1535  assert(begin <= end);
1536  assert(end <= pfjetIds_.size());
1537  size_type n(0);
1538  for (size_type i = begin; i != end; ++i) {
1539  if (id == pfjetIds_[i]) {
1540  ++n;
1541  }
1542  }
1543  refs.resize(n);
1544  size_type j(0);
1545  for (size_type i = begin; i != end; ++i) {
1546  if (id == pfjetIds_[i]) {
1547  refs[j] = pfjetRefs_[i];
1548  ++j;
1549  }
1550  }
1551  return;
1552  }
1553 
1554  void getObjects(Vids& ids, VRpftau& refs) const { getObjects(ids, refs, 0, pftauIds_.size()); }
1555  void getObjects(Vids& ids, VRpftau& refs, size_type begin, size_type end) const {
1556  assert(begin <= end);
1557  assert(end <= pftauIds_.size());
1558  const size_type n(end - begin);
1559  ids.resize(n);
1560  refs.resize(n);
1561  size_type j(0);
1562  for (size_type i = begin; i != end; ++i) {
1563  ids[j] = pftauIds_[i];
1564  refs[j] = pftauRefs_[i];
1565  ++j;
1566  }
1567  }
1568  void getObjects(int id, VRpftau& refs) const { getObjects(id, refs, 0, pftauIds_.size()); }
1569  void getObjects(int id, VRpftau& refs, size_type begin, size_type end) const {
1570  assert(begin <= end);
1571  assert(end <= pftauIds_.size());
1572  size_type n(0);
1573  for (size_type i = begin; i != end; ++i) {
1574  if (id == pftauIds_[i]) {
1575  ++n;
1576  }
1577  }
1578  refs.resize(n);
1579  size_type j(0);
1580  for (size_type i = begin; i != end; ++i) {
1581  if (id == pftauIds_[i]) {
1582  refs[j] = pftauRefs_[i];
1583  ++j;
1584  }
1585  }
1586  return;
1587  }
1588 
1589  void getObjects(Vids& ids, VRpfmet& refs) const { getObjects(ids, refs, 0, pfmetIds_.size()); }
1590  void getObjects(Vids& ids, VRpfmet& refs, size_type begin, size_type end) const {
1591  assert(begin <= end);
1592  assert(end <= pfmetIds_.size());
1593  const size_type n(end - begin);
1594  ids.resize(n);
1595  refs.resize(n);
1596  size_type j(0);
1597  for (size_type i = begin; i != end; ++i) {
1598  ids[j] = pfmetIds_[i];
1599  refs[j] = pfmetRefs_[i];
1600  ++j;
1601  }
1602  }
1603  void getObjects(int id, VRpfmet& refs) const { getObjects(id, refs, 0, pfmetIds_.size()); }
1604  void getObjects(int id, VRpfmet& refs, size_type begin, size_type end) const {
1605  assert(begin <= end);
1606  assert(end <= pfmetIds_.size());
1607  size_type n(0);
1608  for (size_type i = begin; i != end; ++i) {
1609  if (id == pfmetIds_[i]) {
1610  ++n;
1611  }
1612  }
1613  refs.resize(n);
1614  size_type j(0);
1615  for (size_type i = begin; i != end; ++i) {
1616  if (id == pfmetIds_[i]) {
1617  refs[j] = pfmetRefs_[i];
1618  ++j;
1619  }
1620  }
1621  return;
1622  }
1623 
1625  size_type photonSize() const { return photonIds_.size(); }
1626  const Vids& photonIds() const { return photonIds_; }
1627  const VRphoton& photonRefs() const { return photonRefs_; }
1628 
1629  size_type electronSize() const { return electronIds_.size(); }
1630  const Vids& electronIds() const { return electronIds_; }
1631  const VRelectron& electronRefs() const { return electronRefs_; }
1632 
1633  size_type muonSize() const { return muonIds_.size(); }
1634  const Vids& muonIds() const { return muonIds_; }
1635  const VRmuon& muonRefs() const { return muonRefs_; }
1636 
1637  size_type jetSize() const { return jetIds_.size(); }
1638  const Vids& jetIds() const { return jetIds_; }
1639  const VRjet& jetRefs() const { return jetRefs_; }
1640 
1641  size_type compositeSize() const { return compositeIds_.size(); }
1642  const Vids& compositeIds() const { return compositeIds_; }
1643  const VRcomposite& compositeRefs() const { return compositeRefs_; }
1644 
1645  size_type basemetSize() const { return basemetIds_.size(); }
1646  const Vids& basemetIds() const { return basemetIds_; }
1647  const VRbasemet& basemetRefs() const { return basemetRefs_; }
1648 
1649  size_type calometSize() const { return calometIds_.size(); }
1650  const Vids& calometIds() const { return calometIds_; }
1651  const VRcalomet& calometRefs() const { return calometRefs_; }
1652 
1653  size_type pixtrackSize() const { return pixtrackIds_.size(); }
1654  const Vids& pixtrackIds() const { return pixtrackIds_; }
1655  const VRpixtrack& pixtrackRefs() const { return pixtrackRefs_; }
1656 
1657  size_type l1emSize() const { return l1emIds_.size(); }
1658  const Vids& l1emIds() const { return l1emIds_; }
1659  const VRl1em& l1emRefs() const { return l1emRefs_; }
1660 
1661  size_type l1muonSize() const { return l1muonIds_.size(); }
1662  const Vids& l1muonIds() const { return l1muonIds_; }
1663  const VRl1muon& l1muonRefs() const { return l1muonRefs_; }
1664 
1665  size_type l1jetSize() const { return l1jetIds_.size(); }
1666  const Vids& l1jetIds() const { return l1jetIds_; }
1667  const VRl1jet& l1jetRefs() const { return l1jetRefs_; }
1668 
1669  size_type l1etmissSize() const { return l1etmissIds_.size(); }
1670  const Vids& l1etmissIds() const { return l1etmissIds_; }
1671  const VRl1etmiss& l1etmissRefs() const { return l1etmissRefs_; }
1672 
1673  size_type l1hfringsSize() const { return l1hfringsIds_.size(); }
1674  const Vids& l1hfringsIds() const { return l1hfringsIds_; }
1675  const VRl1hfrings& l1hfringsRefs() const { return l1hfringsRefs_; }
1676 
1677  size_type pfjetSize() const { return pfjetIds_.size(); }
1678  const Vids& pfjetIds() const { return pfjetIds_; }
1679  const VRpfjet& pfjetRefs() const { return pfjetRefs_; }
1680 
1681  size_type pftauSize() const { return pftauIds_.size(); }
1682  const Vids& pftauIds() const { return pftauIds_; }
1683  const VRpftau& pftauRefs() const { return pftauRefs_; }
1684 
1685  size_type pfmetSize() const { return pfmetIds_.size(); }
1686  const Vids& pfmetIds() const { return pfmetIds_; }
1687  const VRpfmet& pfmetRefs() const { return pfmetRefs_; }
1688 
1689  size_type l1tmuonSize() const { return l1tmuonIds_.size(); }
1690  const Vids& l1tmuonIds() const { return l1tmuonIds_; }
1691  const VRl1tmuon& l1tmuonRefs() const { return l1tmuonRefs_; }
1692 
1693  size_type l1tmuonShowerSize() const { return l1tmuonShowerIds_.size(); }
1694  const Vids& l1tmuonShowerIds() const { return l1tmuonShowerIds_; }
1696 
1697  size_type l1tegammaSize() const { return l1tegammaIds_.size(); }
1698  const Vids& l1tegammaIds() const { return l1tegammaIds_; }
1699  const VRl1tegamma& l1tegammaRefs() const { return l1tegammaRefs_; }
1700 
1701  size_type l1tjetSize() const { return l1tjetIds_.size(); }
1702  const Vids& l1tjetIds() const { return l1tjetIds_; }
1703  const VRl1tjet& l1tjetRefs() const { return l1tjetRefs_; }
1704 
1705  /* Phase-2 */
1706 
1707  size_type l1ttkmuonSize() const { return l1ttkmuonIds_.size(); }
1708  const Vids& l1ttkmuonIds() const { return l1ttkmuonIds_; }
1709  const VRl1ttkmuon& l1ttkmuonRefs() const { return l1ttkmuonRefs_; }
1710 
1711  size_type l1ttkeleSize() const { return l1ttkeleIds_.size(); }
1712  const Vids& l1ttkeleIds() const { return l1ttkeleIds_; }
1713  const VRl1ttkele& l1ttkeleRefs() const { return l1ttkeleRefs_; }
1714 
1715  size_type l1ttkemSize() const { return l1ttkemIds_.size(); }
1716  const Vids& l1ttkemIds() const { return l1ttkemIds_; }
1717  const VRl1ttkem& l1ttkemRefs() const { return l1ttkemRefs_; }
1718 
1719  size_type l1tpfjetSize() const { return l1tpfjetIds_.size(); }
1720  const Vids& l1tpfjetIds() const { return l1tpfjetIds_; }
1721  const VRl1tpfjet& l1tpfjetRefs() const { return l1tpfjetRefs_; }
1722 
1723  size_type l1tpftauSize() const { return l1tpftauIds_.size(); }
1724  const Vids& l1tpftauIds() const { return l1tpftauIds_; }
1725  const VRl1tpftau& l1tpftauRefs() const { return l1tpftauRefs_; }
1726 
1727  size_type l1thpspftauSize() const { return l1thpspftauIds_.size(); }
1728  const Vids& l1thpspftauIds() const { return l1thpspftauIds_; }
1730 
1731  size_type l1tpftrackSize() const { return l1tpftrackIds_.size(); }
1732  const Vids& l1tpftrackIds() const { return l1tpftrackIds_; }
1733  const VRl1tpftrack& l1tpftrackRefs() const { return l1tpftrackRefs_; }
1734 
1735  size_type l1ttauSize() const { return l1ttauIds_.size(); }
1736  const Vids& l1ttauIds() const { return l1ttauIds_; }
1737  const VRl1ttau& l1ttauRefs() const { return l1ttauRefs_; }
1738 
1739  size_type l1tetsumSize() const { return l1tetsumIds_.size(); }
1740  const Vids& l1tetsumIds() const { return l1tetsumIds_; }
1741  const VRl1tetsum& l1tetsumRefs() const { return l1tetsumRefs_; }
1742  };
1743 
1744  // picked up via argument dependent lookup, e-g- by boost::swap()
1746 
1747 } // namespace trigger
1748 
1749 #endif
const VRcomposite & compositeRefs() const
size_type addObjects(const Vids &ids, const VRl1ttau &refs)
void getObjects(Vids &ids, VRpftau &refs) const
const VRl1tpftrack & l1tpftrackRefs() const
void getObjects(int id, VRl1thpspftau &refs) const
void getObjects(Vids &ids, VRl1hfrings &refs) const
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
void getObjects(int id, VRbasemet &refs) const
void getObjects(int id, VRl1tjet &refs) const
void getObjects(int id, VRl1ttkmuon &refs) const
size_type addObjects(const Vids &ids, const VRphoton &refs)
void getObjects(Vids &ids, VRphoton &refs, size_type begin, size_type end) const
const VRpixtrack & pixtrackRefs() const
size_type addObjects(const Vids &ids, const VRbasemet &refs)
size_type photonSize() const
low-level getters for data members
std::vector< l1t::PFTauRef > PFTauVectorRef
Definition: PFTau.h:65
void getObjects(Vids &ids, VRl1ttau &refs) const
void getObjects(int id, VRcalomet &refs, size_type begin, size_type end) const
const VRl1tmuon & l1tmuonRefs() const
void getObjects(Vids &ids, VRl1em &refs) const
void addObject(int id, const l1t::MuonShowerRef &ref)
void getObjects(int id, VRjet &refs, size_type begin, size_type end) const
size_type addObjects(const Vids &ids, const VRl1muon &refs)
void getObjects(int id, VRl1tmuon &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRcalomet &refs, size_type begin, size_type end) const
void getObjects(int id, VRpfjet &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRpftau &refs, size_type begin, size_type end) const
void getObjects(int id, VRl1etmiss &refs, size_type begin, size_type end) const
size_type addObjects(const Vids &ids, const VRl1tegamma &refs)
void addObject(int id, const reco::CompositeCandidateRef &ref)
void addObject(int id, const reco::METRef &ref)
l1t::EGammaVectorRef VRl1tegamma
size_type addObjects(const Vids &ids, const VRl1ttkmuon &refs)
void addObject(int id, const l1t::EtSumRef &ref)
void getObjects(Vids &ids, VRl1tmuonShower &refs) const
void getObjects(int id, VRl1em &refs, size_type begin, size_type end) const
void getObjects(int id, VRpixtrack &refs) const
void addObject(int id, const l1t::PFTauRef &ref)
void swap(TriggerRefsCollections &other)
utility
std::vector< reco::METRef > VRbasemet
void getObjects(Vids &ids, VRl1tegamma &refs) const
void getObjects(int id, VRl1tjet &refs, size_type begin, size_type end) const
size_type addObjects(const Vids &ids, const VRl1tjet &refs)
void getObjects(Vids &ids, VRcalomet &refs) const
void getObjects(int id, VRcomposite &refs) const
void addObject(int id, const reco::RecoChargedCandidateRef &ref)
size_type addObjects(const Vids &ids, const VRl1tpfjet &refs)
l1t::TkMuonVectorRef VRl1ttkmuon
void getObjects(Vids &ids, VRl1thpspftau &refs) const
void getObjects(int id, VRphoton &refs) const
void getObjects(Vids &ids, VRl1tpfjet &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRpixtrack &refs, size_type begin, size_type end) const
void addObject(int id, const reco::PFJetRef &ref)
std::vector< EtSumRef > EtSumVectorRef
Definition: EtSum.h:14
l1t::JetVectorRef VRl1tjet
void getObjects(int id, VRphoton &refs, size_type begin, size_type end) const
void addObject(int id, const l1t::PFJetRef &ref)
void getObjects(int id, VRl1muon &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRl1muon &refs) const
size_type addObjects(const Vids &ids, const VRl1ttkem &refs)
void getObjects(Vids &ids, VRl1etmiss &refs) const
size_type addObjects(const Vids &ids, const VRpfmet &refs)
assert(be >=bs)
uint16_t size_type
size_type addObjects(const Vids &ids, const VRl1tmuonShower &refs)
void getObjects(Vids &ids, VRbasemet &refs) const
void getObjects(Vids &ids, VRpfmet &refs, size_type begin, size_type end) const
size_type addObjects(const Vids &ids, const VRjet &refs)
void getObjects(Vids &ids, VRl1tetsum &refs, size_type begin, size_type end) const
std::vector< l1extra::L1MuonParticleRef > VRl1muon
const VRelectron & electronRefs() const
void getObjects(int id, VRl1em &refs) const
std::vector< HPSPFTauRef > HPSPFTauVectorRef
Definition: HPSPFTauFwd.h:11
void getObjects(int id, VRl1jet &refs) const
void addObject(int id, const reco::PFTauRef &ref)
std::vector< MuonRef > MuonVectorRef
Definition: Muon.h:15
const VRl1ttkmuon & l1ttkmuonRefs() const
void getObjects(Vids &ids, VRelectron &refs) const
size_type addObjects(const Vids &ids, const VRl1tpftau &refs)
void getObjects(int id, VRl1ttkem &refs, size_type begin, size_type end) const
size_type addObjects(const Vids &ids, const VRpixtrack &refs)
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
std::vector< TkElectronRef > TkElectronVectorRef
Definition: TkElectronFwd.h:21
U second(std::pair< T, U > const &p)
void getObjects(int id, VRl1muon &refs) const
void getObjects(int id, VRl1tegamma &refs, size_type begin, size_type end) const
std::vector< l1extra::L1HFRingsRef > VRl1hfrings
void getObjects(Vids &ids, VRl1tpftau &refs, size_type begin, size_type end) const
size_type addObjects(const Vids &ids, const VRl1hfrings &refs)
void getObjects(int id, VRpftau &refs) const
std::vector< reco::IsolatedPixelTrackCandidateRef > VRpixtrack
size_type addObjects(const Vids &ids, const VRl1em &refs)
void addObject(int id, const l1t::TauRef &ref)
void getObjects(Vids &ids, VRl1tetsum &refs) const
void getObjects(Vids &ids, VRl1tjet &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRpfjet &refs) const
void addObject(int id, const l1t::TkEmRef &ref)
size_type addObjects(const Vids &ids, const VRpfjet &refs)
size_type addObjects(const Vids &ids, const VRcalomet &refs)
void getObjects(int id, VRl1tpftrack &refs) const
void getObjects(int id, VRbasemet &refs, size_type begin, size_type end) const
std::vector< l1extra::L1EtMissParticleRef > VRl1etmiss
size_type addObjects(const Vids &ids, const VRelectron &refs)
void getObjects(int id, VRl1tpftau &refs, size_type begin, size_type end) const
const VRl1tpfjet & l1tpfjetRefs() const
void getObjects(Vids &ids, VRpixtrack &refs) const
size_type addObjects(const Vids &ids, const VRl1thpspftau &refs)
l1t::PFTrackVectorRef VRl1tpftrack
void getObjects(int id, VRl1tegamma &refs) const
void getObjects(Vids &ids, VRl1tpftau &refs) const
void getObjects(int id, VRcalomet &refs) const
void getObjects(Vids &ids, VRjet &refs, size_type begin, size_type end) const
l1t::PFTauVectorRef VRl1tpftau
size_type addObjects(const Vids &ids, const VRl1tpftrack &refs)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
void getObjects(Vids &ids, VRl1tjet &refs) const
const VRl1etmiss & l1etmissRefs() const
void getObjects(int id, VRl1ttau &refs) const
void getObjects(Vids &ids, VRl1tmuon &refs) const
void getObjects(int id, VRl1tetsum &refs) const
void getObjects(Vids &ids, VRl1ttkele &refs, size_type begin, size_type end) const
size_type addObjects(const Vids &ids, const VRl1etmiss &refs)
size_type addObjects(const Vids &ids, const VRl1tetsum &refs)
void addObject(int id, const l1extra::L1EmParticleRef &ref)
void addObject(int id, const l1t::TkMuonRef &ref)
void addObject(int id, const l1t::PFTrackRef &ref)
void getObjects(int id, VRl1ttau &refs, size_type begin, size_type end) const
void addObject(int id, const l1t::HPSPFTauRef &ref)
l1t::TkEmVectorRef VRl1ttkem
void getObjects(int id, VRpfjet &refs) const
const VRl1tegamma & l1tegammaRefs() const
const VRbasemet & basemetRefs() const
void getObjects(int id, VRl1tpftrack &refs, size_type begin, size_type end) const
std::vector< TauRef > TauVectorRef
Definition: Tau.h:14
void getObjects(Vids &ids, VRl1jet &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRl1tpftrack &refs, size_type begin, size_type end) const
void getObjects(int id, VRmuon &refs) const
void getObjects(Vids &ids, VRl1ttkem &refs) const
void getObjects(Vids &ids, VRl1tmuonShower &refs, size_type begin, size_type end) const
const VRl1tmuonShower & l1tmuonShowerRefs() const
std::vector< l1extra::L1EmParticleRef > VRl1em
void getObjects(Vids &ids, VRl1tpfjet &refs) const
void addObject(int id, const l1extra::L1EtMissParticleRef &ref)
void addObject(int id, const reco::ElectronRef &ref)
void getObjects(Vids &ids, VRpfmet &refs) const
size_type addObjects(const Vids &ids, const VRl1tmuon &refs)
void getObjects(int id, VRl1hfrings &refs, size_type begin, size_type end) const
void addObject(int id, const reco::IsolatedPixelTrackCandidateRef &ref)
void getObjects(int id, VRelectron &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRl1muon &refs, size_type begin, size_type end) const
void addObject(int id, const l1t::EGammaRef &ref)
void addObject(int id, const l1extra::L1MuonParticleRef &ref)
l1t::HPSPFTauVectorRef VRl1thpspftau
std::vector< TkEmRef > TkEmVectorRef
Definition: TkEmFwd.h:22
void addObject(int id, const l1t::MuonRef &ref)
void getObjects(Vids &ids, VRl1tmuon &refs, size_type begin, size_type end) const
void getObjects(int id, VRl1tpfjet &refs, size_type begin, size_type end) const
void getObjects(int id, VRpixtrack &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRl1jet &refs) const
void getObjects(int id, VRl1tetsum &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRl1tegamma &refs, size_type begin, size_type end) const
void getObjects(int id, VRmuon &refs, size_type begin, size_type end) const
const VRl1hfrings & l1hfringsRefs() const
std::vector< l1t::PFTrackRef > PFTrackVectorRef
Definition: PFTrack.h:87
void getObjects(int id, VRl1tmuonShower &refs, size_type begin, size_type end) const
void getObjects(int id, VRl1ttkele &refs, size_type begin, size_type end) const
void getObjects(int id, VRl1ttkmuon &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRl1ttkmuon &refs) const
void getObjects(int id, VRl1tmuonShower &refs) const
void swap(TriggerFilterObjectWithRefs &first, TriggerFilterObjectWithRefs &second)
void getObjects(int id, VRl1hfrings &refs) const
std::vector< reco::CaloJetRef > VRjet
void getObjects(int id, VRl1tpfjet &refs) const
void getObjects(Vids &ids, VRjet &refs) const
void getObjects(Vids &ids, VRl1hfrings &refs, size_type begin, size_type end) const
size_type addObjects(const Vids &ids, const VRmuon &refs)
void getObjects(Vids &ids, VRl1ttkem &refs, size_type begin, size_type end) const
std::vector< reco::PFJetRef > VRpfjet
void getObjects(int id, VRl1thpspftau &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRbasemet &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRl1tpftrack &refs) const
void getObjects(int id, VRelectron &refs) const
void addObject(int id, const reco::CaloMETRef &ref)
const VRl1ttkele & l1ttkeleRefs() const
std::vector< l1t::PFJetRef > PFJetVectorRef
Definition: PFJet.h:46
void addObject(int id, const l1t::JetRef &ref)
void addObject(int id, const reco::PFMETRef &ref)
std::vector< reco::CompositeCandidateRef > VRcomposite
l1t::MuonVectorRef VRl1tmuon
void getObjects(Vids &ids, VRl1etmiss &refs, size_type begin, size_type end) const
void getObjects(int id, VRl1ttkem &refs) const
void getObjects(Vids &ids, VRl1thpspftau &refs, size_type begin, size_type end) const
std::vector< EGammaRef > EGammaVectorRef
Definition: TkEGTau.h:36
std::vector< reco::RecoChargedCandidateRef > VRmuon
void addObject(int id, const l1extra::L1HFRingsRef &ref)
void getObjects(Vids &ids, VRl1ttkele &refs) const
size_type addObjects(const Vids &ids, const VRcomposite &refs)
size_type addObjects(const Vids &ids, const VRpftau &refs)
const VRcalomet & calometRefs() const
void getObjects(Vids &ids, VRl1em &refs, size_type begin, size_type end) const
void getObjects(int id, VRl1ttkele &refs) const
size_type addObjects(const Vids &ids, const VRl1ttkele &refs)
void getObjects(Vids &ids, VRcomposite &refs) const
void getObjects(Vids &ids, VRmuon &refs) const
size_type addObjects(const Vids &ids, const VRl1jet &refs)
void getObjects(Vids &ids, VRl1ttau &refs, size_type begin, size_type end) const
std::vector< JetRef > JetVectorRef
Definition: Jet.h:14
void getObjects(Vids &ids, VRelectron &refs, size_type begin, size_type end) const
void getObjects(int id, VRl1etmiss &refs) const
void getObjects(Vids &ids, VRpfjet &refs, size_type begin, size_type end) const
const VRl1tetsum & l1tetsumRefs() const
void getObjects(int id, VRpftau &refs, size_type begin, size_type end) const
l1t::TauVectorRef VRl1ttau
std::vector< reco::ElectronRef > VRelectron
void getObjects(int id, VRl1tmuon &refs) const
std::vector< reco::PFMETRef > VRpfmet
const VRl1thpspftau & l1thpspftauRefs() const
void getObjects(int id, VRpfmet &refs) const
void addObject(int id, const l1extra::L1JetParticleRef &ref)
void getObjects(int id, VRcomposite &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRcomposite &refs, size_type begin, size_type end) const
void getObjects(int id, VRpfmet &refs, size_type begin, size_type end) const
void getObjects(int id, VRl1jet &refs, size_type begin, size_type end) const
std::vector< reco::CaloMETRef > VRcalomet
l1t::MuonShowerVectorRef VRl1tmuonShower
std::vector< TkMuonRef > TkMuonVectorRef
Definition: TkMuonFwd.h:22
const VRl1tpftau & l1tpftauRefs() const
const VRl1ttkem & l1ttkemRefs() const
l1t::EtSumVectorRef VRl1tetsum
std::vector< reco::RecoEcalCandidateRef > VRphoton
l1t::PFJetVectorRef VRl1tpfjet
std::vector< l1extra::L1JetParticleRef > VRl1jet
std::vector< MuonShowerRef > MuonShowerVectorRef
Definition: MuonShower.h:22
std::vector< int > Vids
std::vector< reco::PFTauRef > VRpftau
void getObjects(Vids &ids, VRmuon &refs, size_type begin, size_type end) const
void getObjects(int id, VRjet &refs) const
void getObjects(int id, VRl1tpftau &refs) const
void addObject(int id, const reco::CaloJetRef &ref)
void addObject(int id, const l1t::TkElectronRef &ref)
l1t::TkElectronVectorRef VRl1ttkele
void getObjects(Vids &ids, VRl1ttkmuon &refs, size_type begin, size_type end) const