19 class BranchIDListHelper;
21 class LuminosityBlockPrincipal;
29 findFileForSpecifiedID_(
nullptr),
30 fileIterBegin_(fileCatalogItems().
begin()),
31 fileIterEnd_(fileCatalogItems().
end()),
32 fileIter_(fileIterEnd_),
33 fileIterLastOpened_(fileIterEnd_),
35 indexesIntoFiles_(fileCatalogItems().
size()) {}
43 return rootFile()->productRegistry();
48 return rootFile()->branchIDListHelper();
55 return rootFile()->readRunAuxiliary_();
60 return rootFile()->readLuminosityBlockAuxiliary_();
70 rootFile()->readLuminosityBlock_(lumiPrincipal);
88 rootFile()->readEvent(eventPrincipal);
96 return rootFile()->containsItem(run, lumi, event);
102 size_t fileNameHash) {
104 assert(fileNameHash != 0U);
110 std::make_unique<std::unordered_multimap<size_t, size_t>>();
111 auto hasher = std::hash<std::string>();
118 for (
auto iter = range.first; iter != range.second; ++iter) {
163 if (*it && (*it)->containsItem(run, lumi, event)) {
165 std::vector<FileCatalogItem>::const_iterator currentIter =
fileIter_;
172 found =
rootFile()->setEntryAtItem(run, lumi, event);
189 if (deleteIndexIntoFile) {
209 throw cms::Exception(
"LogicalFileNameNotFound",
"RootFileSequenceBase::initTheFile()\n")
210 <<
"Logical file name '" <<
logicalFileName() <<
"' was not found in the file catalog.\n"
211 <<
"If you wanted a local file, you forgot the 'file:' prefix\n"
212 <<
"before the file name in your configuration file.\n";
215 <<
" was not found in the catalog, and will be skipped.\n";
227 std::shared_ptr<InputFile> filePtr;
228 std::list<std::string> originalInfo;
236 filePtr = std::make_shared<InputFile>(gSystem->ExpandPathName(
fileName().c_str()),
" Initiating request to open file ", inputType);
239 if (hasFallbackUrl) {
240 std::ostringstream
out;
248 ex.
addContext(
"Calling RootFileSequenceBase::initTheFile()");
249 std::ostringstream
out;
250 out <<
"Input file " <<
fileName() <<
" could not be opened.";
256 if (!filePtr && (hasFallbackUrl)) {
260 filePtr.reset(
new InputFile(fallbackFullName.c_str(),
" Fallback request to file ", inputType));
265 ex.
addContext(
"Calling RootFileSequenceBase::initTheFile()");
266 std::ostringstream
out;
267 out <<
"Input file " <<
fileName() <<
" could not be opened.\n";
268 out <<
"Fallback Input file " <<
fallbackFileName() <<
" also could not be opened.";
269 if (originalInfo.size()) {
270 out << std::endl <<
"Original exception info is above; fallback exception info is below.";
272 for (
auto const&
s : originalInfo) {
294 <<
" was not found or could not be opened.\n";
296 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 openingFile(std::string const &lfn, edm::InputType type, size_t size=-1)
void closedFile(std::string const &lfn, bool usedFallback)
void addContext(std::string const &context)
volatile std::atomic< bool > shutdown_flag false
tuple size
Write out results.