CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
33  int bunchCrossing() const {
34  return bunchCrossing_;
35  }
36 
37 
38  template<typename T>
39  bool
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  }
47 
48 private:
52 };
53 
54 #endif
edm::EventPrincipal const & principal()
edm::EventPrincipal const & principal_
PileUpEventPrincipal(edm::EventPrincipal const &ep, edm::ModuleCallingContext const *mcc, int bcr)
tuple result
Definition: query.py:137
edm::EventPrincipal const & principal() const
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_
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
BasicHandle getByLabel(KindOfType kindOfType, TypeID const &typeID, InputTag const &inputTag, EDConsumerBase const *consumes, ModuleCallingContext const *mcc) const
Definition: Principal.cc:445
long double T