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:
21 
23  principal_(ep), mcc_(mcc), bunchCrossing_(bcr) {}
24 
26  return principal_;
27  }
28 
29  edm::EventPrincipal const& principal() const {
30  return principal_;
31  }
32 
34  return mcc_;
35  }
36 
37  int bunchCrossing() const {
38  return bunchCrossing_;
39  }
40 
41 
42  template<typename T>
43  bool
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  }
49 
50 private:
54 };
55 
56 #endif
edm::EventPrincipal const & principal()
edm::EventPrincipal const & principal_
PileUpEventPrincipal(edm::EventPrincipal const &ep, edm::ModuleCallingContext const *mcc, int bcr)
edm::EventPrincipal const & principal() const
bool isValid() const
Definition: HandleBase.h:74
edm::ModuleCallingContext const * mcc_
edm::ModuleCallingContext const * moduleCallingContext() const
HLT enums.
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
long double T
def move(src, dest)
Definition: eostools.py:511