test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EmbeddedRootSource.h
Go to the documentation of this file.
1 #ifndef IOPool_Input_EmbeddedRootSource_h
2 #define IOPool_Input_EmbeddedRootSource_h
3 
4 /*----------------------------------------------------------------------
5 
6 EmbeddedRootSource: This is an InputSource
7 
8 ----------------------------------------------------------------------*/
9 
16 
17 #include <array>
18 #include <memory>
19 #include <string>
20 #include <vector>
21 
22 namespace CLHEP {
23  class HepRandomEngine;
24 }
25 
26 namespace edm {
27 
29  class FileCatalogItem;
30  class RunHelperBase;
31  class RootEmbeddedFileSequence;
32  struct VectorInputSourceDescription;
33 
35  public:
37  virtual ~EmbeddedRootSource();
40 
41  // const accessors
42  bool skipBadFiles() const {return skipBadFiles_;}
43  bool bypassVersionCheck() const {return bypassVersionCheck_;}
44  unsigned int nStreams() const {return nStreams_;}
47  RunHelperBase* runHelper() {return runHelper_.get();}
48 
49  static void fillDescriptions(ConfigurationDescriptions & descriptions);
50 
51  private:
52  virtual void closeFile_();
53  virtual void beginJob() override;
54  virtual void endJob() override;
55  virtual bool readOneEvent(EventPrincipal& cache, size_t& fileNameHash, CLHEP::HepRandomEngine*, EventID const* id) override;
56  virtual void readOneSpecified(EventPrincipal& cache, size_t& fileNameHash, SecondaryEventIDAndFileInfo const& id);
57  virtual void dropUnwantedBranches_(std::vector<std::string> const& wantedBranches);
58 
60 
61  unsigned int nStreams_;
66  std::unique_ptr<RunHelperBase> runHelper_;
67 
70 
71  }; // class EmbeddedRootSource
72 }
73 #endif
ProductRegistry & productRegistryUpdate()
virtual void dropUnwantedBranches_(std::vector< std::string > const &wantedBranches)
ProcessHistoryRegistry & processHistoryRegistryForUpdate()
std::unique_ptr< RunHelperBase > runHelper_
unsigned int nStreams() const
bool bypassVersionCheck() const
RootServiceChecker rootServiceChecker_
RunHelperBase * runHelper()
virtual void readOneSpecified(EventPrincipal &cache, size_t &fileNameHash, SecondaryEventIDAndFileInfo const &id)
virtual void beginJob() override
EmbeddedRootSource(ParameterSet const &pset, VectorInputSourceDescription const &desc)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
virtual bool readOneEvent(EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *id) override
ProductSelectorRules productSelectorRules_
ProductSelectorRules const & productSelectorRules() const
virtual void endJob() override
edm::propagate_const< std::unique_ptr< RootEmbeddedFileSequence > > fileSequence_