35 std::shared_ptr<RunPrincipal>
const&
53 std::shared_ptr<RunPrincipal>
const&
72 std::shared_ptr<LuminosityBlockPrincipal>
const&
91 std::shared_ptr<LuminosityBlockPrincipal>
const&
102 <<
"PrincipalCache::merge\n" 103 <<
"Illegal attempt to merge run into cache\n" 104 <<
"There is no run in cache to merge with\n" 105 <<
"Contact a Framework Developer\n";
110 <<
"PrincipalCache::merge\n" 111 <<
"Illegal attempt to merge run into cache\n" 112 <<
"Reduced ProcessHistoryID inconsistent with the one already in cache\n" 113 <<
"Contact a Framework Developer\n";
117 if (aux->run() !=
run_) {
119 <<
"PrincipalCache::merge\n" 120 <<
"Illegal attempt to merge run into cache\n" 121 <<
"Run number inconsistent with run number already in cache\n" 122 <<
"Contact a Framework Developer\n";
124 bool runOK =
runPrincipal_->adjustToNewProductRegistry(*reg);
132 <<
"PrincipalCache::merge\n" 133 <<
"Illegal attempt to merge luminosity block into cache\n" 134 <<
"There is no luminosity block in the cache to merge with\n" 135 <<
"Contact a Framework Developer\n";
140 <<
"PrincipalCache::merge\n" 141 <<
"Illegal attempt to merge run into cache\n" 142 <<
"Reduced ProcessHistoryID inconsistent with the one already in cache\n" 143 <<
"Contact a Framework Developer\n";
147 if (aux->run() !=
run_ ||
148 aux->luminosityBlock() !=
lumi_) {
150 <<
"PrincipalCache::merge\n" 151 <<
"Illegal attempt to merge lumi into cache\n" 152 <<
"Run and lumi numbers are inconsistent with the ones already in the cache\n" 153 <<
"Contact a Framework Developer\n";
163 <<
"PrincipalCache::insert\n" 164 <<
"Illegal attempt to insert run into cache\n" 165 <<
"Contact a Framework Developer\n";
178 <<
"PrincipalCache::insert\n" 179 <<
"Illegal attempt to insert lumi into cache\n" 180 <<
"Contact a Framework Developer\n";
184 <<
"PrincipalCache::insert\n" 185 <<
"Illegal attempt to insert lumi into cache\n" 186 <<
"Run is invalid\n" 187 <<
"Contact a Framework Developer\n";
192 <<
"PrincipalCache::insert\n" 193 <<
"Illegal attempt to insert lumi into cache\n" 194 <<
"luminosity block has ProcessHistoryID inconsistent with run\n" 195 <<
"Contact a Framework Developer\n";
199 if (lbp->run() !=
run_) {
201 <<
"PrincipalCache::insert\n" 202 <<
"Illegal attempt to insert lumi into cache\n" 203 <<
"luminosity block inconsistent with run number of run in cache\n" 204 <<
"Contact a Framework Developer\n";
206 lumi_ = lbp->luminosityBlock();
211 unsigned int iStreamIndex = ep->streamID().value();
219 <<
"PrincipalCache::deleteRun\n" 220 <<
"Illegal attempt to delete run from cache\n" 221 <<
"There is no run in cache to delete\n" 222 <<
"Contact a Framework Developer\n";
227 <<
"PrincipalCache::deleteRun\n" 228 <<
"Illegal attempt to delete run from cache\n" 229 <<
"Run number or reduced ProcessHistoryID inconsistent with those in cache\n" 230 <<
"Contact a Framework Developer\n";
238 <<
"PrincipalCache::deleteLumi\n" 239 <<
"Illegal attempt to delete luminosity block from cache\n" 240 <<
"There is no luminosity block in the cache to delete\n" 241 <<
"Contact a Framework Developer\n";
247 <<
"PrincipalCache::deleteLumi\n" 248 <<
"Illegal attempt to delete luminosity block from cache\n" 249 <<
"Run number, lumi numbers, or reduced ProcessHistoryID inconsistent with those in cache\n" 250 <<
"Contact a Framework Developer\n";
277 <<
"PrincipalCache::runPrincipal\n" 278 <<
"Requested a run that is not in the cache (should never happen)\n" 279 <<
"Contact a Framework Developer\n";
285 <<
"PrincipalCache::lumiPrincipal or PrincipalCache::lumiPrincipalPtr\n" 286 <<
"Requested a luminosity block that is not in the cache (should never happen)\n" 287 <<
"Contact a Framework Developer\n";
void throwRunMissing() const
void insert(std::shared_ptr< RunPrincipal > rp)
void deleteLumi(ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi)
void setNumberOfConcurrentPrincipals(PreallocationConfiguration const &)
std::shared_ptr< RunPrincipal > const & runPrincipalPtr() const
void throwLumiMissing() const
LuminosityBlockNumber_t lumi_
void adjustIndexesAfterProductRegistryAddition()
unsigned int LuminosityBlockNumber_t
std::shared_ptr< LuminosityBlockPrincipal > lumiPrincipal_
std::shared_ptr< LuminosityBlockPrincipal > const & lumiPrincipalPtr() const
RunPrincipal & runPrincipal() const
std::vector< std::shared_ptr< EventPrincipal > > eventPrincipals_
ProcessHistoryID reducedInputProcessHistoryID_
ProcessHistoryID const & reducedProcessHistoryID(ProcessHistoryID const &fullID) const
void adjustEventsToNewProductRegistry(std::shared_ptr< ProductRegistry const > reg)
EventPrincipal & eventPrincipal(unsigned int iStreamIndex) const
void deleteRun(ProcessHistoryID const &phid, RunNumber_t run)
ProcessHistoryID inputProcessHistoryID_
LuminosityBlockPrincipal & lumiPrincipal() const
bool adjustToNewProductRegistry(ProductRegistry const ®)
unsigned int numberOfStreams() const
void adjustIndexesAfterProductRegistryAddition()
ProcessHistoryRegistry const * processHistoryRegistry_
std::shared_ptr< RunPrincipal > runPrincipal_
void merge(std::shared_ptr< RunAuxiliary > aux, std::shared_ptr< ProductRegistry const > reg)