CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
 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 40 of file PileUpEventPrincipal.h.

References edm::convert_handle(), edm::Principal::getByLabel(), edm::HandleBase::isValid(), mcc_, principal_, and edm::PRODUCT_TYPE.

Referenced by CastorDigiProducer::accumulate(), HcalTBDigiProducer::accumulate(), HcalDigitizer::accumulate(), RecoTrackAccumulator::accumulate(), SiStripDigitizer::accumulate(), cms::SiPixelDigitizer::accumulate(), and EcalDigiProducer::accumulate().

40  {
41  typedef typename T::value_type ItemType;
42  typedef typename T::iterator iterator;
44  convert_handle(std::move(bh), result);
45  return result.isValid();
46  }
edm::EventPrincipal const & principal_
bool isValid() const
Definition: HandleBase.h:76
Container::value_type value_type
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:20
edm::ModuleCallingContext const * mcc_
BasicHandle getByLabel(KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag, EDConsumerBase const *consumes, ModuleCallingContext const *mcc) const
Definition: Principal.cc:445
long double T
edm::EventPrincipal const& PileUpEventPrincipal::principal ( )
inline

Definition at line 25 of file PileUpEventPrincipal.h.

References principal_.

25  {
26  return principal_;
27  }
edm::EventPrincipal const & principal_
edm::EventPrincipal const& PileUpEventPrincipal::principal ( ) const
inline

Definition at line 29 of file PileUpEventPrincipal.h.

References principal_.

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

Member Data Documentation

int PileUpEventPrincipal::bunchCrossing_
private

Definition at line 51 of file PileUpEventPrincipal.h.

Referenced by bunchCrossing().

edm::ModuleCallingContext const* PileUpEventPrincipal::mcc_
private

Definition at line 50 of file PileUpEventPrincipal.h.

Referenced by getByLabel().

edm::EventPrincipal const& PileUpEventPrincipal::principal_
private

Definition at line 49 of file PileUpEventPrincipal.h.

Referenced by getByLabel(), and principal().