Public Member Functions | Private Attributes | List of all members
art::ConsumesCollector Class Reference

#include <ConsumesCollector.h>

Public Member Functions

std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables () const
 
void sortConsumables (std::string const &current_process_name)
 
template<typename T , BranchType = InEvent>
ProductToken< T > consumes (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename T , BranchType = InEvent>
ProductToken< T > mayConsume (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 
template<typename T , BranchType BT>
ViewToken< T > consumesView (InputTag const &tag)
 
template<typename T , BranchType BT>
ViewToken< T > mayConsumeView (InputTag const &tag)
 

Private Attributes

std::array< std::vector< ProductInfo >, NumBranchTypesconsumables_ {}
 

Detailed Description

Definition at line 16 of file ConsumesCollector.h.

Member Function Documentation

template<typename T , BranchType BT>
ProductToken< T > art::ConsumesCollector::consumes ( InputTag const &  tag)

Definition at line 43 of file ConsumesCollector.h.

44  {
46  TypeID{typeid(T)},
47  tag.label(),
48  tag.instance(),
49  ProcessTag{tag.process()});
50  return ProductToken<T>{tag};
51  }
std::array< std::vector< ProductInfo >, NumBranchTypes > consumables_
template<typename T , BranchType BT>
void art::ConsumesCollector::consumesMany ( )

Definition at line 67 of file ConsumesCollector.h.

68  {
70  TypeID{typeid(T)});
71  }
std::array< std::vector< ProductInfo >, NumBranchTypes > consumables_
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::ConsumesCollector::consumesView ( InputTag const &  )
template<typename T , BranchType BT>
ViewToken<T> art::ConsumesCollector::consumesView ( InputTag const &  tag)

Definition at line 55 of file ConsumesCollector.h.

56  {
58  TypeID{typeid(T)},
59  tag.label(),
60  tag.instance(),
61  ProcessTag{tag.process()});
62  return ViewToken<T>{tag};
63  }
std::array< std::vector< ProductInfo >, NumBranchTypes > consumables_
array< vector< ProductInfo >, NumBranchTypes > const & art::ConsumesCollector::getConsumables ( ) const

Definition at line 13 of file ConsumesCollector.cc.

14  {
15  return consumables_;
16  }
std::array< std::vector< ProductInfo >, NumBranchTypes > consumables_
template<typename T , BranchType BT>
ProductToken< T > art::ConsumesCollector::mayConsume ( InputTag const &  tag)

Definition at line 75 of file ConsumesCollector.h.

76  {
78  TypeID{typeid(T)},
79  tag.label(),
80  tag.instance(),
81  ProcessTag{tag.process()});
82  return ProductToken<T>{tag};
83  }
std::array< std::vector< ProductInfo >, NumBranchTypes > consumables_
template<typename T , BranchType BT>
void art::ConsumesCollector::mayConsumeMany ( )

Definition at line 99 of file ConsumesCollector.h.

100  {
102  TypeID{typeid(T)});
103  }
std::array< std::vector< ProductInfo >, NumBranchTypes > consumables_
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::ConsumesCollector::mayConsumeView ( InputTag const &  )
template<typename T , BranchType BT>
ViewToken<T> art::ConsumesCollector::mayConsumeView ( InputTag const &  tag)

Definition at line 87 of file ConsumesCollector.h.

88  {
90  TypeID{typeid(T)},
91  tag.label(),
92  tag.instance(),
93  ProcessTag{tag.process()});
94  return ViewToken<T>{tag};
95  }
std::array< std::vector< ProductInfo >, NumBranchTypes > consumables_
void art::ConsumesCollector::sortConsumables ( std::string const &  current_process_name)

Definition at line 19 of file ConsumesCollector.cc.

20  {
21  // Now that we know we have seen all the consumes declarations,
22  // sort the results for fast lookup later.
23  for (auto& perBTConsumables : consumables_) {
24  for (auto& pi : perBTConsumables) {
25  pi.process = ProcessTag{pi.process.name(), current_process_name};
26  }
27  sort(begin(perBTConsumables), end(perBTConsumables));
28  }
29  }
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
std::array< std::vector< ProductInfo >, NumBranchTypes > consumables_
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Definition: StdUtils.h:72
float pi
Definition: units.py:11

Member Data Documentation

std::array<std::vector<ProductInfo>, NumBranchTypes> art::ConsumesCollector::consumables_ {}
private

Definition at line 38 of file ConsumesCollector.h.


The documentation for this class was generated from the following files: