All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SAMQuerySource.h
Go to the documentation of this file.
2 
3 namespace ana
4 {
5  /// \brief File source based on a SAM query or dataset (definition)
6  ///
7  /// Locates the files on bluearc or pnfs (bluearc preferred).
9  {
10  public:
11  /// \param query May be a SAM dataset name or a SAM query string
12  SAMQuerySource(const std::string& query, int stride = -1, int offset = -1);
13  virtual ~SAMQuerySource();
14  protected:
15  std::vector<std::string> LocationsForSAMQuery(const std::string& str,
16  int stride, int offset);
17  /// Take filenames, return locations suitable for TFile::Open()
18  std::vector<std::string> LocateSAMFiles(const std::vector<std::string>& fnames);
19 
20  std::string IFDHBaseURI() const;
21 
22  std::string EnsureDataset(const std::string& query) const;
23  std::string EnsureSnapshot(const std::string& def) const;
24  };
25 }
std::string IFDHBaseURI() const
BEGIN_PROLOG TPC Trig offset(g4 rise time) ProjectToHeight
Definition: CORSIKAGen.fcl:7
process_name opflashCryoW ana
std::string EnsureDataset(const std::string &query) const
File source based on a SAM query or dataset (definition)
Definition: SAMQuerySource.h:8
std::vector< std::string > LocationsForSAMQuery(const std::string &str, int stride, int offset)
SAMQuerySource(const std::string &query, int stride=-1, int offset=-1)
std::string EnsureSnapshot(const std::string &def) const
Simple file source based on an explicit list provided by the user.
std::vector< std::string > LocateSAMFiles(const std::vector< std::string > &fnames)
Take filenames, return locations suitable for TFile::Open()