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) {
169 if(*it && (*it)->containsItem(run, lumi, event)) {
171 std::vector<FileCatalogItem>::const_iterator currentIter =
fileIter_;
178 found =
rootFile()->setEntryAtItem(run, lumi, event);
190 bool deleteIndexIntoFile,
192 char const* inputTypeName,
198 if(deleteIndexIntoFile) {
217 throw cms::Exception(
"LogicalFileNameNotFound",
"RootFileSequenceBase::initTheFile()\n")
218 <<
"Logical file name '" <<
logicalFileName() <<
"' was not found in the file catalog.\n"
219 <<
"If you wanted a local file, you forgot the 'file:' prefix\n"
220 <<
"before the file name in your configuration file.\n";
222 LogWarning(
"") <<
"Input logical file: " <<
logicalFileName() <<
" was not found in the catalog, and will be skipped.\n";
234 std::shared_ptr<InputFile> filePtr;
235 std::list<std::string> originalInfo;
238 filePtr = std::make_shared<InputFile>(gSystem->ExpandPathName(
fileName().c_str()),
" Initiating request to open file ", inputType);
243 std::ostringstream
out;
251 ex.
addContext(
"Calling RootFileSequenceBase::initTheFile()");
252 std::ostringstream
out;
253 out <<
"Input file " <<
fileName() <<
" could not be opened.";
259 if(!filePtr && (hasFallbackUrl)) {
264 filePtr.reset(
new InputFile(fallbackFullName.c_str(),
" Fallback request to file ", inputType));
270 ex.
addContext(
"Calling RootFileSequenceBase::initTheFile()");
271 std::ostringstream
out;
272 out <<
"Input file " <<
fileName() <<
" could not be opened.\n";
273 out <<
"Fallback Input file " <<
fallbackFileName() <<
" also could not be opened.";
274 if (originalInfo.size()) {
275 out << std::endl <<
"Original exception info is above; fallback exception info is below.";
277 for (
auto const &
s : originalInfo) {
298 "RootFileSequenceBase::initTheFile(): Input file " <<
fileName() <<
" was not found or could not be opened.\n";
300 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
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)
volatile std::atomic< bool > shutdown_flag false
tuple size
Write out results.