Go to the source code of this file.
Defines | |
#define | GETREF(_class_, _mask_, _bit_) |
Enumerations | |
enum | PFRefBits { kRefTrackBit = 0x1, kRefGsfTrackBit = 0x2, kRefMuonBit = 0x4, kRefDisplacedVertexDauBit = 0x8, kRefDisplacedVertexMotBit = 0x10, kRefConversionBit = 0x20, kRefV0Bit = 0x40, kRefGsfElectronBit = 0x80, kRefPFElectronExtraBit = 0x100, kRefPhotonBit = 0x200, kRefPFPhotonExtraBit = 0x400, kRefSuperClusterBit = 0x800 } |
enum | PFRefMasks { kRefTrackMask = 0, kRefGsfTrackMask = kRefTrackMask+kRefTrackBit, kRefMuonMask = kRefGsfTrackMask+kRefGsfTrackBit, kRefDisplacedVertexDauMask = kRefMuonMask+kRefMuonBit, kRefDisplacedVertexMotMask = kRefDisplacedVertexDauMask+kRefDisplacedVertexDauBit, kRefConversionMask = kRefDisplacedVertexMotMask+kRefDisplacedVertexMotBit, kRefV0Mask = kRefConversionMask+kRefConversionBit, kRefGsfElectronMask = kRefV0Mask+kRefV0Bit, kRefPFElectronExtraMask = kRefGsfElectronMask+kRefGsfElectronBit, kRefPhotonMask = kRefPFElectronExtraMask+kRefPFElectronExtraBit, kRefPFPhotonExtraMask = kRefPhotonMask+kRefPhotonBit, kRefSuperClusterMask = kRefPFPhotonExtraMask+kRefPFPhotonExtraBit } |
Variables | |
static const unsigned int | s_refsBefore [] |
#define GETREF | ( | _class_, | |
_mask_, | |||
_bit_ | |||
) |
edm::ProductID prodID; size_t index, aIndex; \ typedef edm::Ref<std::vector<_class_> > RefType; \ if(getRefInfo(_mask_, _bit_, prodID, index, aIndex) ) { \ if (refsCollectionCache_.size()==0 || refsCollectionCache_[aIndex]==0) return RefType(prodID, index, getter_); \ else { \ const vector<_class_> *t=reinterpret_cast< const vector<_class_>* >(refsCollectionCache_[aIndex]);\ return RefType(prodID, &((*t)[aIndex]),index,t);\ } } \ return RefType()
Definition at line 4145 of file CountBits.h.
Referenced by reco::PFCandidate::conversionRef(), reco::PFCandidate::displacedVertexRef(), reco::PFCandidate::electronExtraRef(), reco::PFCandidate::gsfElectronRef(), reco::PFCandidate::gsfTrackRef(), reco::PFCandidate::muonRef(), reco::PFCandidate::photonExtraRef(), reco::PFCandidate::photonRef(), reco::PFCandidate::superClusterRef(), reco::PFCandidate::trackRef(), and reco::PFCandidate::v0Ref().
enum PFRefBits |
Definition at line 4115 of file CountBits.h.
{ kRefTrackBit=0x1, kRefGsfTrackBit=0x2, kRefMuonBit=0x4, kRefDisplacedVertexDauBit=0x8, kRefDisplacedVertexMotBit=0x10, kRefConversionBit=0x20, kRefV0Bit=0x40, kRefGsfElectronBit=0x80, kRefPFElectronExtraBit=0x100, kRefPhotonBit=0x200, kRefPFPhotonExtraBit=0x400, kRefSuperClusterBit=0x800 };
enum PFRefMasks |
Definition at line 4129 of file CountBits.h.
{ kRefTrackMask=0, kRefGsfTrackMask=kRefTrackMask+kRefTrackBit, kRefMuonMask=kRefGsfTrackMask+kRefGsfTrackBit, kRefDisplacedVertexDauMask=kRefMuonMask+kRefMuonBit, kRefDisplacedVertexMotMask=kRefDisplacedVertexDauMask+kRefDisplacedVertexDauBit, kRefConversionMask=kRefDisplacedVertexMotMask+kRefDisplacedVertexMotBit, kRefV0Mask=kRefConversionMask+kRefConversionBit, kRefGsfElectronMask=kRefV0Mask+kRefV0Bit, kRefPFElectronExtraMask=kRefGsfElectronMask+kRefGsfElectronBit, kRefPhotonMask=kRefPFElectronExtraMask+kRefPFElectronExtraBit, kRefPFPhotonExtraMask=kRefPhotonMask+kRefPhotonBit, kRefSuperClusterMask=kRefPFPhotonExtraMask+kRefPFPhotonExtraBit };
const unsigned int s_refsBefore[] [static] |
Definition at line 14 of file CountBits.h.
Referenced by reco::PFCandidate::getRefInfo(), and reco::PFCandidate::storeRefInfo().