CMS 3D CMS Logo

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