CMS 3D CMS Logo

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