1 #ifndef gallery_Event_h 2 #define gallery_Event_h 49 explicit Event(std::vector<std::string>
const& fileNames,
50 bool useTTreeCache =
true,
51 unsigned int eventsToLearnUsedBranches = 7);
54 template <
typename PROD>
59 template <
typename PROD>
64 template <
typename PROD>
70 template <
typename PROD>
73 template <
typename PROD>
123 template <
typename T>
131 std::type_info
const& typeInfoOfWrapper)
const;
134 std::type_info
const& typeInfo,
138 std::type_info
const& typeInfo,
154 template <
typename PROD>
160 auto res =
getByLabel(typeInfoOfWrapper, inputTag);
161 auto edProduct = res.first;
164 if (ptrToWrapper ==
nullptr) {
168 auto product = ptrToWrapper->product();
172 template <
typename PROD>
178 if (inputTag.
empty()) {
184 auto res =
getByLabel(typeInfoOfWrapper, inputTag);
185 auto edProduct = res.first;
189 if (ptrToWrapper ==
nullptr) {
193 auto product = ptrToWrapper->product();
198 template <
typename PROD>
204 std::vector<Handle<PROD>>
tmp;
206 auto product = pr.first;
208 assert(wrapped_product !=
nullptr);
209 auto user_product = wrapped_product->product();
210 assert(user_product !=
nullptr);
216 template <
typename PROD>
217 inline std::vector<art::InputTag>
224 template <
typename PROD>
225 inline std::vector<art::ProductToken<PROD>>
228 std::vector<art::ProductToken<PROD>>
result;
229 auto const tags = getInputTags<PROD>();
gallery::ValidHandle< PROD > getValidHandle(art::InputTag const &) const
long long eventEntry() const
std::unique_ptr< DataGetterHelper > dataGetterHelper_
art::EventAuxiliary const & eventAuxiliary() const
std::vector< art::InputTag > getInputTags() const
void goToEntry(long long entry)
void swap(Handle< T > &a, Handle< T > &b)
std::shared_ptr< art::Exception const > makeProductNotFoundException(std::type_info const &typeInfo, art::InputTag const &tag) const
std::unique_ptr< EventNavigator > eventNavigator_
long long fileEntry() const
unsigned int eventsProcessed_
auto transform_all(Container &, OutputIt, UnaryOp)
long long numberOfEventsInFile() const
bool getByLabel(art::InputTag const &, Handle< PROD > &result) const
void throwProductNotFoundException(std::type_info const &typeInfo, art::InputTag const &tag) const
void updateAfterEventChange(long long oldFileEntry)
void getManyByType(std::vector< Handle< PROD >> &result) const
std::pair< art::EDProduct const *, art::ProductID > ProductWithID
art::ProcessHistory const & processHistory() const
unsigned int eventsToLearnUsedBranches_
art::ProcessHistoryID const & processHistoryID() const
std::vector< art::ProductToken< PROD > > getProductTokens() const
art::BranchDescription const & getProductDescription(art::ProductID) const
Event(std::vector< std::string > const &fileNames, bool useTTreeCache=true, unsigned int eventsToLearnUsedBranches=7)
art::History const & history() const