CMS 3D CMS Logo

PileUpEventPrincipal.h
Go to the documentation of this file.
1 #ifndef SimGeneral_MixingModule_PileUpEventPrincipal_h
2 #define SimGeneral_MixingModule_PileUpEventPrincipal_h
3 
4 #include <set>
5 #include <string>
6 
14 
15 namespace edm {
16  class ModuleCallingContext;
17 }
18 
20 public:
22  : principal_(ep), mcc_(mcc), bunchCrossing_(bcr) {}
23 
25 
26  edm::EventPrincipal const& principal() const { return principal_; }
27 
29 
30  int bunchCrossing() const { return bunchCrossing_; }
31 
32  template <typename T>
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  }
38 
39 private:
43 };
44 
45 #endif
edm::EventPrincipal const & principal() const
edm::EventPrincipal const & principal()
edm::ModuleCallingContext const * moduleCallingContext() const
edm::EventPrincipal const & principal_
PileUpEventPrincipal(edm::EventPrincipal const &ep, edm::ModuleCallingContext const *mcc, int bcr)
BasicHandle getByLabel(KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag, EDConsumerBase const *consumes, SharedResourcesAcquirer *sra, ModuleCallingContext const *mcc) const
Definition: Principal.cc:579
edm::ModuleCallingContext const * mcc_
HLT enums.
long double T
def move(src, dest)
Definition: eostools.py:511
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const