28 boost::shared_ptr<RunPrincipal>
const&
46 boost::shared_ptr<RunPrincipal>
const&
65 boost::shared_ptr<LuminosityBlockPrincipal>
const&
84 boost::shared_ptr<LuminosityBlockPrincipal>
const&
95 <<
"PrincipalCache::merge\n"
96 <<
"Illegal attempt to merge run into cache\n"
97 <<
"There is no run in cache to merge with\n"
98 <<
"Contact a Framework Developer\n";
103 <<
"PrincipalCache::merge\n"
104 <<
"Illegal attempt to merge run into cache\n"
105 <<
"Reduced ProcessHistoryID inconsistent with the one already in cache\n"
106 <<
"Contact a Framework Developer\n";
110 if (aux->run() !=
run_) {
112 <<
"PrincipalCache::merge\n"
113 <<
"Illegal attempt to merge run into cache\n"
114 <<
"Run number inconsistent with run number already in cache\n"
115 <<
"Contact a Framework Developer\n";
117 bool runOK =
runPrincipal_->adjustToNewProductRegistry(*reg);
125 <<
"PrincipalCache::merge\n"
126 <<
"Illegal attempt to merge luminosity block into cache\n"
127 <<
"There is no luminosity block in the cache to merge with\n"
128 <<
"Contact a Framework Developer\n";
133 <<
"PrincipalCache::merge\n"
134 <<
"Illegal attempt to merge run into cache\n"
135 <<
"Reduced ProcessHistoryID inconsistent with the one already in cache\n"
136 <<
"Contact a Framework Developer\n";
140 if (aux->run() !=
run_ ||
141 aux->luminosityBlock() !=
lumi_) {
143 <<
"PrincipalCache::merge\n"
144 <<
"Illegal attempt to merge lumi into cache\n"
145 <<
"Run and lumi numbers are inconsistent with the ones already in the cache\n"
146 <<
"Contact a Framework Developer\n";
156 <<
"PrincipalCache::insert\n"
157 <<
"Illegal attempt to insert run into cache\n"
158 <<
"Contact a Framework Developer\n";
171 <<
"PrincipalCache::insert\n"
172 <<
"Illegal attempt to insert lumi into cache\n"
173 <<
"Contact a Framework Developer\n";
177 <<
"PrincipalCache::insert\n"
178 <<
"Illegal attempt to insert lumi into cache\n"
179 <<
"Run is invalid\n"
180 <<
"Contact a Framework Developer\n";
185 <<
"PrincipalCache::insert\n"
186 <<
"Illegal attempt to insert lumi into cache\n"
187 <<
"luminosity block has ProcessHistoryID inconsistent with run\n"
188 <<
"Contact a Framework Developer\n";
192 if (lbp->run() !=
run_) {
194 <<
"PrincipalCache::insert\n"
195 <<
"Illegal attempt to insert lumi into cache\n"
196 <<
"luminosity block inconsistent with run number of run in cache\n"
197 <<
"Contact a Framework Developer\n";
199 lumi_ = lbp->luminosityBlock();
206 <<
"PrincipalCache::deleteRun\n"
207 <<
"Illegal attempt to delete run from cache\n"
208 <<
"There is no run in cache to delete\n"
209 <<
"Contact a Framework Developer\n";
214 <<
"PrincipalCache::deleteRun\n"
215 <<
"Illegal attempt to delete run from cache\n"
216 <<
"Run number or reduced ProcessHistoryID inconsistent with those in cache\n"
217 <<
"Contact a Framework Developer\n";
225 <<
"PrincipalCache::deleteLumi\n"
226 <<
"Illegal attempt to delete luminosity block from cache\n"
227 <<
"There is no luminosity block in the cache to delete\n"
228 <<
"Contact a Framework Developer\n";
234 <<
"PrincipalCache::deleteLumi\n"
235 <<
"Illegal attempt to delete luminosity block from cache\n"
236 <<
"Run number, lumi numbers, or reduced ProcessHistoryID inconsistent with those in cache\n"
237 <<
"Contact a Framework Developer\n";
262 <<
"PrincipalCache::runPrincipal\n"
263 <<
"Requested a run that is not in the cache (should never happen)\n"
264 <<
"Contact a Framework Developer\n";
270 <<
"PrincipalCache::lumiPrincipal or PrincipalCache::lumiPrincipalPtr\n"
271 <<
"Requested a luminosity block that is not in the cache (should never happen)\n"
272 <<
"Contact a Framework Developer\n";
void throwRunMissing() const
boost::shared_ptr< RunPrincipal > const & runPrincipalPtr() const
void deleteLumi(ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi)
void merge(boost::shared_ptr< RunAuxiliary > aux, boost::shared_ptr< ProductRegistry const > reg)
static ThreadSafeRegistry * instance()
void throwLumiMissing() const
void insert(boost::shared_ptr< RunPrincipal > rp)
LuminosityBlockNumber_t lumi_
void adjustIndexesAfterProductRegistryAddition()
unsigned int LuminosityBlockNumber_t
void adjustEventToNewProductRegistry(boost::shared_ptr< ProductRegistry const > reg)
RunPrincipal & runPrincipal() const
ProcessHistoryID reducedInputProcessHistoryID_
boost::shared_ptr< LuminosityBlockPrincipal > const & lumiPrincipalPtr() const
boost::shared_ptr< RunPrincipal > runPrincipal_
void deleteRun(ProcessHistoryID const &phid, RunNumber_t run)
ProcessHistoryID inputProcessHistoryID_
LuminosityBlockPrincipal & lumiPrincipal() const
boost::shared_ptr< LuminosityBlockPrincipal > lumiPrincipal_
boost::shared_ptr< EventPrincipal > eventPrincipal_