17 class BranchIDListHelper;
19 class LuminosityBlockPrincipal;
29 findFileForSpecifiedID_(
nullptr),
30 fileIterBegin_(fileCatalogItems().
begin()),
31 fileIterEnd_(fileCatalogItems().
end()),
32 fileIter_(fileIterEnd_),
33 fileIterLastOpened_(fileIterEnd_),
35 indexesIntoFiles_(fileCatalogItems().
size()) {
38 std::vector<FileCatalogItem>
const&
43 std::shared_ptr<ProductRegistry const>
46 return rootFile()->productRegistry();
49 std::shared_ptr<BranchIDListHelper const>
52 return rootFile()->branchIDListHelper();
58 std::shared_ptr<RunAuxiliary>
61 return rootFile()->readRunAuxiliary_();
64 std::shared_ptr<LuminosityBlockAuxiliary>
67 return rootFile()->readLuminosityBlockAuxiliary_();
79 rootFile()->readLuminosityBlock_(lumiPrincipal);
98 rootFile()->readEvent(eventPrincipal);
104 return rootFile()->containsItem(run, lumi, event);
110 assert(fileNameHash != 0U);
116 auto hasher = std::hash<std::string>();
123 for(
auto iter = range.first; iter != range.second; ++iter) {
142 typedef std::vector<std::shared_ptr<IndexIntoFile> >::const_iterator Iter;
169 typedef std::vector<std::shared_ptr<IndexIntoFile> >::const_iterator Iter;
171 if(*it && (*it)->containsItem(run, lumi, event)) {
173 std::vector<FileCatalogItem>::const_iterator currentIter =
fileIter_;
180 found =
rootFile()->setEntryAtItem(run, lumi, event);
192 bool deleteIndexIntoFile,
194 char const* inputTypeName,
200 if(deleteIndexIntoFile) {
219 throw cms::Exception(
"LogicalFileNameNotFound",
"RootFileSequenceBase::initTheFile()\n")
220 <<
"Logical file name '" <<
logicalFileName() <<
"' was not found in the file catalog.\n"
221 <<
"If you wanted a local file, you forgot the 'file:' prefix\n"
222 <<
"before the file name in your configuration file.\n";
224 LogWarning(
"") <<
"Input logical file: " <<
logicalFileName() <<
" was not found in the catalog, and will be skipped.\n";
236 std::shared_ptr<InputFile> filePtr;
237 std::list<std::string> originalInfo;
240 filePtr = std::make_shared<InputFile>(gSystem->ExpandPathName(
fileName().c_str()),
" Initiating request to open file ", inputType);
245 std::ostringstream
out;
253 ex.
addContext(
"Calling RootFileSequenceBase::initTheFile()");
254 std::ostringstream
out;
255 out <<
"Input file " <<
fileName() <<
" could not be opened.";
261 if(!filePtr && (hasFallbackUrl)) {
268 filePtr.reset(
new InputFile(fallbackFullName.c_str(),
" Fallback request to file ", inputType));
274 ex.
addContext(
"Calling RootFileSequenceBase::initTheFile()");
275 std::ostringstream
out;
276 out <<
"Input file " <<
fileName() <<
" could not be opened.\n";
277 out <<
"Fallback Input file " <<
fallbackFileName() <<
" also could not be opened.";
278 if (originalInfo.size()) {
279 out << std::endl <<
"Original exception info is above; fallback exception info is below.";
281 for (
auto const &
s : originalInfo) {
302 "RootFileSequenceBase::initTheFile(): Input file " <<
fileName() <<
" was not found or could not be opened.\n";
304 LogWarning(
"") <<
"Input file: " <<
fileName() <<
" was not found or could not be opened, and will be skipped.\n";
virtual std::string explainSelf() const
unsigned long long EventNumber_t
unsigned int LuminosityBlockNumber_t
std::list< std::string > const & additionalInfo() const
static std::string const input
static StorageFactory * get(void)
tuple InputFile
Open Root file and provide MEs ############.
void addAdditionalInfo(std::string const &info)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
void addContext(std::string const &context)
void activateTimeout(const std::string &url)
volatile std::atomic< bool > shutdown_flag false
tuple size
Write out results.