CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RootPrimaryFileSequence.h
Go to the documentation of this file.
1 #ifndef IOPool_Input_RootPrimaryFileSequence_h
2 #define IOPool_Input_RootPrimaryFileSequence_h
3 
4 /*----------------------------------------------------------------------
5 
6 RootPrimaryFileSequence: This is an InputSource
7 
8 ----------------------------------------------------------------------*/
9 
10 #include "RootInputFileSequence.h"
18 
19 #include <memory>
20 #include <string>
21 #include <vector>
22 
23 namespace edm {
24 
25  class BranchID;
26  class DuplicateChecker;
27  class FileCatalogItem;
28  class InputFileCatalog;
30  class PoolSource;
31  class RootFile;
32 
34  public:
35  explicit RootPrimaryFileSequence(ParameterSet const& pset,
38  unsigned int nStreams);
39  virtual ~RootPrimaryFileSequence();
40 
41  RootPrimaryFileSequence(RootPrimaryFileSequence const&) = delete; // Disallow copying and moving
42  RootPrimaryFileSequence& operator=(RootPrimaryFileSequence const&) = delete; // Disallow copying and moving
43 
44  typedef std::shared_ptr<RootFile> RootFileSharedPtr;
45  std::unique_ptr<FileBlock> readFile_();
46  virtual void closeFile_() override;
47  void endJob();
49  bool skipEvents(int offset);
50  bool goToEvent(EventID const& eventID);
51  void rewind_();
52  static void fillDescription(ParameterSetDescription & desc);
55  private:
56  virtual void initFile_(bool skipBadFiles) override;
57  virtual RootFileSharedPtr makeRootFile(std::shared_ptr<InputFile> filePtr) override;
58  bool nextFile();
59  bool previousFile();
60  void rewindFile();
61 
62  int remainingEvents() const;
63  int remainingLuminosityBlocks() const;
64 
66  bool firstFile_;
68  std::vector<ProcessHistoryID> orderedProcessHistoryIDs_;
69 
70  unsigned int nStreams_;
71  std::shared_ptr<EventSkipperByID> eventSkipperByID_;
76  unsigned int treeCacheSize_;
80  std::shared_ptr<DuplicateChecker> duplicateChecker_;
85  }; // class RootPrimaryFileSequence
86 }
87 #endif
InputSource::ItemType getNextItemType(RunNumber_t &run, LuminosityBlockNumber_t &lumi, EventNumber_t &event)
virtual void initFile_(bool skipBadFiles) override
ProcessingController::ForwardState forwardState() const
RootPrimaryFileSequence & operator=(RootPrimaryFileSequence const &)=delete
tuple lumi
Definition: fjr2json.py:35
unsigned long long EventNumber_t
std::shared_ptr< DuplicateChecker > duplicateChecker_
static void fillDescription(ParameterSetDescription &desc)
std::unique_ptr< FileBlock > readFile_()
RootPrimaryFileSequence(ParameterSet const &pset, PoolSource &input, InputFileCatalog const &catalog, unsigned int nStreams)
unsigned int LuminosityBlockNumber_t
static std::string const input
Definition: EdmProvDump.cc:43
std::shared_ptr< EventSkipperByID > eventSkipperByID_
ProcessingController::ReverseState reverseState() const
std::shared_ptr< RootFile > RootFileSharedPtr
bool goToEvent(EventID const &eventID)
virtual RootFileSharedPtr makeRootFile(std::shared_ptr< InputFile > filePtr) override
std::vector< ProcessHistoryID > orderedProcessHistoryIDs_
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
std::shared_ptr< RootFile > RootFileSharedPtr
ProductSelectorRules productSelectorRules_
BranchDescription::MatchMode branchesMustMatch_
tuple skipBadFiles
Definition: example_cfg.py:64
unsigned int RunNumber_t