CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RootSecondaryFileSequence.h
Go to the documentation of this file.
1 #ifndef IOPool_Input_RootSecondaryFileSequence_h
2 #define IOPool_Input_RootSecondaryFileSequence_h
3 
4 /*----------------------------------------------------------------------
5 
6 RootSecondaryFileSequence: This is an InputSource
7 
8 ----------------------------------------------------------------------*/
9 
10 #include "RootInputFileSequence.h"
14 
15 #include <memory>
16 #include <set>
17 #include <string>
18 #include <vector>
19 
20 namespace edm {
21 
22  class BranchID;
23  class FileCatalogItem;
24  class InputFileCatalog;
26  class PoolSource;
27  class RootFile;
28 
30  public:
31  explicit RootSecondaryFileSequence(ParameterSet const& pset,
34  unsigned int nStreams);
36 
37  RootSecondaryFileSequence(RootSecondaryFileSequence const&) = delete; // Disallow copying and moving
38  RootSecondaryFileSequence& operator=(RootSecondaryFileSequence const&) = delete; // Disallow copying and moving
39 
40  typedef std::shared_ptr<RootFile> RootFileSharedPtr;
41  virtual void closeFile_() override;
42  void endJob();
43  static void fillDescription(ParameterSetDescription & desc);
44  void initAssociationsFromSecondary(std::set<BranchID> const&);
45  private:
46  virtual void initFile_(bool skipBadFiles) override;
47  virtual RootFileSharedPtr makeRootFile(std::shared_ptr<InputFile> filePtr) override;
48 
50  bool firstFile_;
51  std::vector<BranchID> associationsFromSecondary_;
52  std::vector<ProcessHistoryID> orderedProcessHistoryIDs_;
53 
54  unsigned int nStreams_;
63  }; // class RootSecondaryFileSequence
64 }
65 #endif
void initAssociationsFromSecondary(std::set< BranchID > const &)
RootSecondaryFileSequence(ParameterSet const &pset, PoolSource &input, InputFileCatalog const &catalog, unsigned int nStreams)
std::vector< BranchID > associationsFromSecondary_
static std::string const input
Definition: EdmProvDump.cc:43
std::shared_ptr< RootFile > RootFileSharedPtr
std::shared_ptr< RootFile > RootFileSharedPtr
virtual void initFile_(bool skipBadFiles) override
virtual RootFileSharedPtr makeRootFile(std::shared_ptr< InputFile > filePtr) override
static void fillDescription(ParameterSetDescription &desc)
RootSecondaryFileSequence & operator=(RootSecondaryFileSequence const &)=delete
tuple skipBadFiles
Definition: example_cfg.py:64
unsigned int RunNumber_t
std::vector< ProcessHistoryID > orderedProcessHistoryIDs_