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

◆ GETREF

#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_.empty() || 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.

Enumeration Type Documentation

◆ PFRefBits

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

Definition at line 4625 of file CountBits.h.

4625  {
4626  kRefTrackBit = 0x1,
4627  kRefGsfTrackBit = 0x2,
4628  kRefMuonBit = 0x4,
4631  kRefConversionBit = 0x20,
4632  kRefV0Bit = 0x40,
4633  kRefGsfElectronBit = 0x80,
4634  kRefPFElectronExtraBit = 0x100,
4635  kRefPhotonBit = 0x200,
4636  kRefPFPhotonExtraBit = 0x400,
4637  kRefSuperClusterBit = 0x800,
4638  kRefPFEGammaExtraBit = 0x1000
4639 };

◆ PFRefMasks

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

Definition at line 4640 of file CountBits.h.

Variable Documentation

◆ s_refsBefore

const unsigned int s_refsBefore[]
static

Definition at line 14 of file CountBits.h.

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

kRefPFPhotonExtraMask
Definition: CountBits.h:4651
kRefV0Bit
Definition: CountBits.h:4632
kRefConversionMask
Definition: CountBits.h:4646
kRefV0Mask
Definition: CountBits.h:4647
kRefSuperClusterBit
Definition: CountBits.h:4637
kRefDisplacedVertexDauBit
Definition: CountBits.h:4629
kRefDisplacedVertexDauMask
Definition: CountBits.h:4644
kRefPFElectronExtraMask
Definition: CountBits.h:4649
edm::Ref
Definition: AssociativeIterator.h:58
kRefDisplacedVertexMotBit
Definition: CountBits.h:4630
kRefConversionBit
Definition: CountBits.h:4631
kRefTrackMask
Definition: CountBits.h:4641
kRefPFEGammaExtraMask
Definition: CountBits.h:4653
kRefPFElectronExtraBit
Definition: CountBits.h:4634
kRefTrackBit
Definition: CountBits.h:4626
kRefGsfElectronMask
Definition: CountBits.h:4648
kRefPhotonMask
Definition: CountBits.h:4650
kRefSuperClusterMask
Definition: CountBits.h:4652
kRefGsfTrackMask
Definition: CountBits.h:4642
kRefPFPhotonExtraBit
Definition: CountBits.h:4636
kRefMuonMask
Definition: CountBits.h:4643
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
kRefPhotonBit
Definition: CountBits.h:4635
kRefDisplacedVertexMotMask
Definition: CountBits.h:4645
kRefMuonBit
Definition: CountBits.h:4628
kRefGsfTrackBit
Definition: CountBits.h:4627
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
kRefPFEGammaExtraBit
Definition: CountBits.h:4638
edm::ProductID
Definition: ProductID.h:27
kRefGsfElectronBit
Definition: CountBits.h:4633