CMS 3D CMS Logo

Macros | Enumerations | Variables
CountBits.h File Reference

Go to the source code of this file.

Macros

#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,
  kRefPFEGammaExtraBit = 0x1000
}
 
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,
  kRefPFEGammaExtraMask = kRefSuperClusterMask + kRefSuperClusterBit
}
 

Variables

static const unsigned int s_refsBefore []
 

Macro Definition Documentation

#define GETREF (   _class_,
  _mask_,
  _bit_ 
)
Value:
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 { \
_class_ const* t = reinterpret_cast<_class_ const*>(refsCollectionCache_[aIndex]); \
return RefType(prodID, t, index); \
} \
} \
return RefType()

Definition at line 4656 of file CountBits.h.

Referenced by reco::PFCandidate::conversionRef(), reco::PFCandidate::displacedVertexRef(), reco::PFCandidate::egammaExtraRef(), 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().

Enumeration Type Documentation

enum PFRefBits
Enumerator
kRefTrackBit 
kRefGsfTrackBit 
kRefMuonBit 
kRefDisplacedVertexDauBit 
kRefDisplacedVertexMotBit 
kRefConversionBit 
kRefV0Bit 
kRefGsfElectronBit 
kRefPFElectronExtraBit 
kRefPhotonBit 
kRefPFPhotonExtraBit 
kRefSuperClusterBit 
kRefPFEGammaExtraBit 

Definition at line 4625 of file CountBits.h.

enum PFRefMasks
Enumerator
kRefTrackMask 
kRefGsfTrackMask 
kRefMuonMask 
kRefDisplacedVertexDauMask 
kRefDisplacedVertexMotMask 
kRefConversionMask 
kRefV0Mask 
kRefGsfElectronMask 
kRefPFElectronExtraMask 
kRefPhotonMask 
kRefPFPhotonExtraMask 
kRefSuperClusterMask 
kRefPFEGammaExtraMask 

Definition at line 4640 of file CountBits.h.

4640  {
4641  kRefTrackMask = 0,
4644  kRefDisplacedVertexDauMask = kRefMuonMask + kRefMuonBit,
4645  kRefDisplacedVertexMotMask = kRefDisplacedVertexDauMask + kRefDisplacedVertexDauBit,
4646  kRefConversionMask = kRefDisplacedVertexMotMask + kRefDisplacedVertexMotBit,
4647  kRefV0Mask = kRefConversionMask + kRefConversionBit,
4648  kRefGsfElectronMask = kRefV0Mask + kRefV0Bit,
4649  kRefPFElectronExtraMask = kRefGsfElectronMask + kRefGsfElectronBit,
4650  kRefPhotonMask = kRefPFElectronExtraMask + kRefPFElectronExtraBit,
4651  kRefPFPhotonExtraMask = kRefPhotonMask + kRefPhotonBit,
4652  kRefSuperClusterMask = kRefPFPhotonExtraMask + kRefPFPhotonExtraBit,
4653  kRefPFEGammaExtraMask = kRefSuperClusterMask + kRefSuperClusterBit
4654 };

Variable Documentation

const unsigned int s_refsBefore[]
static

Definition at line 14 of file CountBits.h.

Referenced by reco::PFCandidate::getRefInfo(), and reco::PFCandidate::storeRefInfo().