test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
46 
49 
52 
53 #include <cassert>
54 #include <vector>
55 
56 #include<typeinfo>
57 
58 namespace trigger
59 {
60 
61  typedef std::vector<reco::RecoEcalCandidateRef> VRphoton;
62  typedef std::vector<reco::ElectronRef> VRelectron;
63  typedef std::vector<reco::RecoChargedCandidateRef> VRmuon;
64  typedef std::vector<reco::CaloJetRef> VRjet;
65  typedef std::vector<reco::CompositeCandidateRef> VRcomposite;
66  typedef std::vector<reco::METRef> VRbasemet;
67  typedef std::vector<reco::CaloMETRef> VRcalomet;
68  typedef std::vector<reco::IsolatedPixelTrackCandidateRef> VRpixtrack;
69 
70  typedef std::vector<l1extra::L1EmParticleRef> VRl1em; //deprecate
71  typedef std::vector<l1extra::L1MuonParticleRef> VRl1muon; //deprecate
72  typedef std::vector<l1extra::L1JetParticleRef> VRl1jet; //deprecate
73  typedef std::vector<l1extra::L1EtMissParticleRef> VRl1etmiss; //deprecate
74  typedef std::vector<l1extra::L1HFRingsRef> VRl1hfrings; //deprecate
75 
81 
82  typedef std::vector<reco::PFJetRef> VRpfjet;
83  typedef std::vector<reco::PFTauRef> VRpftau;
84  typedef std::vector<reco::PFMETRef> VRpfmet;
85 
87 
89  private:
107 
118 
129 
136 
138  public:
141  photonIds_(), photonRefs_(),
143  muonIds_(), muonRefs_(),
144  jetIds_(), jetRefs_(),
149 
150  l1emIds_(), l1emRefs_(),
151  l1muonIds_(), l1muonRefs_(),
152  l1jetIds_(), l1jetRefs_(),
155 
158  l1tjetIds_(), l1tjetRefs_(),
159  l1ttauIds_(), l1ttauRefs_(),
161 
162  pfjetIds_(), pfjetRefs_(),
163  pftauIds_(), pftauRefs_(),
164  pfmetIds_(), pfmetRefs_()
165  { }
166 
168  void swap(TriggerRefsCollections & other) {
173  std::swap(muonIds_, other.muonIds_);
174  std::swap(muonRefs_, other.muonRefs_);
175  std::swap(jetIds_, other.jetIds_);
176  std::swap(jetRefs_, other.jetRefs_);
185 
186  std::swap(l1emIds_, other.l1emIds_);
187  std::swap(l1emRefs_, other.l1emRefs_);
190  std::swap(l1jetIds_, other.l1jetIds_);
196 
207 
208  std::swap(pfjetIds_, other.pfjetIds_);
210  std::swap(pftauIds_, other.pftauIds_);
212  std::swap(pfmetIds_, other.pfmetIds_);
214  }
215 
217  void addObject(int id, const reco::RecoEcalCandidateRef& ref) {
218  photonIds_.push_back(id);
219  photonRefs_.push_back(ref);
220  }
221  void addObject(int id, const reco::ElectronRef& ref) {
222  electronIds_.push_back(id);
223  electronRefs_.push_back(ref);
224  }
225  void addObject(int id, const reco::RecoChargedCandidateRef& ref) {
226  muonIds_.push_back(id);
227  muonRefs_.push_back(ref);
228  }
229  void addObject(int id, const reco::CaloJetRef& ref) {
230  jetIds_.push_back(id);
231  jetRefs_.push_back(ref);
232  }
233  void addObject(int id, const reco::CompositeCandidateRef& ref) {
234  compositeIds_.push_back(id);
235  compositeRefs_.push_back(ref);
236  }
237  void addObject(int id, const reco::METRef& ref) {
238  basemetIds_.push_back(id);
239  basemetRefs_.push_back(ref);
240  }
241  void addObject(int id, const reco::CaloMETRef& ref) {
242  calometIds_.push_back(id);
243  calometRefs_.push_back(ref);
244  }
246  pixtrackIds_.push_back(id);
247  pixtrackRefs_.push_back(ref);
248  }
249 
250  void addObject(int id, const l1extra::L1EmParticleRef& ref) {
251  l1emIds_.push_back(id);
252  l1emRefs_.push_back(ref);
253  }
254  void addObject(int id, const l1extra::L1MuonParticleRef& ref) {
255  l1muonIds_.push_back(id);
256  l1muonRefs_.push_back(ref);
257  }
258  void addObject(int id, const l1extra::L1JetParticleRef& ref) {
259  l1jetIds_.push_back(id);
260  l1jetRefs_.push_back(ref);
261  }
262  void addObject(int id, const l1extra::L1EtMissParticleRef& ref) {
263  l1etmissIds_.push_back(id);
264  l1etmissRefs_.push_back(ref);
265  }
266  void addObject(int id, const l1extra::L1HFRingsRef& ref) {
267  l1hfringsIds_.push_back(id);
268  l1hfringsRefs_.push_back(ref);
269  }
270  void addObject(int id, const l1t::MuonRef& ref) {
271  l1tmuonIds_.push_back(id);
272  l1tmuonRefs_.push_back(ref);
273  }
274  void addObject(int id, const l1t::EGammaRef& ref) {
275  l1tegammaIds_.push_back(id);
276  l1tegammaRefs_.push_back(ref);
277  }
278  void addObject(int id, const l1t::JetRef& ref) {
279  l1tjetIds_.push_back(id);
280  l1tjetRefs_.push_back(ref);
281  }
282  void addObject(int id, const l1t::TauRef& ref) {
283  l1ttauIds_.push_back(id);
284  l1ttauRefs_.push_back(ref);
285  }
286  void addObject(int id, const l1t::EtSumRef& ref) {
287  l1tetsumIds_.push_back(id);
288  l1tetsumRefs_.push_back(ref);
289  }
290  void addObject(int id, const reco::PFJetRef& ref) {
291  pfjetIds_.push_back(id);
292  pfjetRefs_.push_back(ref);
293  }
294  void addObject(int id, const reco::PFTauRef& ref) {
295  pftauIds_.push_back(id);
296  pftauRefs_.push_back(ref);
297  }
298  void addObject(int id, const reco::PFMETRef& ref) {
299  pfmetIds_.push_back(id);
300  pfmetRefs_.push_back(ref);
301  }
302 
304  size_type addObjects (const Vids& ids, const VRphoton& refs) {
305  assert(ids.size()==refs.size());
306  photonIds_.insert(photonIds_.end(),ids.begin(),ids.end());
307  photonRefs_.insert(photonRefs_.end(),refs.begin(),refs.end());
308  return photonIds_.size();
309  }
310  size_type addObjects (const Vids& ids, const VRelectron& refs) {
311  assert(ids.size()==refs.size());
312  electronIds_.insert(electronIds_.end(),ids.begin(),ids.end());
313  electronRefs_.insert(electronRefs_.end(),refs.begin(),refs.end());
314  return electronIds_.size();
315  }
316  size_type addObjects (const Vids& ids, const VRmuon& refs) {
317  assert(ids.size()==refs.size());
318  muonIds_.insert(muonIds_.end(),ids.begin(),ids.end());
319  muonRefs_.insert(muonRefs_.end(),refs.begin(),refs.end());
320  return muonIds_.size();
321  }
322  size_type addObjects (const Vids& ids, const VRjet& refs) {
323  assert(ids.size()==refs.size());
324  jetIds_.insert(jetIds_.end(),ids.begin(),ids.end());
325  jetRefs_.insert(jetRefs_.end(),refs.begin(),refs.end());
326  return jetIds_.size();
327  }
328  size_type addObjects (const Vids& ids, const VRcomposite& refs) {
329  assert(ids.size()==refs.size());
330  compositeIds_.insert(compositeIds_.end(),ids.begin(),ids.end());
331  compositeRefs_.insert(compositeRefs_.end(),refs.begin(),refs.end());
332  return compositeIds_.size();
333  }
334  size_type addObjects (const Vids& ids, const VRbasemet& refs) {
335  assert(ids.size()==refs.size());
336  basemetIds_.insert(basemetIds_.end(),ids.begin(),ids.end());
337  basemetRefs_.insert(basemetRefs_.end(),refs.begin(),refs.end());
338  return basemetIds_.size();
339  }
340  size_type addObjects (const Vids& ids, const VRcalomet& refs) {
341  assert(ids.size()==refs.size());
342  calometIds_.insert(calometIds_.end(),ids.begin(),ids.end());
343  calometRefs_.insert(calometRefs_.end(),refs.begin(),refs.end());
344  return calometIds_.size();
345  }
346  size_type addObjects (const Vids& ids, const VRpixtrack& refs) {
347  assert(ids.size()==refs.size());
348  pixtrackIds_.insert(pixtrackIds_.end(),ids.begin(),ids.end());
349  pixtrackRefs_.insert(pixtrackRefs_.end(),refs.begin(),refs.end());
350  return pixtrackIds_.size();
351  }
352 
353  size_type addObjects (const Vids& ids, const VRl1em& refs) {
354  assert(ids.size()==refs.size());
355  l1emIds_.insert(l1emIds_.end(),ids.begin(),ids.end());
356  l1emRefs_.insert(l1emRefs_.end(),refs.begin(),refs.end());
357  return l1emIds_.size();
358  }
359  size_type addObjects (const Vids& ids, const VRl1muon& refs) {
360  assert(ids.size()==refs.size());
361  l1muonIds_.insert(l1muonIds_.end(),ids.begin(),ids.end());
362  l1muonRefs_.insert(l1muonRefs_.end(),refs.begin(),refs.end());
363  return l1muonIds_.size();
364  }
365  size_type addObjects (const Vids& ids, const VRl1jet& refs) {
366  assert(ids.size()==refs.size());
367  l1jetIds_.insert(l1jetIds_.end(),ids.begin(),ids.end());
368  l1jetRefs_.insert(l1jetRefs_.end(),refs.begin(),refs.end());
369  return l1jetIds_.size();
370  }
371  size_type addObjects (const Vids& ids, const VRl1etmiss& refs) {
372  assert(ids.size()==refs.size());
373  l1etmissIds_.insert(l1etmissIds_.end(),ids.begin(),ids.end());
374  l1etmissRefs_.insert(l1etmissRefs_.end(),refs.begin(),refs.end());
375  return l1etmissIds_.size();
376  }
377  size_type addObjects (const Vids& ids, const VRl1tmuon& refs) {
378  assert(ids.size()==refs.size());
379  l1tmuonIds_.insert(l1tmuonIds_.end(),ids.begin(),ids.end());
380  l1tmuonRefs_.insert(l1tmuonRefs_.end(),refs.begin(),refs.end());
381  return l1tmuonIds_.size();
382  }
383  size_type addObjects (const Vids& ids, const VRl1tegamma& refs) {
384  assert(ids.size()==refs.size());
385  l1tegammaIds_.insert(l1tegammaIds_.end(),ids.begin(),ids.end());
386  l1tegammaRefs_.insert(l1tegammaRefs_.end(),refs.begin(),refs.end());
387  return l1tegammaIds_.size();
388  }
389  size_type addObjects (const Vids& ids, const VRl1tjet& refs) {
390  assert(ids.size()==refs.size());
391  l1tjetIds_.insert(l1tjetIds_.end(),ids.begin(),ids.end());
392  l1tjetRefs_.insert(l1tjetRefs_.end(),refs.begin(),refs.end());
393  return l1tjetIds_.size();
394  }
395  size_type addObjects (const Vids& ids, const VRl1ttau& refs) {
396  assert(ids.size()==refs.size());
397  l1ttauIds_.insert(l1ttauIds_.end(),ids.begin(),ids.end());
398  l1ttauRefs_.insert(l1ttauRefs_.end(),refs.begin(),refs.end());
399  return l1ttauIds_.size();
400  }
401  size_type addObjects (const Vids& ids, const VRl1tetsum& refs) {
402  assert(ids.size()==refs.size());
403  l1tetsumIds_.insert(l1tetsumIds_.end(),ids.begin(),ids.end());
404  l1tetsumRefs_.insert(l1tetsumRefs_.end(),refs.begin(),refs.end());
405  return l1tetsumIds_.size();
406  }
407  size_type addObjects (const Vids& ids, const VRl1hfrings& refs) {
408  assert(ids.size()==refs.size());
409  l1hfringsIds_.insert(l1hfringsIds_.end(),ids.begin(),ids.end());
410  l1hfringsRefs_.insert(l1hfringsRefs_.end(),refs.begin(),refs.end());
411  return l1hfringsIds_.size();
412  }
413 
414  size_type addObjects (const Vids& ids, const VRpfjet& refs) {
415  assert(ids.size()==refs.size());
416  pfjetIds_.insert(pfjetIds_.end(),ids.begin(),ids.end());
417  pfjetRefs_.insert(pfjetRefs_.end(),refs.begin(),refs.end());
418  return pfjetIds_.size();
419  }
420  size_type addObjects (const Vids& ids, const VRpftau& refs) {
421  assert(ids.size()==refs.size());
422  pftauIds_.insert(pftauIds_.end(),ids.begin(),ids.end());
423  pftauRefs_.insert(pftauRefs_.end(),refs.begin(),refs.end());
424  return pftauIds_.size();
425  }
426  size_type addObjects (const Vids& ids, const VRpfmet& refs) {
427  assert(ids.size()==refs.size());
428  pfmetIds_.insert(pfmetIds_.end(),ids.begin(),ids.end());
429  pfmetRefs_.insert(pfmetRefs_.end(),refs.begin(),refs.end());
430  return pfmetIds_.size();
431  }
432 
434  void getObjects(Vids& ids, VRphoton& refs) const {
435  getObjects(ids,refs,0,photonIds_.size());
436  }
437  void getObjects(Vids& ids, VRphoton& refs, size_type begin, size_type end) const {
438  assert (begin<=end);
439  assert (end<=photonIds_.size());
440  const size_type n(end-begin);
441  ids.resize(n);
442  refs.resize(n);
443  size_type j(0);
444  for (size_type i=begin; i!=end; ++i) {
445  ids[j]=photonIds_[i];
446  refs[j]=photonRefs_[i];
447  ++j;
448  }
449  }
450  void getObjects(int id, VRphoton& refs) const {
451  getObjects(id,refs,0,photonIds_.size());
452  }
453  void getObjects(int id, VRphoton& refs, size_type begin, size_type end) const {
454  assert (begin<=end);
455  assert (end<=photonIds_.size());
456  size_type n(0);
457  for (size_type i=begin; i!=end; ++i) {if (id==photonIds_[i]) {++n;}}
458  refs.resize(n);
459  size_type j(0);
460  for (size_type i=begin; i!=end; ++i) {
461  if (id==photonIds_[i]) {refs[j]=photonRefs_[i]; ++j;}
462  }
463  return;
464  }
465 
466  void getObjects(Vids& ids, VRelectron& refs) const {
467  getObjects(ids,refs,0,electronIds_.size());
468  }
469  void getObjects(Vids& ids, VRelectron& refs, size_type begin, size_type end) const {
470  assert (begin<=end);
471  assert (end<=electronIds_.size());
472  const size_type n(end-begin);
473  ids.resize(n);
474  refs.resize(n);
475  size_type j(0);
476  for (size_type i=begin; i!=end; ++i) {
477  ids[j]=electronIds_[i];
478  refs[j]=electronRefs_[i];
479  ++j;
480  }
481  }
482  void getObjects(int id, VRelectron& refs) const {
483  getObjects(id,refs,0,electronIds_.size());
484  }
485  void getObjects(int id, VRelectron& refs, size_type begin, size_type end) const {
486  assert (begin<=end);
487  assert (end<=electronIds_.size());
488  size_type n(0);
489  for (size_type i=begin; i!=end; ++i) {if (id==electronIds_[i]) {++n;}}
490  refs.resize(n);
491  size_type j(0);
492  for (size_type i=begin; i!=end; ++i) {
493  if (id==electronIds_[i]) {refs[j]=electronRefs_[i]; ++j;}
494  }
495  return;
496  }
497 
498  void getObjects(Vids& ids, VRmuon& refs) const {
499  getObjects(ids,refs,0,muonIds_.size());
500  }
501  void getObjects(Vids& ids, VRmuon& refs, size_type begin, size_type end) const {
502  assert (begin<=end);
503  assert (end<=muonIds_.size());
504  const size_type n(end-begin);
505  ids.resize(n);
506  refs.resize(n);
507  size_type j(0);
508  for (size_type i=begin; i!=end; ++i) {
509  ids[j]=muonIds_[i];
510  refs[j]=muonRefs_[i];
511  ++j;
512  }
513  }
514  void getObjects(int id, VRmuon& refs) const {
515  getObjects(id,refs,0,muonIds_.size());
516  }
517  void getObjects(int id, VRmuon& refs, size_type begin, size_type end) const {
518  assert (begin<=end);
519  assert (end<=muonIds_.size());
520  size_type n(0);
521  for (size_type i=begin; i!=end; ++i) {if (id==muonIds_[i]) {++n;}}
522  refs.resize(n);
523  size_type j(0);
524  for (size_type i=begin; i!=end; ++i) {
525  if (id==muonIds_[i]) {refs[j]=muonRefs_[i]; ++j;}
526  }
527  return;
528  }
529 
530  void getObjects(Vids& ids, VRjet& refs) const {
531  getObjects(ids,refs,0,jetIds_.size());
532  }
533  void getObjects(Vids& ids, VRjet& refs, size_type begin, size_type end) const {
534  assert (begin<=end);
535  assert (end<=jetIds_.size());
536  const size_type n(end-begin);
537  ids.resize(n);
538  refs.resize(n);
539  size_type j(0);
540  for (size_type i=begin; i!=end; ++i) {
541  ids[j]=jetIds_[i];
542  refs[j]=jetRefs_[i];
543  ++j;
544  }
545  }
546  void getObjects(int id, VRjet& refs) const {
547  getObjects(id,refs,0,jetIds_.size());
548  }
549  void getObjects(int id, VRjet& refs, size_type begin, size_type end) const {
550  assert (begin<=end);
551  assert (end<=jetIds_.size());
552  size_type n(0);
553  for (size_type i=begin; i!=end; ++i) {if (id==jetIds_[i]) {++n;}}
554  refs.resize(n);
555  size_type j(0);
556  for (size_type i=begin; i!=end; ++i) {
557  if (id==jetIds_[i]) {refs[j]=jetRefs_[i]; ++j;}
558  }
559  return;
560  }
561 
562  void getObjects(Vids& ids, VRcomposite& refs) const {
563  getObjects(ids,refs,0,compositeIds_.size());
564  }
565  void getObjects(Vids& ids, VRcomposite& refs, size_type begin, size_type end) const {
566  assert (begin<=end);
567  assert (end<=compositeIds_.size());
568  const size_type n(end-begin);
569  ids.resize(n);
570  refs.resize(n);
571  size_type j(0);
572  for (size_type i=begin; i!=end; ++i) {
573  ids[j]=compositeIds_[i];
574  refs[j]=compositeRefs_[i];
575  ++j;
576  }
577  }
578  void getObjects(int id, VRcomposite& refs) const {
579  getObjects(id,refs,0,compositeIds_.size());
580  }
581  void getObjects(int id, VRcomposite& refs, size_type begin, size_type end) const {
582  assert (begin<=end);
583  assert (end<=compositeIds_.size());
584  size_type n(0);
585  for (size_type i=begin; i!=end; ++i) {if (id==compositeIds_[i]) {++n;}}
586  refs.resize(n);
587  size_type j(0);
588  for (size_type i=begin; i!=end; ++i) {
589  if (id==compositeIds_[i]) {refs[j]=compositeRefs_[i]; ++j;}
590  }
591  return;
592  }
593 
594  void getObjects(Vids& ids, VRbasemet& refs) const {
595  getObjects(ids,refs,0,basemetIds_.size());
596  }
597  void getObjects(Vids& ids, VRbasemet& refs, size_type begin, size_type end) const {
598  assert (begin<=end);
599  assert (end<=basemetIds_.size());
600  const size_type n(end-begin);
601  ids.resize(n);
602  refs.resize(n);
603  size_type j(0);
604  for (size_type i=begin; i!=end; ++i) {
605  ids[j]=basemetIds_[i];
606  refs[j]=basemetRefs_[i];
607  ++j;
608  }
609  }
610  void getObjects(int id, VRbasemet& refs) const {
611  getObjects(id,refs,0,basemetIds_.size());
612  }
613  void getObjects(int id, VRbasemet& refs, size_type begin, size_type end) const {
614  assert (begin<=end);
615  assert (end<=basemetIds_.size());
616  size_type n(0);
617  for (size_type i=begin; i!=end; ++i) {if (id==basemetIds_[i]) {++n;}}
618  refs.resize(n);
619  size_type j(0);
620  for (size_type i=begin; i!=end; ++i) {
621  if (id==basemetIds_[i]) {refs[j]=basemetRefs_[i]; ++j;}
622  }
623  return;
624  }
625 
626  void getObjects(Vids& ids, VRcalomet& refs) const {
627  getObjects(ids,refs,0,calometIds_.size());
628  }
629  void getObjects(Vids& ids, VRcalomet& refs, size_type begin, size_type end) const {
630  assert (begin<=end);
631  assert (end<=calometIds_.size());
632  const size_type n(end-begin);
633  ids.resize(n);
634  refs.resize(n);
635  size_type j(0);
636  for (size_type i=begin; i!=end; ++i) {
637  ids[j]=calometIds_[i];
638  refs[j]=calometRefs_[i];
639  ++j;
640  }
641  }
642  void getObjects(int id, VRcalomet& refs) const {
643  getObjects(id,refs,0,calometIds_.size());
644  }
645  void getObjects(int id, VRcalomet& refs, size_type begin, size_type end) const {
646  assert (begin<=end);
647  assert (end<=calometIds_.size());
648  size_type n(0);
649  for (size_type i=begin; i!=end; ++i) {if (id==calometIds_[i]) {++n;}}
650  refs.resize(n);
651  size_type j(0);
652  for (size_type i=begin; i!=end; ++i) {
653  if (id==calometIds_[i]) {refs[j]=calometRefs_[i]; ++j;}
654  }
655  return;
656  }
657 
658  void getObjects(Vids& ids, VRpixtrack& refs) const {
659  getObjects(ids,refs,0,pixtrackIds_.size());
660  }
661  void getObjects(Vids& ids, VRpixtrack& refs, size_type begin, size_type end) const {
662  assert (begin<=end);
663  assert (end<=pixtrackIds_.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]=pixtrackIds_[i];
670  refs[j]=pixtrackRefs_[i];
671  ++j;
672  }
673  }
674  void getObjects(int id, VRpixtrack& refs) const {
675  getObjects(id,refs,0,pixtrackIds_.size());
676  }
677  void getObjects(int id, VRpixtrack& refs, size_type begin, size_type end) const {
678  assert (begin<=end);
679  assert (end<=pixtrackIds_.size());
680  size_type n(0);
681  for (size_type i=begin; i!=end; ++i) {if (id==pixtrackIds_[i]) {++n;}}
682  refs.resize(n);
683  size_type j(0);
684  for (size_type i=begin; i!=end; ++i) {
685  if (id==pixtrackIds_[i]) {refs[j]=pixtrackRefs_[i]; ++j;}
686  }
687  return;
688  }
689 
690  void getObjects(Vids& ids, VRl1em& refs) const {
691  getObjects(ids,refs,0,l1emIds_.size());
692  }
693  void getObjects(Vids& ids, VRl1em& refs, size_type begin, size_type end) const {
694  assert (begin<=end);
695  assert (end<=l1emIds_.size());
696  const size_type n(end-begin);
697  ids.resize(n);
698  refs.resize(n);
699  size_type j(0);
700  for (size_type i=begin; i!=end; ++i) {
701  ids[j]=l1emIds_[i];
702  refs[j]=l1emRefs_[i];
703  ++j;
704  }
705  }
706  void getObjects(int id, VRl1em& refs) const {
707  getObjects(id,refs,0,l1emIds_.size());
708  }
709  void getObjects(int id, VRl1em& refs, size_type begin, size_type end) const {
710  assert (begin<=end);
711  assert (end<=l1emIds_.size());
712  size_type n(0);
713  for (size_type i=begin; i!=end; ++i) {if (id==l1emIds_[i]) {++n;}}
714  refs.resize(n);
715  size_type j(0);
716  for (size_type i=begin; i!=end; ++i) {
717  if (id==l1emIds_[i]) {refs[j]=l1emRefs_[i]; ++j;}
718  }
719  return;
720  }
721 
722  void getObjects(Vids& ids, VRl1muon& refs) const {
723  getObjects(ids,refs,0,l1muonIds_.size());
724  }
725  void getObjects(Vids& ids, VRl1muon& refs, size_type begin, size_type end) const {
726  assert (begin<=end);
727  assert (end<=l1muonIds_.size());
728  const size_type n(end-begin);
729  ids.resize(n);
730  refs.resize(n);
731  size_type j(0);
732  for (size_type i=begin; i!=end; ++i) {
733  ids[j]=l1muonIds_[i];
734  refs[j]=l1muonRefs_[i];
735  ++j;
736  }
737  }
738  void getObjects(int id, VRl1muon& refs) const {
739  getObjects(id,refs,0,l1muonIds_.size());
740  }
741  void getObjects(int id, VRl1muon& refs, size_type begin, size_type end) const {
742  assert (begin<=end);
743  assert (end<=l1muonIds_.size());
744  size_type n(0);
745  for (size_type i=begin; i!=end; ++i) {if (id==l1muonIds_[i]) {++n;}}
746  refs.resize(n);
747  size_type j(0);
748  for (size_type i=begin; i!=end; ++i) {
749  if (id==l1muonIds_[i]) {refs[j]=l1muonRefs_[i]; ++j;}
750  }
751  return;
752  }
753 
754  void getObjects(Vids& ids, VRl1jet& refs) const {
755  getObjects(ids,refs,0,l1jetIds_.size());
756  }
757  void getObjects(Vids& ids, VRl1jet& refs, size_type begin, size_type end) const {
758  assert (begin<=end);
759  assert (end<=l1jetIds_.size());
760  const size_type n(end-begin);
761  ids.resize(n);
762  refs.resize(n);
763  size_type j(0);
764  for (size_type i=begin; i!=end; ++i) {
765  ids[j]=l1jetIds_[i];
766  refs[j]=l1jetRefs_[i];
767  ++j;
768  }
769  }
770  void getObjects(int id, VRl1jet& refs) const {
771  getObjects(id,refs,0,l1jetIds_.size());
772  }
773  void getObjects(int id, VRl1jet& refs, size_type begin, size_type end) const {
774  assert (begin<=end);
775  assert (end<=l1jetIds_.size());
776  size_type n(0);
777  for (size_type i=begin; i!=end; ++i) {if (id==l1jetIds_[i]) {++n;}}
778  refs.resize(n);
779  size_type j(0);
780  for (size_type i=begin; i!=end; ++i) {
781  if (id==l1jetIds_[i]) {refs[j]=l1jetRefs_[i]; ++j;}
782  }
783  return;
784  }
785 
786  void getObjects(Vids& ids, VRl1etmiss& refs) const {
787  getObjects(ids,refs,0,l1etmissIds_.size());
788  }
789  void getObjects(Vids& ids, VRl1etmiss& refs, size_type begin, size_type end) const {
790  assert (begin<=end);
791  assert (end<=l1etmissIds_.size());
792  const size_type n(end-begin);
793  ids.resize(n);
794  refs.resize(n);
795  size_type j(0);
796  for (size_type i=begin; i!=end; ++i) {
797  ids[j]=l1etmissIds_[i];
798  refs[j]=l1etmissRefs_[i];
799  ++j;
800  }
801  }
802  void getObjects(int id, VRl1etmiss& refs) const {
803  getObjects(id,refs,0,l1etmissIds_.size());
804  }
805  void getObjects(int id, VRl1etmiss& refs, size_type begin, size_type end) const {
806  assert (begin<=end);
807  assert (end<=l1etmissIds_.size());
808  size_type n(0);
809  for (size_type i=begin; i!=end; ++i) {if (id==l1etmissIds_[i]) {++n;}}
810  refs.resize(n);
811  size_type j(0);
812  for (size_type i=begin; i!=end; ++i) {
813  if (id==l1etmissIds_[i]) {refs[j]=l1etmissRefs_[i]; ++j;}
814  }
815  return;
816  }
817 
818  void getObjects(Vids& ids, VRl1hfrings& refs) const {
819  getObjects(ids,refs,0,l1hfringsIds_.size());
820  }
821  void getObjects(Vids& ids, VRl1hfrings& refs, size_type begin, size_type end) const {
822  assert (begin<=end);
823  assert (end<=l1hfringsIds_.size());
824  const size_type n(end-begin);
825  ids.resize(n);
826  refs.resize(n);
827  size_type j(0);
828  for (size_type i=begin; i!=end; ++i) {
829  ids[j]=l1hfringsIds_[i];
830  refs[j]=l1hfringsRefs_[i];
831  ++j;
832  }
833  }
834  void getObjects(int id, VRl1hfrings& refs) const {
835  getObjects(id,refs,0,l1hfringsIds_.size());
836  }
837  void getObjects(int id, VRl1hfrings& refs, size_type begin, size_type end) const {
838  assert (begin<=end);
839  assert (end<=l1hfringsIds_.size());
840  size_type n(0);
841  for (size_type i=begin; i!=end; ++i) {if (id==l1hfringsIds_[i]) {++n;}}
842  refs.resize(n);
843  size_type j(0);
844  for (size_type i=begin; i!=end; ++i) {
845  if (id==l1hfringsIds_[i]) {refs[j]=l1hfringsRefs_[i]; ++j;}
846  }
847  return;
848  }
849 
850  void getObjects(Vids& ids, VRl1tmuon& refs) const {
851  getObjects(ids,refs,0,l1tmuonIds_.size());
852  }
853  void getObjects(Vids& ids, VRl1tmuon& refs, size_type begin, size_type end) const {
854  assert (begin<=end);
855  assert (end<=l1tmuonIds_.size());
856  const size_type n(end-begin);
857  ids.resize(n);
858  refs.resize(n);
859  size_type j(0);
860  for (size_type i=begin; i!=end; ++i) {
861  ids[j]=l1tmuonIds_[i];
862  refs[j]=l1tmuonRefs_[i];
863  ++j;
864  }
865  }
866  void getObjects(int id, VRl1tmuon& refs) const {
867  getObjects(id,refs,0,l1tmuonIds_.size());
868  }
869  void getObjects(int id, VRl1tmuon& refs, size_type begin, size_type end) const {
870  assert (begin<=end);
871  assert (end<=l1tmuonIds_.size());
872  size_type n(0);
873  for (size_type i=begin; i!=end; ++i) {if (id==l1tmuonIds_[i]) {++n;}}
874  refs.resize(n);
875  size_type j(0);
876  for (size_type i=begin; i!=end; ++i) {
877  if (id==l1tmuonIds_[i]) {refs[j]=l1tmuonRefs_[i]; ++j;}
878  }
879  return;
880  }
881 
882  void getObjects(Vids& ids, VRl1tegamma& refs) const {
883  getObjects(ids,refs,0,l1tegammaIds_.size());
884  }
885  void getObjects(Vids& ids, VRl1tegamma& refs, size_type begin, size_type end) const {
886  assert (begin<=end);
887  assert (end<=l1tegammaIds_.size());
888  const size_type n(end-begin);
889  ids.resize(n);
890  refs.resize(n);
891  size_type j(0);
892  for (size_type i=begin; i!=end; ++i) {
893  ids[j]=l1tegammaIds_[i];
894  refs[j]=l1tegammaRefs_[i];
895  ++j;
896  }
897  }
898  void getObjects(int id, VRl1tegamma& refs) const {
899  getObjects(id,refs,0,l1tegammaIds_.size());
900  }
901  void getObjects(int id, VRl1tegamma& refs, size_type begin, size_type end) const {
902  assert (begin<=end);
903  assert (end<=l1tegammaIds_.size());
904  size_type n(0);
905  for (size_type i=begin; i!=end; ++i) {if (id==l1tegammaIds_[i]) {++n;}}
906  refs.resize(n);
907  size_type j(0);
908  for (size_type i=begin; i!=end; ++i) {
909  if (id==l1tegammaIds_[i]) {refs[j]=l1tegammaRefs_[i]; ++j;}
910  }
911  return;
912  }
913 
914  void getObjects(Vids& ids, VRl1tjet& refs) const {
915  getObjects(ids,refs,0,l1tjetIds_.size());
916  }
917  void getObjects(Vids& ids, VRl1tjet& refs, size_type begin, size_type end) const {
918  assert (begin<=end);
919  assert (end<=l1tjetIds_.size());
920  const size_type n(end-begin);
921  ids.resize(n);
922  refs.resize(n);
923  size_type j(0);
924  for (size_type i=begin; i!=end; ++i) {
925  ids[j]=l1tjetIds_[i];
926  refs[j]=l1tjetRefs_[i];
927  ++j;
928  }
929  }
930  void getObjects(int id, VRl1tjet& refs) const {
931  getObjects(id,refs,0,l1tjetIds_.size());
932  }
933  void getObjects(int id, VRl1tjet& refs, size_type begin, size_type end) const {
934  assert (begin<=end);
935  assert (end<=l1tjetIds_.size());
936  size_type n(0);
937  for (size_type i=begin; i!=end; ++i) {if (id==l1tjetIds_[i]) {++n;}}
938  refs.resize(n);
939  size_type j(0);
940  for (size_type i=begin; i!=end; ++i) {
941  if (id==l1tjetIds_[i]) {refs[j]=l1tjetRefs_[i]; ++j;}
942  }
943  return;
944  }
945 
946  void getObjects(Vids& ids, VRl1ttau& refs) const {
947  getObjects(ids,refs,0,l1ttauIds_.size());
948  }
949  void getObjects(Vids& ids, VRl1ttau& refs, size_type begin, size_type end) const {
950  assert (begin<=end);
951  assert (end<=l1ttauIds_.size());
952  const size_type n(end-begin);
953  ids.resize(n);
954  refs.resize(n);
955  size_type j(0);
956  for (size_type i=begin; i!=end; ++i) {
957  ids[j]=l1ttauIds_[i];
958  refs[j]=l1ttauRefs_[i];
959  ++j;
960  }
961  }
962  void getObjects(int id, VRl1ttau& refs) const {
963  getObjects(id,refs,0,l1ttauIds_.size());
964  }
965  void getObjects(int id, VRl1ttau& refs, size_type begin, size_type end) const {
966  assert (begin<=end);
967  assert (end<=l1ttauIds_.size());
968  size_type n(0);
969  for (size_type i=begin; i!=end; ++i) {if (id==l1ttauIds_[i]) {++n;}}
970  refs.resize(n);
971  size_type j(0);
972  for (size_type i=begin; i!=end; ++i) {
973  if (id==l1ttauIds_[i]) {refs[j]=l1ttauRefs_[i]; ++j;}
974  }
975  return;
976  }
977 
978  void getObjects(Vids& ids, VRl1tetsum& refs) const {
979  getObjects(ids,refs,0,l1tetsumIds_.size());
980  }
981  void getObjects(Vids& ids, VRl1tetsum& refs, size_type begin, size_type end) const {
982  assert (begin<=end);
983  assert (end<=l1tetsumIds_.size());
984  const size_type n(end-begin);
985  ids.resize(n);
986  refs.resize(n);
987  size_type j(0);
988  for (size_type i=begin; i!=end; ++i) {
989  ids[j]=l1tetsumIds_[i];
990  refs[j]=l1tetsumRefs_[i];
991  ++j;
992  }
993  }
994  void getObjects(int id, VRl1tetsum& refs) const {
995  getObjects(id,refs,0,l1tetsumIds_.size());
996  }
997  void getObjects(int id, VRl1tetsum& refs, size_type begin, size_type end) const {
998  assert (begin<=end);
999  assert (end<=l1tetsumIds_.size());
1000  size_type n(0);
1001  for (size_type i=begin; i!=end; ++i) {if (id==l1tetsumIds_[i]) {++n;}}
1002  refs.resize(n);
1003  size_type j(0);
1004  for (size_type i=begin; i!=end; ++i) {
1005  if (id==l1tetsumIds_[i]) {refs[j]=l1tetsumRefs_[i]; ++j;}
1006  }
1007  return;
1008  }
1009 
1010  void getObjects(Vids& ids, VRpfjet& refs) const {
1011  getObjects(ids,refs,0,pfjetIds_.size());
1012  }
1013  void getObjects(Vids& ids, VRpfjet& refs, size_type begin, size_type end) const {
1014  assert (begin<=end);
1015  assert (end<=pfjetIds_.size());
1016  const size_type n(end-begin);
1017  ids.resize(n);
1018  refs.resize(n);
1019  size_type j(0);
1020  for (size_type i=begin; i!=end; ++i) {
1021  ids[j]=pfjetIds_[i];
1022  refs[j]=pfjetRefs_[i];
1023  ++j;
1024  }
1025  }
1026  void getObjects(int id, VRpfjet& refs) const {
1027  getObjects(id,refs,0,pfjetIds_.size());
1028  }
1029  void getObjects(int id, VRpfjet& refs, size_type begin, size_type end) const {
1030  assert (begin<=end);
1031  assert (end<=pfjetIds_.size());
1032  size_type n(0);
1033  for (size_type i=begin; i!=end; ++i) {if (id==pfjetIds_[i]) {++n;}}
1034  refs.resize(n);
1035  size_type j(0);
1036  for (size_type i=begin; i!=end; ++i) {
1037  if (id==pfjetIds_[i]) {refs[j]=pfjetRefs_[i]; ++j;}
1038  }
1039  return;
1040  }
1041 
1042  void getObjects(Vids& ids, VRpftau& refs) const {
1043  getObjects(ids,refs,0,pftauIds_.size());
1044  }
1045  void getObjects(Vids& ids, VRpftau& refs, size_type begin, size_type end) const {
1046  assert (begin<=end);
1047  assert (end<=pftauIds_.size());
1048  const size_type n(end-begin);
1049  ids.resize(n);
1050  refs.resize(n);
1051  size_type j(0);
1052  for (size_type i=begin; i!=end; ++i) {
1053  ids[j]=pftauIds_[i];
1054  refs[j]=pftauRefs_[i];
1055  ++j;
1056  }
1057  }
1058  void getObjects(int id, VRpftau& refs) const {
1059  getObjects(id,refs,0,pftauIds_.size());
1060  }
1061  void getObjects(int id, VRpftau& refs, size_type begin, size_type end) const {
1062  assert (begin<=end);
1063  assert (end<=pftauIds_.size());
1064  size_type n(0);
1065  for (size_type i=begin; i!=end; ++i) {if (id==pftauIds_[i]) {++n;}}
1066  refs.resize(n);
1067  size_type j(0);
1068  for (size_type i=begin; i!=end; ++i) {
1069  if (id==pftauIds_[i]) {refs[j]=pftauRefs_[i]; ++j;}
1070  }
1071  return;
1072  }
1073 
1074  void getObjects(Vids& ids, VRpfmet& refs) const {
1075  getObjects(ids,refs,0,pfmetIds_.size());
1076  }
1077  void getObjects(Vids& ids, VRpfmet& refs, size_type begin, size_type end) const {
1078  assert (begin<=end);
1079  assert (end<=pfmetIds_.size());
1080  const size_type n(end-begin);
1081  ids.resize(n);
1082  refs.resize(n);
1083  size_type j(0);
1084  for (size_type i=begin; i!=end; ++i) {
1085  ids[j]=pfmetIds_[i];
1086  refs[j]=pfmetRefs_[i];
1087  ++j;
1088  }
1089  }
1090  void getObjects(int id, VRpfmet& refs) const {
1091  getObjects(id,refs,0,pfmetIds_.size());
1092  }
1093  void getObjects(int id, VRpfmet& refs, size_type begin, size_type end) const {
1094  assert (begin<=end);
1095  assert (end<=pfmetIds_.size());
1096  size_type n(0);
1097  for (size_type i=begin; i!=end; ++i) {if (id==pfmetIds_[i]) {++n;}}
1098  refs.resize(n);
1099  size_type j(0);
1100  for (size_type i=begin; i!=end; ++i) {
1101  if (id==pfmetIds_[i]) {refs[j]=pfmetRefs_[i]; ++j;}
1102  }
1103  return;
1104  }
1105 
1107  size_type photonSize() const {return photonIds_.size();}
1108  const Vids& photonIds() const {return photonIds_;}
1109  const VRphoton& photonRefs() const {return photonRefs_;}
1110 
1111  size_type electronSize() const {return electronIds_.size();}
1112  const Vids& electronIds() const {return electronIds_;}
1113  const VRelectron& electronRefs() const {return electronRefs_;}
1114 
1115  size_type muonSize() const {return muonIds_.size();}
1116  const Vids& muonIds() const {return muonIds_;}
1117  const VRmuon& muonRefs() const {return muonRefs_;}
1118 
1119  size_type jetSize() const {return jetIds_.size();}
1120  const Vids& jetIds() const {return jetIds_;}
1121  const VRjet& jetRefs() const {return jetRefs_;}
1122 
1123  size_type compositeSize() const {return compositeIds_.size();}
1124  const Vids& compositeIds() const {return compositeIds_;}
1125  const VRcomposite& compositeRefs() const {return compositeRefs_;}
1126 
1127  size_type basemetSize() const {return basemetIds_.size();}
1128  const Vids& basemetIds() const {return basemetIds_;}
1129  const VRbasemet& basemetRefs() const {return basemetRefs_;}
1130 
1131  size_type calometSize() const {return calometIds_.size();}
1132  const Vids& calometIds() const {return calometIds_;}
1133  const VRcalomet& calometRefs() const {return calometRefs_;}
1134 
1135  size_type pixtrackSize() const {return pixtrackIds_.size();}
1136  const Vids& pixtrackIds() const {return pixtrackIds_;}
1137  const VRpixtrack& pixtrackRefs() const {return pixtrackRefs_;}
1138 
1139  size_type l1emSize() const {return l1emIds_.size();}
1140  const Vids& l1emIds() const {return l1emIds_;}
1141  const VRl1em& l1emRefs() const {return l1emRefs_;}
1142 
1143  size_type l1muonSize() const {return l1muonIds_.size();}
1144  const Vids& l1muonIds() const {return l1muonIds_;}
1145  const VRl1muon& l1muonRefs() const {return l1muonRefs_;}
1146 
1147  size_type l1jetSize() const {return l1jetIds_.size();}
1148  const Vids& l1jetIds() const {return l1jetIds_;}
1149  const VRl1jet& l1jetRefs() const {return l1jetRefs_;}
1150 
1151  size_type l1etmissSize() const {return l1etmissIds_.size();}
1152  const Vids& l1etmissIds() const {return l1etmissIds_;}
1153  const VRl1etmiss& l1etmissRefs() const {return l1etmissRefs_;}
1154 
1155  size_type l1hfringsSize() const {return l1hfringsIds_.size();}
1156  const Vids& l1hfringsIds() const {return l1hfringsIds_;}
1157  const VRl1hfrings& l1hfringsRefs() const {return l1hfringsRefs_;}
1158 
1159  size_type pfjetSize() const {return pfjetIds_.size();}
1160  const Vids& pfjetIds() const {return pfjetIds_;}
1161  const VRpfjet& pfjetRefs() const {return pfjetRefs_;}
1162 
1163  size_type pftauSize() const {return pftauIds_.size();}
1164  const Vids& pftauIds() const {return pftauIds_;}
1165  const VRpftau& pftauRefs() const {return pftauRefs_;}
1166 
1167  size_type pfmetSize() const {return pfmetIds_.size();}
1168  const Vids& pfmetIds() const {return pfmetIds_;}
1169  const VRpfmet& pfmetRefs() const {return pfmetRefs_;}
1170 
1171  size_type l1tmuonSize() const {return l1tmuonIds_.size();}
1172  const Vids& l1tmuonIds() const {return l1tmuonIds_;}
1173  const VRl1tmuon& l1tmuonRefs() const {return l1tmuonRefs_;}
1174 
1175  size_type l1tegammaSize() const {return l1tegammaIds_.size();}
1176  const Vids& l1tegammaIds() const {return l1tegammaIds_;}
1177  const VRl1tegamma& l1tegammaRefs() const {return l1tegammaRefs_;}
1178 
1179  size_type l1tjetSize() const {return l1tjetIds_.size();}
1180  const Vids& l1tjetIds() const {return l1tjetIds_;}
1181  const VRl1tjet& l1tjetRefs() const {return l1tjetRefs_;}
1182 
1183  size_type l1ttauSize() const {return l1ttauIds_.size();}
1184  const Vids& l1ttauIds() const {return l1ttauIds_;}
1185  const VRl1ttau& l1ttauRefs() const {return l1ttauRefs_;}
1186 
1187  size_type l1tetsumSize() const {return l1tetsumIds_.size();}
1188  const Vids& l1tetsumIds() const {return l1tetsumIds_;}
1189  const VRl1tetsum& l1tetsumRefs() const {return l1tetsumRefs_;}
1190 
1191  };
1192 
1193  // picked up via argument dependent lookup, e-g- by boost::swap()
1195  first.swap(second);
1196  }
1197 
1198 }
1199 
1200 #endif
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)
int i
Definition: DBlmapReader.cc:9
void getObjects(Vids &ids, VRpfjet &refs, size_type begin, size_type end) 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
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)
const VRbasemet & basemetRefs() const
const VRcalomet & calometRefs() const
size_type addObjects(const Vids &ids, const VRl1muon &refs)
void getObjects(int id, VRcalomet &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)
std::vector< JetRef > JetVectorRef
Definition: Jet.h:14
const VRl1tetsum & l1tetsumRefs() const
l1t::EGammaVectorRef VRl1tegamma
void getObjects(Vids &ids, VRl1tegamma &refs) const
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 swap(TriggerRefsCollections &other)
utility
void getObjects(int id, VRl1ttau &refs) const
std::vector< reco::METRef > VRbasemet
assert(m_qm.get())
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
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
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)
l1t::JetVectorRef VRl1tjet
void getObjects(int id, VRelectron &refs) const
size_type addObjects(const Vids &ids, const VRpfmet &refs)
uint16_t size_type
void getObjects(Vids &ids, VRl1ttau &refs) const
size_type addObjects(const Vids &ids, const VRjet &refs)
std::vector< MuonRef > MuonVectorRef
Definition: Muon.h:14
void getObjects(Vids &ids, VRpixtrack &refs, size_type begin, size_type end) const
std::vector< l1extra::L1MuonParticleRef > VRl1muon
void getObjects(int id, VRl1tjet &refs, size_type begin, size_type end) const
void addObject(int id, const reco::PFTauRef &ref)
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;)
U second(std::pair< T, U > const &p)
const VRl1ttau & l1ttauRefs() 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
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)
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
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
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
size_type addObjects(const Vids &ids, const VRl1tetsum &refs)
void addObject(int id, const l1extra::L1EmParticleRef &ref)
void getObjects(int id, VRl1muon &refs) const
void getObjects(int id, VRl1tetsum &refs, size_type begin, size_type end) const
void getObjects(Vids &ids, VRjet &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
int j
Definition: DBlmapReader.cc:9
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
#define end
Definition: vmac.h:37
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
void getObjects(Vids &ids, VRl1hfrings &refs) const
void getObjects(Vids &ids, VRl1tegamma &refs, size_type begin, size_type end) const
void addObject(int id, const l1t::MuonRef &ref)
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
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
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, VRl1muon &refs, size_type begin, size_type end) const
void addObject(int id, const reco::CaloMETRef &ref)
void getObjects(int id, VRl1tegamma &refs, size_type begin, size_type end) const
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
std::vector< EGammaRef > EGammaVectorRef
Definition: EGamma.h:15
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)
const VRelectron & electronRefs() const
void getObjects(int id, VRl1em &refs, size_type begin, size_type end) const
#define begin
Definition: vmac.h:30
void getObjects(Vids &ids, VRl1ttau &refs, size_type begin, size_type end) const
std::vector< TauRef > TauVectorRef
Definition: Tau.h:14
size_type addObjects(const Vids &ids, const VRl1jet &refs)
void getObjects(Vids &ids, VRjet &refs, size_type begin, size_type end) const
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
std::vector< EtSumRef > EtSumVectorRef
Definition: EtSum.h:14
void addObject(int id, const l1extra::L1JetParticleRef &ref)
void getObjects(int id, VRl1tjet &refs) 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
void getObjects(int id, VRpftau &refs) const
l1t::EtSumVectorRef VRl1tetsum
std::vector< reco::RecoEcalCandidateRef > VRphoton
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 getObjects(Vids &ids, VRl1etmiss &refs) const
void getObjects(int id, VRl1etmiss &refs) const