CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
edm::RootPrimaryFileSequence Class Reference

#include <RootPrimaryFileSequence.h>

Inheritance diagram for edm::RootPrimaryFileSequence:
edm::RootInputFileSequence

Public Member Functions

void closeFile_ () override
 
void endJob ()
 
ProcessingController::ForwardState forwardState () const
 
InputSource::ItemType getNextItemType (RunNumber_t &run, LuminosityBlockNumber_t &lumi, EventNumber_t &event)
 
bool goToEvent (EventID const &eventID)
 
RootPrimaryFileSequenceoperator= (RootPrimaryFileSequence const &)=delete
 
std::unique_ptr< FileBlockreadFile_ ()
 
ProcessingController::ReverseState reverseState () const
 
void rewind_ ()
 
 RootPrimaryFileSequence (ParameterSet const &pset, PoolSource &input, InputFileCatalog const &catalog)
 
 RootPrimaryFileSequence (RootPrimaryFileSequence const &)=delete
 
bool skipEvents (int offset)
 
 ~RootPrimaryFileSequence () override
 
- Public Member Functions inherited from edm::RootInputFileSequence
bool containedInCurrentFile (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) const
 
std::shared_ptr< BranchIDListHelper const > fileBranchIDListHelper () const
 
std::shared_ptr< ProductRegistry const > fileProductRegistry () const
 
RootInputFileSequenceoperator= (RootInputFileSequence const &)=delete
 
void readEvent (EventPrincipal &cache)
 
void readLuminosityBlock_ (LuminosityBlockPrincipal &lumiPrincipal)
 
std::shared_ptr< LuminosityBlockAuxiliaryreadLuminosityBlockAuxiliary_ ()
 
void readRun_ (RunPrincipal &runPrincipal)
 
std::shared_ptr< RunAuxiliaryreadRunAuxiliary_ ()
 
 RootInputFileSequence (ParameterSet const &pset, InputFileCatalog const &catalog)
 
 RootInputFileSequence (RootInputFileSequence const &)=delete
 
bool skipToItem (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event, size_t fileNameHash=0U, bool currentFileFirst=true)
 
virtual ~RootInputFileSequence ()
 

Static Public Member Functions

static void fillDescription (ParameterSetDescription &desc)
 

Private Member Functions

std::shared_ptr< DuplicateChecker > & duplicateChecker ()
 
std::shared_ptr< DuplicateChecker const > duplicateChecker () const
 
std::shared_ptr< EventSkipperByID > & eventSkipperByID ()
 
std::shared_ptr< EventSkipperByID const > eventSkipperByID () const
 
void initFile_ (bool skipBadFiles) override
 
RootFileSharedPtr makeRootFile (std::shared_ptr< InputFile > filePtr) override
 
bool nextFile ()
 
bool previousFile ()
 
int remainingEvents () const
 
int remainingLuminosityBlocks () const
 
void rewindFile ()
 

Private Attributes

BranchDescription::MatchMode branchesMustMatch_
 
edm::propagate_const< std::shared_ptr< DuplicateChecker > > duplicateChecker_
 
bool enablePrefetching_
 
bool enforceGUIDInFileName_
 
edm::propagate_const< std::shared_ptr< EventSkipperByID > > eventSkipperByID_
 
bool firstFile_
 
int initialNumberOfEventsToSkip_
 
PoolSourceinput_
 
bool noEventSort_
 
std::vector< ProcessHistoryIDorderedProcessHistoryIDs_
 
unsigned int treeCacheSize_
 
bool usingGoToEvent_
 

Additional Inherited Members

- Protected Types inherited from edm::RootInputFileSequence
typedef std::shared_ptr< RootFileRootFileSharedPtr
 
- Protected Member Functions inherited from edm::RootInputFileSequence
bool atFirstFile () const
 
bool atLastFile () const
 
std::vector< FileCatalogItem > const & fileCatalogItems () const
 
std::vector< std::string > const & fileNames () const
 
std::vector< std::shared_ptr< IndexIntoFile > > const & indexesIntoFiles () const
 
void initFile (bool skipBadFiles)
 
void initTheFile (bool skipBadFiles, bool deleteIndexIntoFile, InputSource *input, char const *inputTypeName, InputType inputType)
 
std::string const & lfn () const
 
size_t lfnHash () const
 
std::string const & logicalFileName () const
 
bool noFiles () const
 
bool noMoreFiles () const
 
size_t numberOfFiles () const
 
std::shared_ptr< RootFile > & rootFile ()
 
std::shared_ptr< RootFile const > rootFile () const
 
size_t sequenceNumberOfFile () const
 
void setAtFileSequenceNumber (size_t offset)
 
void setAtFirstFile ()
 
void setAtNextFile ()
 
void setAtPreviousFile ()
 
void setIndexIntoFile (size_t index)
 
void setNoMoreFiles ()
 
bool skipToItemInNewFile (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event)
 
bool skipToItemInNewFile (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event, size_t fileNameHash)
 
bool usedFallback () const
 

Detailed Description

Definition at line 34 of file RootPrimaryFileSequence.h.

Constructor & Destructor Documentation

◆ RootPrimaryFileSequence() [1/2]

edm::RootPrimaryFileSequence::RootPrimaryFileSequence ( ParameterSet const &  pset,
PoolSource input,
InputFileCatalog const &  catalog 
)
explicit

Definition at line 22 of file RootPrimaryFileSequence.cc.

26  input_(input),
27  firstFile_(true),
31  initialNumberOfEventsToSkip_(pset.getUntrackedParameter<unsigned int>("skipEvents")),
32  noEventSort_(pset.getUntrackedParameter<bool>("noEventSort")),
33  treeCacheSize_(noEventSort_ ? pset.getUntrackedParameter<unsigned int>("cacheSize") : 0U),
34  duplicateChecker_(new DuplicateChecker(pset)),
35  usingGoToEvent_(false),
36  enablePrefetching_(false),
37  enforceGUIDInFileName_(pset.getUntrackedParameter<bool>("enforceGUIDInFileName")) {
38  // The SiteLocalConfig controls the TTreeCache size and the prefetching settings.
40  if (pSLC.isAvailable()) {
41  if (treeCacheSize_ != 0U && pSLC->sourceTTreeCacheSize()) {
42  treeCacheSize_ = *(pSLC->sourceTTreeCacheSize());
43  }
44  enablePrefetching_ = pSLC->enablePrefetching();
45  }
46 
47  std::string branchesMustMatch =
48  pset.getUntrackedParameter<std::string>("branchesMustMatch", std::string("permissive"));
49  if (branchesMustMatch == std::string("strict"))
51 
52  // Prestage the files
55  }
56  // Open the first file.
59  if (rootFile())
60  break;
61  }
62  if (rootFile()) {
63  input_.productRegistryUpdate().updateFromInput(rootFile()->productRegistry()->productList());
66  }
67  }
68  }

References branchesMustMatch_, enablePrefetching_, edm::RootInputFileSequence::fileNames(), StorageFactory::get(), edm::RootInputFileSequence::initFile(), initialNumberOfEventsToSkip_, input_, edm::Service< T >::isAvailable(), edm::RootInputFileSequence::noMoreFiles(), edm::PoolSource::productRegistryUpdate(), muonDTDigis_cfi::pset, edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtFirstFile(), edm::RootInputFileSequence::setAtNextFile(), edm::PoolSource::skipBadFiles(), skipEvents(), StorageFactory::stagein(), edm::BranchDescription::Strict, AlCaHLTBitMon_QueryRunRegistry::string, treeCacheSize_, mitigatedMETSequence_cff::U, and edm::ProductRegistry::updateFromInput().

◆ ~RootPrimaryFileSequence()

edm::RootPrimaryFileSequence::~RootPrimaryFileSequence ( )
override

Definition at line 70 of file RootPrimaryFileSequence.cc.

70 {}

◆ RootPrimaryFileSequence() [2/2]

edm::RootPrimaryFileSequence::RootPrimaryFileSequence ( RootPrimaryFileSequence const &  )
delete

Member Function Documentation

◆ closeFile_()

void edm::RootPrimaryFileSequence::closeFile_ ( )
overridevirtual

Implements edm::RootInputFileSequence.

Definition at line 92 of file RootPrimaryFileSequence.cc.

92  {
93  // close the currently open file, if any, and delete the RootFile object.
94  if (rootFile()) {
95  auto sentry = std::make_unique<InputSource::FileCloseSentry>(input_, lfn(), usedFallback());
96  rootFile()->close();
98  duplicateChecker_->inputFileClosed();
99  rootFile().reset();
100  }
101  }

References duplicateChecker_, input_, edm::RootInputFileSequence::lfn(), edm::RootInputFileSequence::rootFile(), and edm::RootInputFileSequence::usedFallback().

Referenced by endJob(), and rewind_().

◆ duplicateChecker() [1/2]

std::shared_ptr<DuplicateChecker>& edm::RootPrimaryFileSequence::duplicateChecker ( )
inlineprivate

◆ duplicateChecker() [2/2]

std::shared_ptr<DuplicateChecker const> edm::RootPrimaryFileSequence::duplicateChecker ( ) const
inlineprivate

Definition at line 70 of file RootPrimaryFileSequence.h.

References duplicateChecker_, and edm::get_underlying_safe().

Referenced by makeRootFile().

◆ endJob()

void edm::RootPrimaryFileSequence::endJob ( void  )

Definition at line 72 of file RootPrimaryFileSequence.cc.

72 { closeFile_(); }

References closeFile_().

◆ eventSkipperByID() [1/2]

std::shared_ptr<EventSkipperByID>& edm::RootPrimaryFileSequence::eventSkipperByID ( )
inlineprivate

◆ eventSkipperByID() [2/2]

std::shared_ptr<EventSkipperByID const> edm::RootPrimaryFileSequence::eventSkipperByID ( ) const
inlineprivate

Definition at line 68 of file RootPrimaryFileSequence.h.

References eventSkipperByID_, and edm::get_underlying_safe().

Referenced by makeRootFile().

◆ fillDescription()

void edm::RootPrimaryFileSequence::fillDescription ( ParameterSetDescription desc)
static

Definition at line 312 of file RootPrimaryFileSequence.cc.

312  {
313  desc.addUntracked<unsigned int>("skipEvents", 0U)
314  ->setComment("Skip the first 'skipEvents' events that otherwise would have been processed.");
315  desc.addUntracked<bool>("noEventSort", true)
316  ->setComment(
317  "True: Process runs, lumis and events in the order they appear in the file (but see notes 1 and 2).\n"
318  "False: Process runs, lumis and events in each file in numerical order (run#, lumi#, event#) (but see note "
319  "3).\n"
320  "Note 1: Events within the same lumi will always be processed contiguously.\n"
321  "Note 2: Lumis within the same run will always be processed contiguously.\n"
322  "Note 3: Any sorting occurs independently in each input file (no sorting across input files).");
323  desc.addUntracked<unsigned int>("cacheSize", roottree::defaultCacheSize)
324  ->setComment("Size of ROOT TTree prefetch cache. Affects performance.");
325  std::string defaultString("permissive");
326  desc.addUntracked<std::string>("branchesMustMatch", defaultString)
327  ->setComment(
328  "'strict': Branches in each input file must match those in the first file.\n"
329  "'permissive': Branches in each input file may be any subset of those in the first file.");
330  desc.addUntracked<bool>("enforceGUIDInFileName", false)
331  ->setComment(
332  "True: file name part is required to be equal to the GUID of the file\n"
333  "False: file name can be anything");
334 
337  }

References edm::roottree::defaultCacheSize, submitPVResolutionJobs::desc, edm::EventSkipperByID::fillDescription(), edm::DuplicateChecker::fillDescription(), AlCaHLTBitMon_QueryRunRegistry::string, and mitigatedMETSequence_cff::U.

Referenced by edm::PoolSource::fillDescriptions().

◆ forwardState()

ProcessingController::ForwardState edm::RootPrimaryFileSequence::forwardState ( ) const

◆ getNextItemType()

InputSource::ItemType edm::RootPrimaryFileSequence::getNextItemType ( RunNumber_t run,
LuminosityBlockNumber_t lumi,
EventNumber_t event 
)

◆ goToEvent()

bool edm::RootPrimaryFileSequence::goToEvent ( EventID const &  eventID)

Definition at line 255 of file RootPrimaryFileSequence.cc.

255  {
256  usingGoToEvent_ = true;
257  if (rootFile()) {
258  if (rootFile()->goToEvent(eventID)) {
259  return true;
260  }
261  // If only one input file, give up now, to save time.
262  if (rootFile() && indexesIntoFiles().size() == 1) {
263  return false;
264  }
265  // Save the current file and position so that we can restore them
266  // if we fail to restore the desired event
267  bool closedOriginalFile = false;
268  size_t const originalFileSequenceNumber = sequenceNumberOfFile();
269  IndexIntoFile::IndexIntoFileItr originalPosition = rootFile()->indexIntoFileIter();
270 
271  // Look for item (run/lumi/event) in files previously opened without reopening unnecessary files.
272  for (auto it = indexesIntoFiles().begin(), itEnd = indexesIntoFiles().end(); it != itEnd; ++it) {
273  if (*it && (*it)->containsItem(eventID.run(), eventID.luminosityBlock(), eventID.event())) {
274  // We found it. Close the currently open file, and open the correct one.
276  initFile(false);
277  // Now get the item from the correct file.
278  assert(rootFile());
279  bool found = rootFile()->goToEvent(eventID);
280  assert(found);
281  return true;
282  }
283  }
284  // Look for item in files not yet opened.
285  for (auto it = indexesIntoFiles().begin(), itEnd = indexesIntoFiles().end(); it != itEnd; ++it) {
286  if (!*it) {
288  initFile(false);
289  closedOriginalFile = true;
290  if ((*it)->containsItem(eventID.run(), eventID.luminosityBlock(), eventID.event())) {
291  assert(rootFile());
292  if (rootFile()->goToEvent(eventID)) {
293  return true;
294  }
295  }
296  }
297  }
298  if (closedOriginalFile) {
299  setAtFileSequenceNumber(originalFileSequenceNumber);
300  initFile(false);
301  assert(rootFile());
302  rootFile()->setPosition(originalPosition);
303  }
304  }
305  return false;
306  }

References cms::cuda::assert(), mps_fire::end, edm::EventID::event(), newFWLiteAna::found, edm::RootInputFileSequence::indexesIntoFiles(), edm::RootInputFileSequence::initFile(), edm::EventID::luminosityBlock(), edm::RootInputFileSequence::rootFile(), edm::EventID::run(), edm::RootInputFileSequence::sequenceNumberOfFile(), edm::RootInputFileSequence::setAtFileSequenceNumber(), findQualityFiles::size, and usingGoToEvent_.

◆ initFile_()

void edm::RootPrimaryFileSequence::initFile_ ( bool  skipBadFiles)
overrideprivatevirtual

Implements edm::RootInputFileSequence.

Definition at line 103 of file RootPrimaryFileSequence.cc.

103  {
104  // If we are not duplicate checking across files and we are not using random access to find events,
105  // then we can delete the IndexIntoFile for the file we are closing.
106  // If we can't delete all of it, then we can delete the parts we do not need.
107  bool deleteIndexIntoFile = !usingGoToEvent_ && !(duplicateChecker_ && duplicateChecker_->checkingAllFiles() &&
108  !duplicateChecker_->checkDisabled());
109  initTheFile(skipBadFiles, deleteIndexIntoFile, &input_, "primaryFiles", InputType::Primary);
110  }

References duplicateChecker_, edm::RootInputFileSequence::initTheFile(), input_, edm::Primary, remoteMonitoring_LED_IterMethod_cfg::skipBadFiles, and usingGoToEvent_.

◆ makeRootFile()

RootPrimaryFileSequence::RootFileSharedPtr edm::RootPrimaryFileSequence::makeRootFile ( std::shared_ptr< InputFile filePtr)
overrideprivatevirtual

Implements edm::RootInputFileSequence.

Definition at line 112 of file RootPrimaryFileSequence.cc.

112  {
113  size_t currentIndexIntoFile = sequenceNumberOfFile();
114  return std::make_shared<RootFile>(fileNames()[0],
116  logicalFileName(),
117  filePtr,
120  remainingEvents(),
122  input_.nStreams(),
126  input_.runHelper(),
127  noEventSort_,
132  nullptr, // associationsFromSecondary
137  currentIndexIntoFile,
144  }

References edm::InputSource::branchIDListHelper(), edm::PoolSource::bypassVersionCheck(), edm::PoolSource::dropDescendants(), duplicateChecker(), enablePrefetching_, enforceGUIDInFileName_, eventSkipperByID(), edm::RootInputFileSequence::fileNames(), edm::RootInputFileSequence::indexesIntoFiles(), initialNumberOfEventsToSkip_, input_, edm::PoolSource::labelRawDataLikeMC(), edm::RootInputFileSequence::logicalFileName(), noEventSort_, edm::PoolSource::nStreams(), orderedProcessHistoryIDs_, edm::Primary, edm::InputSource::processConfiguration(), edm::PoolSource::processHistoryRegistryForUpdate(), edm::InputSource::processingMode(), edm::PoolSource::productSelectorRules(), remainingEvents(), remainingLuminosityBlocks(), edm::PoolSource::runHelper(), edm::RootInputFileSequence::sequenceNumberOfFile(), edm::InputSource::thinnedAssociationsHelper(), treeCacheSize_, edm::PoolSource::treeMaxVirtualSize(), and usingGoToEvent_.

◆ nextFile()

bool edm::RootPrimaryFileSequence::nextFile ( )
private

Definition at line 146 of file RootPrimaryFileSequence.cc.

146  {
147  if (!noMoreFiles())
148  setAtNextFile();
149  if (noMoreFiles()) {
150  return false;
151  }
152 
154 
155  if (not rootFile()) {
156  return false;
157  }
158 
159  // make sure the new product registry is compatible with the main one
160  std::string mergeInfo =
161  input_.productRegistryUpdate().merge(*rootFile()->productRegistry(), fileNames()[0], branchesMustMatch_);
162  if (!mergeInfo.empty()) {
163  throw Exception(errors::MismatchedInputFiles, "RootPrimaryFileSequence::nextFile()") << mergeInfo;
164  }
165  return true;
166  }

References branchesMustMatch_, Exception, edm::RootInputFileSequence::fileNames(), edm::RootInputFileSequence::initFile(), input_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, edm::RootInputFileSequence::noMoreFiles(), edm::PoolSource::productRegistryUpdate(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtNextFile(), edm::PoolSource::skipBadFiles(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by readFile_(), and skipEvents().

◆ operator=()

RootPrimaryFileSequence& edm::RootPrimaryFileSequence::operator= ( RootPrimaryFileSequence const &  )
delete

◆ previousFile()

bool edm::RootPrimaryFileSequence::previousFile ( )
private

Definition at line 168 of file RootPrimaryFileSequence.cc.

168  {
169  if (atFirstFile()) {
170  return false;
171  }
173 
174  initFile(false);
175 
176  if (rootFile()) {
177  // make sure the new product registry is compatible to the main one
178  std::string mergeInfo =
179  input_.productRegistryUpdate().merge(*rootFile()->productRegistry(), fileNames()[0], branchesMustMatch_);
180  if (!mergeInfo.empty()) {
181  throw Exception(errors::MismatchedInputFiles, "RootPrimaryFileSequence::previousEvent()") << mergeInfo;
182  }
183  }
184  if (rootFile())
185  rootFile()->setToLastEntry();
186  return true;
187  }

References edm::RootInputFileSequence::atFirstFile(), branchesMustMatch_, Exception, edm::RootInputFileSequence::fileNames(), edm::RootInputFileSequence::initFile(), input_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, edm::PoolSource::productRegistryUpdate(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtPreviousFile(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by skipEvents().

◆ readFile_()

std::unique_ptr< FileBlock > edm::RootPrimaryFileSequence::readFile_ ( )

Definition at line 74 of file RootPrimaryFileSequence.cc.

74  {
75  if (firstFile_) {
76  // The first input file has already been opened.
77  firstFile_ = false;
78  if (!rootFile()) {
80  }
81  } else {
82  if (!nextFile()) {
83  assert(0);
84  }
85  }
86  if (!rootFile()) {
87  return std::make_unique<FileBlock>();
88  }
89  return rootFile()->createFileBlock();
90  }

References cms::cuda::assert(), firstFile_, edm::RootInputFileSequence::initFile(), input_, nextFile(), edm::RootInputFileSequence::rootFile(), and edm::PoolSource::skipBadFiles().

◆ remainingEvents()

int edm::RootPrimaryFileSequence::remainingEvents ( ) const
private

Definition at line 308 of file RootPrimaryFileSequence.cc.

308 { return input_.remainingEvents(); }

References input_, and edm::InputSource::remainingEvents().

Referenced by makeRootFile().

◆ remainingLuminosityBlocks()

int edm::RootPrimaryFileSequence::remainingLuminosityBlocks ( ) const
private

Definition at line 310 of file RootPrimaryFileSequence.cc.

310 { return input_.remainingLuminosityBlocks(); }

References input_, and edm::InputSource::remainingLuminosityBlocks().

Referenced by makeRootFile().

◆ reverseState()

ProcessingController::ReverseState edm::RootPrimaryFileSequence::reverseState ( ) const

◆ rewind_()

void edm::RootPrimaryFileSequence::rewind_ ( )

◆ rewindFile()

void edm::RootPrimaryFileSequence::rewindFile ( )
private

Definition at line 234 of file RootPrimaryFileSequence.cc.

234  {
235  if (rootFile())
236  rootFile()->rewind();
237  }

References edm::RootInputFileSequence::rootFile().

Referenced by rewind_().

◆ skipEvents()

bool edm::RootPrimaryFileSequence::skipEvents ( int  offset)

Definition at line 240 of file RootPrimaryFileSequence.cc.

240  {
241  assert(rootFile());
242  while (offset != 0) {
243  bool atEnd = rootFile()->skipEvents(offset);
244  if ((offset > 0 || atEnd) && !nextFile()) {
245  return false;
246  }
247  if (offset < 0 && !previousFile()) {
248  setNoMoreFiles();
249  return false;
250  }
251  }
252  return true;
253  }

References cms::cuda::assert(), nextFile(), hltrates_dqm_sourceclient-live_cfg::offset, previousFile(), edm::RootInputFileSequence::rootFile(), and edm::RootInputFileSequence::setNoMoreFiles().

Referenced by rewind_(), and RootPrimaryFileSequence().

Member Data Documentation

◆ branchesMustMatch_

BranchDescription::MatchMode edm::RootPrimaryFileSequence::branchesMustMatch_
private

Definition at line 65 of file RootPrimaryFileSequence.h.

Referenced by nextFile(), previousFile(), and RootPrimaryFileSequence().

◆ duplicateChecker_

edm::propagate_const<std::shared_ptr<DuplicateChecker> > edm::RootPrimaryFileSequence::duplicateChecker_
private

Definition at line 77 of file RootPrimaryFileSequence.h.

Referenced by closeFile_(), duplicateChecker(), and initFile_().

◆ enablePrefetching_

bool edm::RootPrimaryFileSequence::enablePrefetching_
private

Definition at line 79 of file RootPrimaryFileSequence.h.

Referenced by makeRootFile(), and RootPrimaryFileSequence().

◆ enforceGUIDInFileName_

bool edm::RootPrimaryFileSequence::enforceGUIDInFileName_
private

Definition at line 80 of file RootPrimaryFileSequence.h.

Referenced by makeRootFile().

◆ eventSkipperByID_

edm::propagate_const<std::shared_ptr<EventSkipperByID> > edm::RootPrimaryFileSequence::eventSkipperByID_
private

Definition at line 73 of file RootPrimaryFileSequence.h.

Referenced by eventSkipperByID().

◆ firstFile_

bool edm::RootPrimaryFileSequence::firstFile_
private

Definition at line 64 of file RootPrimaryFileSequence.h.

Referenced by getNextItemType(), readFile_(), and rewind_().

◆ initialNumberOfEventsToSkip_

int edm::RootPrimaryFileSequence::initialNumberOfEventsToSkip_
private

Definition at line 74 of file RootPrimaryFileSequence.h.

Referenced by makeRootFile(), rewind_(), and RootPrimaryFileSequence().

◆ input_

PoolSource& edm::RootPrimaryFileSequence::input_
private

◆ noEventSort_

bool edm::RootPrimaryFileSequence::noEventSort_
private

Definition at line 75 of file RootPrimaryFileSequence.h.

Referenced by makeRootFile().

◆ orderedProcessHistoryIDs_

std::vector<ProcessHistoryID> edm::RootPrimaryFileSequence::orderedProcessHistoryIDs_
private

Definition at line 66 of file RootPrimaryFileSequence.h.

Referenced by makeRootFile().

◆ treeCacheSize_

unsigned int edm::RootPrimaryFileSequence::treeCacheSize_
private

Definition at line 76 of file RootPrimaryFileSequence.h.

Referenced by makeRootFile(), and RootPrimaryFileSequence().

◆ usingGoToEvent_

bool edm::RootPrimaryFileSequence::usingGoToEvent_
private

Definition at line 78 of file RootPrimaryFileSequence.h.

Referenced by goToEvent(), initFile_(), and makeRootFile().

edm::RootInputFileSequence::noMoreFiles
bool noMoreFiles() const
Definition: RootInputFileSequence.h:65
edm::RootPrimaryFileSequence::firstFile_
bool firstFile_
Definition: RootPrimaryFileSequence.h:64
edm::IndexIntoFile::kLumi
Definition: IndexIntoFile.h:238
edm::errors::MismatchedInputFiles
Definition: EDMException.h:52
edm::ProcessingController::kAtLastEvent
Definition: ProcessingController.h:34
edm::RootPrimaryFileSequence::previousFile
bool previousFile()
Definition: RootPrimaryFileSequence.cc:168
input
static const std::string input
Definition: EdmProvDump.cc:48
edm::RootInputFileSequence::setAtFirstFile
void setAtFirstFile()
Definition: RootInputFileSequence.h:70
edm::PoolSource::labelRawDataLikeMC
bool labelRawDataLikeMC() const
Definition: PoolSource.h:43
edm::RootPrimaryFileSequence::nextFile
bool nextFile()
Definition: RootPrimaryFileSequence.cc:146
edm::RootInputFileSequence::setAtFileSequenceNumber
void setAtFileSequenceNumber(size_t offset)
Definition: RootInputFileSequence.h:71
edm::ProcessingController::kUnknownReverse
Definition: ProcessingController.h:42
edm::PoolSource::productRegistryUpdate
ProductRegistry & productRegistryUpdate()
Definition: InputSource.h:329
getEcalConditions_orcoffint2r_cff.catalog
catalog
Definition: getEcalConditions_orcoffint2r_cff.py:40
edm::InputSource::thinnedAssociationsHelper
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper() const
Accessors for thinnedAssociationsHelper.
Definition: InputSource.h:168
edm::IndexIntoFile::kEvent
Definition: IndexIntoFile.h:238
edm::RootPrimaryFileSequence::input_
PoolSource & input_
Definition: RootPrimaryFileSequence.h:63
edm::RootInputFileSequence::atFirstFile
bool atFirstFile() const
Definition: RootInputFileSequence.h:63
edm::DuplicateChecker::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: DuplicateChecker.cc:109
edm::ProductRegistry::updateFromInput
void updateFromInput(ProductList const &other)
Definition: ProductRegistry.cc:209
cms::cuda::assert
assert(be >=bs)
edm::RootPrimaryFileSequence::duplicateChecker
std::shared_ptr< DuplicateChecker const > duplicateChecker() const
Definition: RootPrimaryFileSequence.h:70
edm::get_underlying_safe
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
Definition: get_underlying_safe.h:41
edm::PoolSource::nStreams
unsigned int nStreams() const
Definition: PoolSource.h:44
edm::BranchDescription::Strict
Definition: BranchDescription.h:36
remoteMonitoring_LED_IterMethod_cfg.skipBadFiles
skipBadFiles
Definition: remoteMonitoring_LED_IterMethod_cfg.py:24
edm::RootInputFileSequence::logicalFileName
std::string const & logicalFileName() const
Definition: RootInputFileSequence.h:78
edm::RootPrimaryFileSequence::usingGoToEvent_
bool usingGoToEvent_
Definition: RootPrimaryFileSequence.h:78
newFWLiteAna.found
found
Definition: newFWLiteAna.py:118
edm::PoolSource::skipBadFiles
bool skipBadFiles() const
Definition: PoolSource.h:40
edm::RootPrimaryFileSequence::eventSkipperByID_
edm::propagate_const< std::shared_ptr< EventSkipperByID > > eventSkipperByID_
Definition: RootPrimaryFileSequence.h:73
edm::EventSkipperByID::create
static std::unique_ptr< EventSkipperByID > create(ParameterSet const &pset)
Definition: EventSkipperByID.cc:38
edm::RootPrimaryFileSequence::remainingEvents
int remainingEvents() const
Definition: RootPrimaryFileSequence.cc:308
edm::InputSource::IsRun
Definition: InputSource.h:78
edm::InputSource::remainingLuminosityBlocks
int remainingLuminosityBlocks() const
Definition: InputSource.h:198
edm::RootPrimaryFileSequence::remainingLuminosityBlocks
int remainingLuminosityBlocks() const
Definition: RootPrimaryFileSequence.cc:310
edm::BranchDescription::Permissive
Definition: BranchDescription.h:36
edm::RootInputFileSequence::initFile
void initFile(bool skipBadFiles)
Definition: RootInputFileSequence.h:53
edm::RootPrimaryFileSequence::skipEvents
bool skipEvents(int offset)
Definition: RootPrimaryFileSequence.cc:240
edm::RootPrimaryFileSequence::duplicateChecker_
edm::propagate_const< std::shared_ptr< DuplicateChecker > > duplicateChecker_
Definition: RootPrimaryFileSequence.h:77
edm::PoolSource::processHistoryRegistryForUpdate
ProcessHistoryRegistry & processHistoryRegistryForUpdate()
Definition: InputSource.h:330
edm::RootPrimaryFileSequence::rewindFile
void rewindFile()
Definition: RootPrimaryFileSequence.cc:234
edm::IndexIntoFile::kRun
Definition: IndexIntoFile.h:238
edm::ProcessingController::kNextFileExists
Definition: ProcessingController.h:33
edm::PoolSource::runHelper
RunHelperBase * runHelper()
Definition: PoolSource.h:47
StorageFactory::get
static const StorageFactory * get(void)
Definition: StorageFactory.cc:28
edm::RootPrimaryFileSequence::eventSkipperByID
std::shared_ptr< EventSkipperByID const > eventSkipperByID() const
Definition: RootPrimaryFileSequence.h:68
mps_fire.end
end
Definition: mps_fire.py:242
edm::RootInputFileSequence::setAtNextFile
void setAtNextFile()
Definition: RootInputFileSequence.h:73
edm::ProcessingController::kAtFirstEvent
Definition: ProcessingController.h:41
Service
StorageFactory::stagein
void stagein(const std::string &url) const
Definition: StorageFactory.cc:159
edm::RootInputFileSequence::atLastFile
bool atLastFile() const
Definition: RootInputFileSequence.h:64
edm::roottree::defaultCacheSize
unsigned const int defaultCacheSize
Definition: RootTree.h:47
edm::RootPrimaryFileSequence::noEventSort_
bool noEventSort_
Definition: RootPrimaryFileSequence.h:75
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
edm::ProcessingController::kEventsAheadInFile
Definition: ProcessingController.h:32
edm::RootInputFileSequence::RootInputFileSequence
RootInputFileSequence(ParameterSet const &pset, InputFileCatalog const &catalog)
Definition: RootInputFileSequence.cc:22
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::InputSource::processingMode
ProcessingMode processingMode() const
RunsLumisAndEvents (default), RunsAndLumis, or Runs.
Definition: InputSource.h:236
edm::InputSource::IsFile
Definition: InputSource.h:78
edm::RootPrimaryFileSequence::enablePrefetching_
bool enablePrefetching_
Definition: RootPrimaryFileSequence.h:79
edm::RootPrimaryFileSequence::treeCacheSize_
unsigned int treeCacheSize_
Definition: RootPrimaryFileSequence.h:76
fetchall_from_DQM_v2.release
release
Definition: fetchall_from_DQM_v2.py:92
edm::PoolSource::treeMaxVirtualSize
int treeMaxVirtualSize() const
Definition: PoolSource.h:45
edm::InputSource::IsLumi
Definition: InputSource.h:78
edm::RootInputFileSequence::rootFile
std::shared_ptr< RootFile const > rootFile() const
Definition: RootInputFileSequence.h:87
edm::RootPrimaryFileSequence::closeFile_
void closeFile_() override
Definition: RootPrimaryFileSequence.cc:92
edm::InputSource::IsStop
Definition: InputSource.h:78
edm::RootInputFileSequence::lfn
std::string const & lfn() const
Definition: RootInputFileSequence.h:79
edm::InputSource::branchIDListHelper
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
Accessors for branchIDListHelper.
Definition: InputSource.h:162
edm::ProcessingController::kEventsBackwardsInFile
Definition: ProcessingController.h:39
edm::InputSource::processConfiguration
ProcessConfiguration const & processConfiguration() const
Accessor for Process Configuration.
Definition: InputSource.h:204
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
writedatasetfile.run
run
Definition: writedatasetfile.py:27
edm::InputType::Primary
edm::RootPrimaryFileSequence::initialNumberOfEventsToSkip_
int initialNumberOfEventsToSkip_
Definition: RootPrimaryFileSequence.h:74
edm::PoolSource::dropDescendants
bool dropDescendants() const
Definition: PoolSource.h:41
Exception
Definition: hltDiff.cc:246
edm::InputSource::remainingEvents
int remainingEvents() const
Definition: InputSource.h:190
edm::ProcessingController::kUnknownForward
Definition: ProcessingController.h:35
edm::EventSkipperByID::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: EventSkipperByID.cc:116
edm::RootPrimaryFileSequence::branchesMustMatch_
BranchDescription::MatchMode branchesMustMatch_
Definition: RootPrimaryFileSequence.h:65
edm::ProcessingController::kPreviousFileExists
Definition: ProcessingController.h:40
edm::RootInputFileSequence::setNoMoreFiles
void setNoMoreFiles()
Definition: RootInputFileSequence.h:72
edm::RootInputFileSequence::initTheFile
void initTheFile(bool skipBadFiles, bool deleteIndexIntoFile, InputSource *input, char const *inputTypeName, InputType inputType)
Definition: RootInputFileSequence.cc:182
edm::RootInputFileSequence::usedFallback
bool usedFallback() const
Definition: RootInputFileSequence.h:85
edm::RootInputFileSequence::setAtPreviousFile
void setAtPreviousFile()
Definition: RootInputFileSequence.h:74
edm::RootPrimaryFileSequence::enforceGUIDInFileName_
bool enforceGUIDInFileName_
Definition: RootPrimaryFileSequence.h:80
edm::RootInputFileSequence::indexesIntoFiles
std::vector< std::shared_ptr< IndexIntoFile > > const & indexesIntoFiles() const
Definition: RootInputFileSequence.h:82
edm::IndexIntoFile::kEnd
Definition: IndexIntoFile.h:238
edm::ProductRegistry::merge
std::string merge(ProductRegistry const &other, std::string const &fileName, BranchDescription::MatchMode branchesMustMatch=BranchDescription::Permissive)
Definition: ProductRegistry.cc:250
edm::InputSource::IsEvent
Definition: InputSource.h:78
edm::PoolSource::productSelectorRules
ProductSelectorRules const & productSelectorRules() const
Definition: PoolSource.h:46
event
Definition: event.py:1
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
edm::PoolSource::bypassVersionCheck
bool bypassVersionCheck() const
Definition: PoolSource.h:42
lumi
Definition: LumiSectionData.h:20
edm::RootPrimaryFileSequence::orderedProcessHistoryIDs_
std::vector< ProcessHistoryID > orderedProcessHistoryIDs_
Definition: RootPrimaryFileSequence.h:66
edm::RootInputFileSequence::sequenceNumberOfFile
size_t sequenceNumberOfFile() const
Definition: RootInputFileSequence.h:67
edm::RootPrimaryFileSequence::goToEvent
bool goToEvent(EventID const &eventID)
Definition: RootPrimaryFileSequence.cc:255
edm::RootInputFileSequence::fileNames
std::vector< std::string > const & fileNames() const
Definition: RootInputFileSequence.h:76
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
edm::IndexIntoFile::EntryType
EntryType
Definition: IndexIntoFile.h:238