1 #ifndef FWCore_Framework_PrincipalGetAdapter_h 2 #define FWCore_Framework_PrincipalGetAdapter_h 87 #include <type_traits> 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 using no_tag = std::false_type;
265 using yes_tag = std::true_type;
284 template <
typename T>
298 template <
typename T>
303 template <
typename T>
312 template <
typename PROD>
319 template <
typename PROD>
325 this->getManyByType_(
TypeID(
typeid(
PROD)), bhv, mcc);
339 std::vector<Handle<PROD> >
products;
341 typename BasicHandleVec::iterator it = bhv.begin();
342 typename BasicHandleVec::iterator
end = bhv.end();
347 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