CMS 3D CMS Logo

EventPrincipal.cc
Go to the documentation of this file.
2 
24 
25 #include <algorithm>
26 #include <cassert>
27 #include <limits>
28 #include <memory>
29 
30 namespace edm {
31  EventPrincipal::EventPrincipal(std::shared_ptr<ProductRegistry const> reg,
32  std::shared_ptr<BranchIDListHelper const> branchIDListHelper,
33  std::shared_ptr<ThinnedAssociationsHelper const> thinnedAssociationsHelper,
34  ProcessConfiguration const& pc,
35  HistoryAppender* historyAppender,
36  unsigned int streamIndex,
37  bool isForPrimaryProcess)
38  : Base(reg, reg->productLookup(InEvent), pc, InEvent, historyAppender, isForPrimaryProcess),
39  aux_(),
40  luminosityBlockPrincipal_(nullptr),
41  provRetrieverPtr_(new ProductProvenanceRetriever(streamIndex, *reg)),
42  eventSelectionIDs_(),
43  branchIDListHelper_(branchIDListHelper),
44  thinnedAssociationsHelper_(thinnedAssociationsHelper),
45  branchListIndexes_(),
46  branchListIndexToProcessIndex_(),
47  streamID_(streamIndex) {
49 
50  for (auto& prod : *this) {
51  if (prod->singleProduct()) {
52  prod->setProductProvenanceRetriever(productProvenanceRetrieverPtr());
53  }
54  }
55  }
56 
59  aux_ = EventAuxiliary();
60  //do not clear luminosityBlockPrincipal_ since
61  // it is only connected at beginLumi transition
62  provRetrieverPtr_->reset();
63  }
64 
66  ProcessHistory const* processHistory,
67  EventSelectionIDVector eventSelectionIDs,
68  BranchListIndexes branchListIndexes,
69  ProductProvenanceRetriever const& provRetriever,
71  bool deepCopyRetriever) {
73  if (deepCopyRetriever) {
74  provRetrieverPtr_->deepCopy(provRetriever);
75  } else {
76  provRetrieverPtr_->mergeParentProcessRetriever(provRetriever);
77  }
79  if (branchIDListHelper_->hasProducedProducts()) {
80  // Add index into BranchIDListRegistry for products produced this process
81  branchListIndexes.push_back(branchIDListHelper_->producedBranchListIndex());
82  }
84  }
86  }
87 
89  ProcessHistory const* processHistory,
90  EventSelectionIDVector eventSelectionIDs,
91  BranchListIndexes branchListIndexes) {
93 
95  if (branchIDListHelper_->hasProducedProducts()) {
96  // Add index into BranchIDListRegistry for products produced this process
97  branchListIndexes.push_back(branchIDListHelper_->producedBranchListIndex());
98  }
100  }
102  }
103 
105  ProcessHistory const* processHistory,
107  if (branchListIndexes_.empty() and branchIDListHelper_->hasProducedProducts()) {
108  // Add index into BranchIDListRegistry for products produced this process
109  // if it hasn't already been filled in by the other fillEventPrincipal or by an earlier call to this function
110  BranchListIndexes indexes;
111  indexes.push_back(branchIDListHelper_->producedBranchListIndex());
113  }
115  }
116 
118  ProcessHistory const* processHistory,
120  if (aux.event() == invalidEventNumber) {
121  throw Exception(errors::LogicError) << "EventPrincipal::fillEventPrincipal, Invalid event number provided in "
122  "EventAuxiliary, It is illegal for the event number to be 0\n";
123  }
124 
126  aux_ = aux;
128  }
129 
131  //fromInput does not contain entries for what is being produced in this job.
132  auto end = branchListIndexes_.end();
133  if (end != branchListIndexes_.begin() and branchIDListHelper_->hasProducedProducts()) {
134  --end;
135  }
136 
137  return not std::equal(fromInput.begin(), fromInput.end(), branchListIndexes_.begin(), end);
138  }
139 
143  // Fill in helper map for Branch to ProductID mapping
144  if (not branchListIndexes_.empty()) {
145  ProcessIndex pix = 0;
146  branchListIndexToProcessIndex_.resize(1 + *std::max_element(branchListIndexes_.begin(), branchListIndexes_.end()),
148  for (auto const& blindex : branchListIndexes_) {
149  branchListIndexToProcessIndex_[blindex] = pix;
150  ++pix;
151  }
152  }
153 
154  // Fill in the product ID's in the product holders.
155  for (auto& prod : *this) {
156  if (prod->singleProduct()) {
157  // If an alias is in the same process as the original then isAlias will be true.
158  // Under that condition, we want the ProductID to be the same as the original.
159  // If not, then we've internally changed the original BranchID to the alias BranchID
160  // in the ProductID lookup so we need the alias BranchID.
161 
162  auto const& bd = prod->branchDescription();
163  prod->setProductID(branchIDToProductID(bd.isAlias() ? bd.originalBranchID() : bd.branchID()));
164  }
165  }
166  }
167 
169 
172  assert(lumi == luminosityBlockPrincipal_->luminosityBlock());
173  EventNumber_t event = aux_.id().event();
174  aux_.id() = EventID(run, lumi, event);
175  }
176 
178 
180  std::unique_ptr<WrapperBase> edp,
181  ProductProvenance const& productProvenance) const {
182  // assert commented out for DaqSource. When DaqSource no longer uses put(), the assert can be restored.
183  //assert(produced());
184  if (edp.get() == nullptr) {
185  throw Exception(errors::InsertFailure, "Null Pointer") << "put: Cannot put because ptr to product is null."
186  << "\n";
187  }
188  productProvenanceRetrieverPtr()->insertIntoSet(productProvenance);
189  auto phb = getExistingProduct(bd.branchID());
190  assert(phb);
191  // ProductResolver assumes ownership
192  phb->putProduct(std::move(edp));
193  }
194 
195  void EventPrincipal::put(ProductResolverIndex index, std::unique_ptr<WrapperBase> edp, ParentageID parentage) const {
196  if (edp.get() == nullptr) {
197  throw Exception(errors::InsertFailure, "Null Pointer") << "put: Cannot put because ptr to product is null."
198  << "\n";
199  }
200  auto phb = getProductResolverByIndex(index);
201 
203  ProductProvenance(phb->branchDescription().branchID(), std::move(parentage)));
204 
205  assert(phb);
206  // ProductResolver assumes ownership
207  phb->putProduct(std::move(edp));
208  }
209 
211  std::unique_ptr<WrapperBase> edp,
212  std::optional<ProductProvenance> productProvenance) const {
213  assert(!bd.produced());
214  if (productProvenance) {
215  productProvenanceRetrieverPtr()->insertIntoSet(std::move(*productProvenance));
216  }
217  auto phb = getExistingProduct(bd.branchID());
218  assert(phb);
219  // ProductResolver assumes ownership
220  phb->putProduct(std::move(edp));
221  }
222 
224  if (!pid.isValid()) {
225  throw Exception(errors::ProductNotFound, "InvalidID") << "get by product ID: invalid ProductID supplied\n";
226  }
227  return productIDToBranchID(pid, branchIDListHelper_->branchIDLists(), branchListIndexes_);
228  }
229 
231  if (!bid.isValid()) {
232  throw Exception(errors::NotFound, "InvalidID") << "branchIDToProductID: invalid BranchID supplied\n";
233  }
234  typedef BranchIDListHelper::BranchIDToIndexMap BIDToIndexMap;
235  typedef BIDToIndexMap::const_iterator Iter;
236  typedef std::pair<Iter, Iter> IndexRange;
237 
238  IndexRange range = branchIDListHelper_->branchIDToIndexMap().equal_range(bid);
239  for (Iter it = range.first; it != range.second; ++it) {
240  BranchListIndex blix = it->second.first;
241  if (blix < branchListIndexToProcessIndex_.size()) {
242  auto v = branchListIndexToProcessIndex_[blix];
244  ProductIndex productIndex = it->second.second;
245  ProcessIndex processIndex = v;
246  return ProductID(processIndex + 1, productIndex + 1);
247  }
248  }
249  }
250  // cannot throw, because some products may legitimately not have product ID's (e.g. pile-up).
251  return ProductID();
252  }
253 
254  unsigned int EventPrincipal::transitionIndex_() const { return streamID_.value(); }
255 
257 
258  static void throwProductDeletedException(ProductID const& pid,
261  exception << "get by product ID: The product with given id: " << pid << "\ntype: " << phb->productType()
262  << "\nproduct instance name: " << phb->productInstanceName() << "\nprocess name: " << phb->processName()
263  << "\nwas already deleted. This is a configuration error. Please change the configuration of the module "
264  "which caused this exception to state it reads this data.";
265  throw exception;
266  }
267 
269  BranchID bid = pidToBid(pid);
271  if (phb == nullptr) {
272  return BasicHandle(makeHandleExceptionFactory([pid]() -> std::shared_ptr<cms::Exception> {
273  std::shared_ptr<cms::Exception> whyFailed(std::make_shared<Exception>(errors::ProductNotFound, "InvalidID"));
274  *whyFailed << "get by product ID: no product with given id: " << pid << "\n";
275  return whyFailed;
276  }));
277  }
278 
279  // Was this already deleted?
280  if (phb->productWasDeleted()) {
282  }
283  // Check for case where we tried on demand production and
284  // it failed to produce the object
285  if (phb->unscheduledWasNotRun()) {
286  return BasicHandle(makeHandleExceptionFactory([pid]() -> std::shared_ptr<cms::Exception> {
287  std::shared_ptr<cms::Exception> whyFailed(std::make_shared<Exception>(errors::ProductNotFound, "InvalidID"));
288  *whyFailed << "get by ProductID: could not get product with id: " << pid << "\n"
289  << "Unscheduled execution not allowed to get via ProductID.\n";
290  return whyFailed;
291  }));
292  }
293  auto resolution = phb->resolveProduct(*this, false, nullptr, nullptr);
294 
295  auto data = resolution.data();
296  if (data) {
297  return BasicHandle(data->wrapper(), &(data->provenance()));
298  }
299  return BasicHandle(nullptr, nullptr);
300  }
301 
302  WrapperBase const* EventPrincipal::getIt(ProductID const& pid) const { return getByProductID(pid).wrapper(); }
303 
304  std::optional<std::tuple<WrapperBase const*, unsigned int>> EventPrincipal::getThinnedProduct(
305  ProductID const& pid, unsigned int key) const {
307  pid,
308  key,
310  [this](ProductID const& p) { return pidToBid(p); },
311  [this](BranchID const& b) { return getThinnedAssociation(b); },
312  [this](ProductID const& p) { return getIt(p); });
313  }
314 
316  std::vector<WrapperBase const*>& foundContainers,
317  std::vector<unsigned int>& keys) const {
319  pid,
321  [this](ProductID const& p) { return pidToBid(p); },
322  [this](BranchID const& b) { return getThinnedAssociation(b); },
323  [this](ProductID const& p) { return getIt(p); },
324  foundContainers,
325  keys);
326  }
327 
329  unsigned int key,
330  ProductID const& thinnedID) const {
331  BranchID parent = pidToBid(parentID);
332  BranchID thinned = pidToBid(thinnedID);
333 
334  try {
336  parentID, parent, key, thinnedID, thinned, *thinnedAssociationsHelper_, [this](BranchID const& branchID) {
337  return getThinnedAssociation(branchID);
338  });
339  if (auto factory = std::get_if<detail::GetThinnedKeyFromExceptionFactory>(&ret)) {
340  return [func = *factory]() {
341  auto ex = func();
342  ex.addContext("Calling EventPrincipal::getThinnedKeyFrom()");
343  return ex;
344  };
345  } else {
346  return ret;
347  }
348  } catch (Exception& ex) {
349  ex.addContext("Calling EventPrincipal::getThinnedKeyFrom()");
350  throw ex;
351  }
352  }
353 
355  BranchID bid = pidToBid(pid);
356  return getProvenance(bid, mcc);
357  }
358 
360 
362 
364  ConstProductResolverPtr const phb = getProductResolver(branchID);
365 
366  if (phb == nullptr) {
368  << "EventPrincipal::getThinnedAssociation, ThinnedAssociation ProductResolver cannot be found\n"
369  << "This should never happen. Contact a Framework developer";
370  }
371  ProductData const* productData = (phb->resolveProduct(*this, false, nullptr, nullptr)).data();
372  if (productData == nullptr) {
373  return nullptr;
374  }
375  WrapperBase const* product = productData->wrapper();
376  if (!(typeid(edm::ThinnedAssociation) == product->dynamicTypeInfo())) {
378  << "EventPrincipal::getThinnedProduct, product has wrong type, not a ThinnedAssociation.\n";
379  }
381  return wrapper->product();
382  }
383 
384 } // namespace edm
edm::ProductDeletedException
Definition: ProductDeletedException.h:28
edm::detail::getThinnedProduct
std::optional< std::tuple< WrapperBase const *, unsigned int > > getThinnedProduct(ProductID const &pid, unsigned int key, ThinnedAssociationsHelper const &thinnedAssociationsHelper, F1 pidToBid, F2 getThinnedAssociation, F3 getByProductID)
Definition: getThinned_implementation.h:287
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:373
ThinnedAssociationsHelper.h
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
edm::EventAuxiliary::event
EventNumber_t event() const
Definition: EventAuxiliary.h:72
edm::EventPrincipal::branchIDListHelper_
std::shared_ptr< BranchIDListHelper const > branchIDListHelper_
Definition: EventPrincipal.h:181
edm::EventPrincipal::luminosityBlockPrincipal_
edm::propagate_const< LuminosityBlockPrincipal * > luminosityBlockPrincipal_
Definition: EventPrincipal.h:174
edm::LuminosityBlockPrincipal::runPrincipal
RunPrincipal const & runPrincipal() const
Definition: LuminosityBlockPrincipal.h:45
edm::EventPrincipal::aux
EventAuxiliary const & aux() const
Definition: EventPrincipal.h:104
ModuleCallingContext.h
ProductResolverBase.h
edm::ProductResolverIndex
unsigned int ProductResolverIndex
Definition: ProductResolverIndex.h:8
edm::EventPrincipal::luminosityBlockPrincipal
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
Definition: EventPrincipal.h:81
cms::Exception::addContext
void addContext(std::string const &context)
Definition: Exception.cc:165
FunctorHandleExceptionFactory.h
edm::BasicHandle
Definition: BasicHandle.h:43
edm::EventPrincipal::aux_
EventAuxiliary aux_
Definition: EventPrincipal.h:172
edm::errors::LogicError
Definition: EDMException.h:37
BranchIDListHelper.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ProductData::wrapper
WrapperBase const * wrapper() const
Definition: ProductData.h:35
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::EventPrincipal::getIt
WrapperBase const * getIt(ProductID const &pid) const override
Definition: EventPrincipal.cc:302
deep_tau::DeepTauBase::BasicDiscriminator
BasicDiscriminator
Definition: DeepTauBase.h:115
RunLumiEventNumber.h
edm::EventPrincipal::thinnedAssociationsHelper_
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper_
Definition: EventPrincipal.h:182
edm::EventPrincipal::getThinnedProduct
std::optional< std::tuple< WrapperBase const *, unsigned int > > getThinnedProduct(ProductID const &pid, unsigned int key) const override
Definition: EventPrincipal.cc:304
edm::LuminosityBlockPrincipal
Definition: LuminosityBlockPrincipal.h:31
edm::BranchListIndexes
std::vector< BranchListIndex > BranchListIndexes
Definition: BranchListIndex.h:18
edm::ThinnedAssociation
Definition: ThinnedAssociation.h:15
Algorithms.h
cms::cuda::assert
assert(be >=bs)
edm::ProcessIndex
unsigned short ProcessIndex
Definition: ProductID.h:25
edm::Principal
Definition: Principal.h:57
DelayedReader.h
edm::StreamID::value
unsigned int value() const
Definition: StreamID.h:43
relativeConstraints.keys
keys
Definition: relativeConstraints.py:89
ProductRegistry.h
wrapper
static HepMC::HEPEVT_Wrapper wrapper
Definition: BeamHaloProducer.cc:47
edm::Principal::processHistory
ProcessHistory const & processHistory() const
Definition: Principal.h:141
findQualityFiles.v
v
Definition: findQualityFiles.py:179
edm::errors::NotFound
Definition: EDMException.h:57
watchdog.const
const
Definition: watchdog.py:83
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
edm::ProductIndex
unsigned short ProductIndex
Definition: ProductID.h:26
edm::EventPrincipal::getProvenance
Provenance getProvenance(ProductID const &pid, ModuleCallingContext const *mcc) const
Definition: EventPrincipal.cc:354
getThinned_implementation.h
edm::Principal::getProductResolverByIndex
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
Definition: Principal.cc:553
edm::Wrapper
Definition: Product.h:10
edm::EventPrincipal::setRunAndLumiNumber
void setRunAndLumiNumber(RunNumber_t run, LuminosityBlockNumber_t lumi)
Definition: EventPrincipal.cc:170
edm::EventPrincipal::productProvenanceRetrieverPtr
ProductProvenanceRetriever const * productProvenanceRetrieverPtr() const
Definition: EventPrincipal.h:114
edm::Exception
Definition: EDMException.h:77
edm::makeHandleExceptionFactory
std::shared_ptr< HandleExceptionFactory > makeHandleExceptionFactory(T &&iFunctor)
Definition: FunctorHandleExceptionFactory.h:45
edm::EventPrincipal::branchListIndexes
BranchListIndexes const & branchListIndexes() const
Definition: EventPrincipal.cc:361
EDMException.h
SharedResourcesAcquirer.h
edm::errors::ProductNotFound
Definition: EDMException.h:33
edm::detail::getThinnedKeyFrom_implementation
std::variant< unsigned int, GetThinnedKeyFromExceptionFactory, std::monostate > getThinnedKeyFrom_implementation(ProductID const &parentID, BranchID const &parent, unsigned int key, ProductID const &thinnedID, BranchID thinned, ThinnedAssociationsHelper const &thinnedAssociationsHelper, F &&getThinnedAssociation)
Definition: getThinned_implementation.h:394
edm::EventPrincipal::provRetrieverPtr_
edm::propagate_const< std::shared_ptr< ProductProvenanceRetriever > > provRetrieverPtr_
Definition: EventPrincipal.h:177
edm::ProductProvenanceRetriever::insertIntoSet
void insertIntoSet(ProductProvenance provenanceProduct) const
Definition: ProductProvenanceRetriever.cc:121
edm::EventPrincipal::changedIndexes_
void changedIndexes_() final
Definition: EventPrincipal.cc:256
edm::EventPrincipal::ConstProductResolverPtr
Base::ConstProductResolverPtr ConstProductResolverPtr
Definition: EventPrincipal.h:51
edm::ProductProvenance
Definition: ProductProvenance.h:24
edm::EventPrincipal::getThinnedAssociation
edm::ThinnedAssociation const * getThinnedAssociation(edm::BranchID const &branchID) const
Definition: EventPrincipal.cc:363
edm::Principal::processHistoryID
ProcessHistoryID const & processHistoryID() const
Definition: Principal.h:143
DQM.reader
reader
Definition: DQM.py:105
EventPrincipal.h
BranchListIndex.h
edm::invalidEventNumber
const EventNumber_t invalidEventNumber
Definition: RunLumiEventNumber.h:16
edm::BranchID
Definition: BranchID.h:14
edm::Principal::reader
DelayedReader * reader() const
Definition: Principal.h:187
Provenance.h
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
edm::EventAuxiliary::id
EventID const & id() const
Definition: EventAuxiliary.h:63
L1TObjectsTimingClient_cff.resolution
resolution
Definition: L1TObjectsTimingClient_cff.py:52
edm::errors::InsertFailure
Definition: EDMException.h:35
edm::Principal::getProductResolver
ConstProductResolverPtr getProductResolver(BranchID const &oid) const
Definition: Principal.cc:545
edm::BranchIDListHelper::BranchIDToIndexMap
std::multimap< BranchID, IndexPair > BranchIDToIndexMap
Definition: BranchIDListHelper.h:18
edm::Hash< ParentageType >
edm::BranchListIndex
unsigned short BranchListIndex
Definition: BranchListIndex.h:17
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
edm::InEvent
Definition: BranchType.h:11
edm::Principal::end
const_iterator end() const
Definition: Principal.h:164
b
double b
Definition: hdecay.h:118
edm::EventPrincipal::put
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const
Definition: EventPrincipal.cc:179
edm::BasicHandle::wrapper
WrapperBase const * wrapper() const noexcept(true)
Definition: BasicHandle.h:73
edm::Principal::productRegistry
ProductRegistry const & productRegistry() const
Definition: Principal.h:147
edm::EventAuxiliary
Definition: EventAuxiliary.h:14
edm::WrapperBase::dynamicTypeInfo
std::type_info const & dynamicTypeInfo() const
Definition: WrapperBase.h:42
edm::EventPrincipal::getThinnedKeyFrom
OptionalThinnedKey getThinnedKeyFrom(ProductID const &parent, unsigned int key, ProductID const &thinned) const override
Definition: EventPrincipal.cc:328
cppFunctionSkipper.exception
exception
Definition: cppFunctionSkipper.py:10
edm::Principal::fillPrincipal
void fillPrincipal(DelayedReader *reader)
Definition: Principal.cc:393
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
edm::EventPrincipal::branchListIndexToProcessIndex_
std::vector< ProcessIndex > branchListIndexToProcessIndex_
Definition: EventPrincipal.h:186
edm::EventPrincipal::setLuminosityBlockPrincipal
void setLuminosityBlockPrincipal(LuminosityBlockPrincipal *lbp)
Definition: EventPrincipal.cc:168
printConversionInfo.aux
aux
Definition: printConversionInfo.py:19
edm::EventID::event
EventNumber_t event() const
Definition: EventID.h:40
edm::EventPrincipal::commonFillEventPrincipal
void commonFillEventPrincipal(EventAuxiliary const &aux, ProcessHistory const *processHistory, DelayedReader *reader)
Definition: EventPrincipal.cc:117
edm::EventPrincipal::putOnRead
void putOnRead(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, std::optional< ProductProvenance > productProvenance) const
Definition: EventPrincipal.cc:210
edm::EventPrincipal::eventSelectionIDs
EventSelectionIDVector const & eventSelectionIDs() const
Definition: EventPrincipal.cc:359
edm::WrapperBase
Definition: WrapperBase.h:23
ProductIDToBranchID.h
edm::Principal::getExistingProduct
ProductResolverBase * getExistingProduct(BranchID const &branchID)
Definition: Principal.cc:492
edm::HistoryAppender
Definition: HistoryAppender.h:13
edm::EventPrincipal::updateBranchListIndexes
void updateBranchListIndexes(BranchListIndexes &&)
Definition: EventPrincipal.cc:140
BranchIDList.h
TrackCollections2monitor_cff.func
func
Definition: TrackCollections2monitor_cff.py:359
edm::Principal::clearPrincipal
void clearPrincipal()
Definition: Principal.cc:373
LuminosityBlockPrincipal.h
edm::ProductID::isValid
bool isValid() const
Definition: ProductID.h:32
edm::EventPrincipal::eventSelectionIDs_
EventSelectionIDVector eventSelectionIDs_
Definition: EventPrincipal.h:179
edm::EventPrincipal::getByProductID
BasicHandle getByProductID(ProductID const &oid) const
Definition: EventPrincipal.cc:268
edm::EventPrincipal::fillEventPrincipal
void fillEventPrincipal(EventAuxiliary const &aux, ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
Definition: EventPrincipal.cc:104
edm::OptionalThinnedKey
std::variant< unsigned int, detail::GetThinnedKeyFromExceptionFactory, std::monostate > OptionalThinnedKey
Definition: EDProductGetter.h:39
edm::EventPrincipal::getThinnedProducts
void getThinnedProducts(ProductID const &pid, std::vector< WrapperBase const * > &foundContainers, std::vector< unsigned int > &keys) const override
Definition: EventPrincipal.cc:315
edm::ProductProvenanceRetriever
Definition: ProductProvenanceRetriever.h:56
edm::throwProductDeletedException
static void throwProductDeletedException(ProductID const &pid, edm::EventPrincipal::ConstProductResolverPtr const phb)
Definition: EventPrincipal.cc:258
edm::EventPrincipal::run
RunNumber_t run() const
Definition: EventPrincipal.h:110
Wrapper.h
eostools.move
def move(src, dest)
Definition: eostools.py:511
writedatasetfile.run
run
Definition: writedatasetfile.py:27
edm::EventPrincipal::clearEventPrincipal
void clearEventPrincipal()
Definition: EventPrincipal.cc:57
edm::EventAuxiliary::processHistoryID
ProcessHistoryID const & processHistoryID() const
Definition: EventAuxiliary.h:61
edm::EventPrincipal::branchIDToProductID
ProductID branchIDToProductID(BranchID const &bid) const
Definition: EventPrincipal.cc:230
Exception
Definition: hltDiff.cc:246
edm::ProductData
Definition: ProductData.h:20
BasicHandle.h
edm::EventPrincipal::streamID_
StreamID streamID_
Definition: EventPrincipal.h:188
ProductDeletedException.h
edm::BranchID::isValid
bool isValid() const
Definition: BranchID.h:22
ThinnedAssociation.h
edm::DelayedReader
Definition: DelayedReader.h:29
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
edm::productIDToBranchID
BranchID productIDToBranchID(ProductID const &pid, BranchIDLists const &lists, BranchListIndexes const &indexes)
Definition: ProductIDToBranchID.cc:11
edm::EventPrincipal::transitionIndex_
unsigned int transitionIndex_() const override
Definition: EventPrincipal.cc:254
edm::BranchDescription
Definition: BranchDescription.h:32
edm::EventPrincipal::pidToBid
BranchID pidToBid(ProductID const &pid) const
Definition: EventPrincipal.cc:223
edm::ProcessHistory
Definition: ProcessHistory.h:13
edm::detail::getThinnedProducts
void getThinnedProducts(ProductID const &pid, ThinnedAssociationsHelper const &thinnedAssociationsHelper, F1 pidToBid, F2 getThinnedAssociation, F3 getByProductID, std::vector< WrapperBase const * > &foundContainers, std::vector< unsigned int > &keys)
Definition: getThinned_implementation.h:334
edm::RunPrincipal
Definition: RunPrincipal.h:34
edm::Provenance
Definition: Provenance.h:34
event
Definition: event.py:1
edm::EventID
Definition: EventID.h:31
edm::EventSelectionIDVector
std::vector< EventSelectionID > EventSelectionIDVector
Definition: EventSelectionID.h:16
crabWrapper.key
key
Definition: crabWrapper.py:19
cond::serialization::equal
bool equal(const T &first, const T &second)
Definition: Equal.h:32
lumi
Definition: LumiSectionData.h:20
edm::EventPrincipal::runPrincipal
RunPrincipal const & runPrincipal() const
Definition: EventPrincipal.cc:177
class-composition.parent
parent
Definition: class-composition.py:88
edm::EventAuxiliary::setProcessHistoryID
void setProcessHistoryID(ProcessHistoryID const &phid)
Definition: EventAuxiliary.h:62
edm::ProductID
Definition: ProductID.h:27
edm::ProcessConfiguration
Definition: ProcessConfiguration.h:14
edm::EventPrincipal::branchListIndexes_
BranchListIndexes branchListIndexes_
Definition: EventPrincipal.h:184
edm::EventPrincipal::EventPrincipal
EventPrincipal(std::shared_ptr< ProductRegistry const > reg, std::shared_ptr< BranchIDListHelper const > branchIDListHelper, std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper, ProcessConfiguration const &pc, HistoryAppender *historyAppender, unsigned int streamIndex=0, bool isForPrimaryProcess=true)
Definition: EventPrincipal.cc:31
edm::EventPrincipal::wasBranchListIndexesChangedFromInput
bool wasBranchListIndexesChangedFromInput(BranchListIndexes const &) const
Definition: EventPrincipal.cc:130
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29