CMS 3D CMS Logo

Classes | Namespaces | Macros | Functions
component.h File Reference
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Classes

class  reco::component< T, M, Tag >
 
struct  reco::DefaultComponentTag
 
struct  reco::componenthelper::MultipleComponents< C, T, F, S >
 
struct  reco::componenthelper::MultipleComponentsTag
 
struct  reco::componenthelper::SingleComponent< C, T, F >
 
struct  reco::componenthelper::SingleComponentTag
 

Namespaces

 reco
 fixed size matrix
 
 reco::componenthelper
 

Macros

#define GET_CANDIDATE_COMPONENT(CAND, TYPE, FUN, TAG)
 
#define GET_CANDIDATE_MULTIPLECOMPONENTS(CAND, TYPE, FUN, SIZE, TAG)
 
#define GET_DEFAULT_CANDIDATE_COMPONENT(CAND, TYPE, FUN)
 
#define GET_DEFAULT_CANDIDATE_MULTIPLECOMPONENTS(CAND, TYPE, FUN, SIZE)
 

Functions

template<typename T >
T reco::get (const Candidate &c)
 
template<typename T , typename Tag >
T reco::get (const Candidate &c)
 
template<typename T >
T reco::get (const Candidate &c, size_t i)
 
template<typename T , typename Tag >
T reco::get (const Candidate &c, size_t i)
 
template<typename T >
size_t reco::numberOf (const Candidate &c)
 
template<typename T , typename Tag >
size_t reco::numberOf (const Candidate &c)
 

Macro Definition Documentation

◆ GET_CANDIDATE_COMPONENT

#define GET_CANDIDATE_COMPONENT (   CAND,
  TYPE,
  FUN,
  TAG 
)
Value:
template <> \
struct component<TYPE, componenthelper::SingleComponentTag, TAG> { \
typedef componenthelper::SingleComponent<CAND, TYPE, &CAND::FUN> type; \
}

Definition at line 91 of file component.h.

◆ GET_CANDIDATE_MULTIPLECOMPONENTS

#define GET_CANDIDATE_MULTIPLECOMPONENTS (   CAND,
  TYPE,
  FUN,
  SIZE,
  TAG 
)
Value:
template <> \
struct component<TYPE, componenthelper::MultipleComponentsTag, TAG> { \
typedef componenthelper::MultipleComponents<CAND, TYPE, &CAND::FUN, &CAND::SIZE> type; \
}

Definition at line 103 of file component.h.

◆ GET_DEFAULT_CANDIDATE_COMPONENT

#define GET_DEFAULT_CANDIDATE_COMPONENT (   CAND,
  TYPE,
  FUN 
)
Value:
template <> \
struct component<TYPE, componenthelper::SingleComponentTag, DefaultComponentTag> { \
typedef componenthelper::SingleComponent<CAND, TYPE, &CAND::FUN> type; \
}

Definition at line 97 of file component.h.

◆ GET_DEFAULT_CANDIDATE_MULTIPLECOMPONENTS

#define GET_DEFAULT_CANDIDATE_MULTIPLECOMPONENTS (   CAND,
  TYPE,
  FUN,
  SIZE 
)
Value:
template <> \
struct component<TYPE, componenthelper::MultipleComponentsTag, DefaultComponentTag> { \
typedef componenthelper::MultipleComponents<CAND, TYPE, &CAND::FUN, &CAND::SIZE> type; \
}

Definition at line 109 of file component.h.

type
type
Definition: HCALResponse.h:21