1 #ifndef FWCore_Framework_PrincipalGetAdapter_h 2 #define FWCore_Framework_PrincipalGetAdapter_h 87 #include <boost/type_traits.hpp> 112 class ModuleCallingContext;
115 namespace principal_get_adapter_detail {
140 consumer_ = iConsumer;
144 resourcesAcquirer_ = iSra;
148 bool isComplete()
const;
150 template <
typename PROD>
152 checkIfComplete()
const;
154 template <
typename PROD>
159 processHistory()
const;
180 getByLabel_(
TypeID const& tid,
191 getMatchingSequenceByLabel_(
TypeID const& typeID,
196 getMatchingSequenceByLabel_(
TypeID const& typeID,
203 getManyByType_(
TypeID const& tid,
240 template <
typename PROD>
243 operator<<(std::ostream& os, Handle<PROD>
const&
h) {
244 os <<
h.product() <<
" " <<
h.provenance() <<
" " <<
h.id();
264 typedef char (&
no_tag)[1];
277 sizeof(has_postinsert_helper<T>(
nullptr)) ==
sizeof(
yes_tag) &&
285 template <
typename T>
299 template <
typename T>
304 template <
typename T>
313 template <
typename PROD>
320 template <
typename PROD>
326 this->getManyByType_(
TypeID(
typeid(
PROD)), bhv, mcc);
340 std::vector<Handle<PROD> >
products;
342 typename BasicHandleVec::iterator it = bhv.begin();
343 typename BasicHandleVec::iterator
end = bhv.end();
348 products.push_back(result);
SharedResourcesAcquirer * resourcesAcquirer_
void setConsumer(EDConsumerBase const *iConsumer)
void operator()(T *p) const
Principal const & principal() const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
static PFTauRenderPlugin instance
EDConsumerBase const * consumer_
void setSharedResourcesAcquirer(SharedResourcesAcquirer *iSra)
static void throwAmbiguousException(const char *where, TypeID const &productType, std::string const &label, std::string const &instance, std::string const &process)
yes_tag has_postinsert_helper(postinsert_function< T,&T::post_insert > *p)
ESProducts< T, S > products(const T &i1, const S &i2)
void getManyByType(std::vector< Handle< PROD > > &results, ModuleCallingContext const *mcc) const
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Principal const & principal_
void operator()(T *) const
void throwOnPrematureRead(char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
ModuleDescription const & md_
void throwOnPutOfNullProduct(char const *principalType, TypeID const &productType, std::string const &productInstanceName)
bool checkIfComplete() const
def branchType(schema, name)
std::vector< BasicHandle > BasicHandleVec