CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PileUpEventPrincipal Class Reference

#include <PileUpEventPrincipal.h>

Public Member Functions

int bunchCrossing () const
 
template<typename T >
bool getByLabel (edm::InputTag const &tag, edm::Handle< T > &result) const
 
edm::ModuleCallingContext const * moduleCallingContext () const
 
 PileUpEventPrincipal (edm::EventPrincipal const &ep, edm::ModuleCallingContext const *mcc, int bcr)
 
edm::EventPrincipal const & principal ()
 
edm::EventPrincipal const & principal () const
 

Private Attributes

int bunchCrossing_
 
edm::ModuleCallingContext const * mcc_
 
edm::EventPrincipal const & principal_
 

Detailed Description

Definition at line 19 of file PileUpEventPrincipal.h.

Constructor & Destructor Documentation

◆ PileUpEventPrincipal()

PileUpEventPrincipal::PileUpEventPrincipal ( edm::EventPrincipal const &  ep,
edm::ModuleCallingContext const *  mcc,
int  bcr 
)
inline

Member Function Documentation

◆ bunchCrossing()

int PileUpEventPrincipal::bunchCrossing ( ) const
inline

◆ getByLabel()

template<typename T >
bool PileUpEventPrincipal::getByLabel ( edm::InputTag const &  tag,
edm::Handle< T > &  result 
) const
inline

Definition at line 33 of file PileUpEventPrincipal.h.

References edm::Principal::getByLabel(), mcc_, eostools::move(), principal_, edm::PRODUCT_TYPE, mps_fire::result, and makeGlobalPositionRcd_cfg::tag.

Referenced by edm::PreMixingPileupCopy::addPileupInfo(), PreMixingTrackingParticleWorker::addPileups(), PreMixingDigiSimLinkWorker< DigiSimLinkCollection >::addPileups(), edm::PreMixingCrossingFrameWorker< T >::addPileups(), PreMixingCaloParticleWorker::addPileups(), PreMixingMuonWorker< CSCWireDigiCollection >::addPileups(), PreMixingMTDWorker::addPileups(), PreMixingHGCalWorker::addPileups(), PreMixingPhase2TrackerWorker::addPileups(), PreMixingSiPixelWorker::addPileups(), PreMixingSiStripWorker::addPileups(), and edm::PreMixingPileupCopy::getTrueNumInteractions().

33  {
34  edm::BasicHandle bh = principal_.getByLabel(edm::PRODUCT_TYPE, edm::TypeID(typeid(T)), tag, nullptr, nullptr, mcc_);
35  result = edm::convert_handle<T>(std::move(bh));
36  return result.isValid();
37  }
edm::EventPrincipal const & principal_
BasicHandle getByLabel(KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag, EDConsumerBase const *consumes, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
Definition: Principal.cc:572
edm::ModuleCallingContext const * mcc_
long double T
def move(src, dest)
Definition: eostools.py:511

◆ moduleCallingContext()

edm::ModuleCallingContext const* PileUpEventPrincipal::moduleCallingContext ( ) const
inline

Definition at line 28 of file PileUpEventPrincipal.h.

References mcc_.

Referenced by PreMixingEcalWorker::addPileups(), and PreMixingHcalWorker::addPileups().

28 { return mcc_; }
edm::ModuleCallingContext const * mcc_

◆ principal() [1/2]

edm::EventPrincipal const& PileUpEventPrincipal::principal ( )
inline

◆ principal() [2/2]

edm::EventPrincipal const& PileUpEventPrincipal::principal ( ) const
inline

Definition at line 26 of file PileUpEventPrincipal.h.

References principal_.

26 { return principal_; }
edm::EventPrincipal const & principal_

Member Data Documentation

◆ bunchCrossing_

int PileUpEventPrincipal::bunchCrossing_
private

Definition at line 42 of file PileUpEventPrincipal.h.

Referenced by bunchCrossing().

◆ mcc_

edm::ModuleCallingContext const* PileUpEventPrincipal::mcc_
private

Definition at line 41 of file PileUpEventPrincipal.h.

Referenced by getByLabel(), and moduleCallingContext().

◆ principal_

edm::EventPrincipal const& PileUpEventPrincipal::principal_
private

Definition at line 40 of file PileUpEventPrincipal.h.

Referenced by getByLabel(), and principal().