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 ( edm::EventPrincipal const &  ep,
edm::ModuleCallingContext const *  mcc,
int  bcr 
)
inline

Definition at line 22 of file PileUpEventPrincipal.h.

22  :
23  principal_(ep), mcc_(mcc), bunchCrossing_(bcr) {}
edm::EventPrincipal const & principal_
edm::ModuleCallingContext const * mcc_

Member Function Documentation

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

Definition at line 44 of file PileUpEventPrincipal.h.

References edm::HandleBase::isValid(), eostools::move(), and edm::PRODUCT_TYPE.

Referenced by EcalTimeDigiProducer::accumulate(), HcalTBDigiProducer::accumulate(), CastorDigiProducer::accumulate(), cms::PileupVertexAccumulator::accumulate(), SiStripDigitizer::accumulate(), HcalDigitizer::accumulate(), cms::SiPixelDigitizer::accumulate(), HGCDigitizer::accumulate(), EcalDigiProducer::accumulate(), ftl_digitizer::FTLDigitizer< SensorPhysics, ElectronicsSim >::accumulate(), mtd_digitizer::MTDDigitizer< Traits >::accumulate(), edm::PreMixingPileupCopy::addPileupInfo(), edm::PreMixingCrossingFrameWorker< T >::addPileups(), PreMixingDigiSimLinkWorker< DigiSimLinkCollection >::addPileups(), PreMixingMuonWorker< DigiCollection >::addPileups(), PreMixingCaloParticleWorker::addPileups(), PreMixingTrackingParticleWorker::addPileups(), PreMixingPhase2TrackerWorker::addPileups(), PreMixingMTDWorker::addPileups(), PreMixingHGCalWorker::addPileups(), PreMixingSiPixelWorker::addPileups(), PreMixingSiStripWorker::addPileups(), and edm::PreMixingPileupCopy::getTrueNumInteractions().

44  {
45  edm::BasicHandle bh = principal_.getByLabel(edm::PRODUCT_TYPE, edm::TypeID(typeid(T)), tag, nullptr, nullptr, mcc_);
46  result = edm::convert_handle<T>(std::move(bh));
47  return result.isValid();
48  }
BasicHandle getByLabel(KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag, EDConsumerBase const *consumes, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
Definition: Principal.cc:540
edm::EventPrincipal const & principal_
bool isValid() const
Definition: HandleBase.h:74
edm::ModuleCallingContext const * mcc_
long double T
def move(src, dest)
Definition: eostools.py:511
edm::ModuleCallingContext const* PileUpEventPrincipal::moduleCallingContext ( ) const
inline

Definition at line 33 of file PileUpEventPrincipal.h.

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

33  {
34  return mcc_;
35  }
edm::ModuleCallingContext const * mcc_
edm::EventPrincipal const& PileUpEventPrincipal::principal ( )
inline
edm::EventPrincipal const& PileUpEventPrincipal::principal ( ) const
inline

Definition at line 29 of file PileUpEventPrincipal.h.

29  {
30  return principal_;
31  }
edm::EventPrincipal const & principal_

Member Data Documentation

int PileUpEventPrincipal::bunchCrossing_
private

Definition at line 53 of file PileUpEventPrincipal.h.

edm::ModuleCallingContext const* PileUpEventPrincipal::mcc_
private

Definition at line 52 of file PileUpEventPrincipal.h.

edm::EventPrincipal const& PileUpEventPrincipal::principal_
private

Definition at line 51 of file PileUpEventPrincipal.h.