1 #ifndef FWCore_Sources_VectorInputSource_h
2 #define FWCore_Sources_VectorInputSource_h
19 class HepRandomEngine;
24 struct VectorInputSourceDescription;
37 CLHEP::HepRandomEngine* =
nullptr,
39 bool recycleFiles =
true);
41 template <
typename T,
typename Iterator>
64 EventPrincipal& cache,
size_t& fileNameHash, CLHEP::HepRandomEngine*,
EventID const*
id,
bool recycleFiles) = 0;
89 CLHEP::HepRandomEngine* engine,
93 unsigned int consecutiveRejections = 0U;
99 bool used = eventOperator(cache, fileNameHash);
102 consecutiveRejections = 0U;
104 ++consecutiveRejections;
111 template <
typename T,
typename Iterator>
118 eventOperator(cache, fileNameHash);
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)