CMS 3D CMS Logo

Functions
PFCandidate.cc File Reference
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/MuonReco/interface/Muon.h"
#include "DataFormats/GsfTrackReco/interface/GsfTrack.h"
#include "DataFormats/ParticleFlowReco/interface/PFDisplacedVertex.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidateElectronExtra.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidatePhotonExtra.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidateEGammaExtra.h"
#include "DataFormats/EgammaCandidates/interface/Conversion.h"
#include "DataFormats/EgammaCandidates/interface/Photon.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <ostream>
#include <iomanip>
#include "DataFormats/ParticleFlowCandidate/src/CountBits.h"

Go to the source code of this file.

Functions

static unsigned long long bitPackRefInfo (const edm::RefCore &iCore, size_t iIndex)
 

Function Documentation

◆ bitPackRefInfo()

static unsigned long long bitPackRefInfo ( const edm::RefCore iCore,
size_t  iIndex 
)
static

Definition at line 336 of file PFCandidate.cc.

336  {
337  unsigned long long bitPack = iIndex;
338  bitPack |= static_cast<unsigned long long>(iCore.id().productIndex()) << 32;
339  bitPack |= static_cast<unsigned long long>(iCore.id().processIndex()) << 48;
340  return bitPack;
341 }

References edm::RefCore::id(), edm::ProductID::processIndex(), and edm::ProductID::productIndex().

Referenced by reco::PFCandidate::storeRefInfo().

edm::ProductID::processIndex
ProcessIndex processIndex() const
Definition: ProductID.h:33
edm::ProductID::productIndex
ProcessIndex productIndex() const
Definition: ProductID.h:34
edm::RefCore::id
ProductID id() const
Definition: RefCore.h:48