Auxiliary base class for list of file names.
More...
#include <JMultipleFileScanner.hh>
Auxiliary base class for list of file names.
Definition at line 49 of file JMultipleFileScanner.hh.
◆ JMultipleFileScanner_t() [1/4]
JSUPPORT::JMultipleFileScanner_t::JMultipleFileScanner_t |
( |
| ) |
|
|
inline |
◆ JMultipleFileScanner_t() [2/4]
JSUPPORT::JMultipleFileScanner_t::JMultipleFileScanner_t |
( |
const std::string & |
file_name | ) |
|
|
inline |
◆ JMultipleFileScanner_t() [3/4]
JSUPPORT::JMultipleFileScanner_t::JMultipleFileScanner_t |
( |
const std::vector< std::string > & |
file_list | ) |
|
|
inline |
◆ JMultipleFileScanner_t() [4/4]
JSUPPORT::JMultipleFileScanner_t::JMultipleFileScanner_t |
( |
const TChain & |
chain | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 84 of file JMultipleFileScanner.hh.
86 const TObjArray*
array = chain.GetListOfFiles();
88 for (Int_t i = 0; i !=
array->GetEntries(); ++i) {
90 const TChainElement* p = (
const TChainElement*)
array->At(i);
92 this->push_back(p->GetTitle());
◆ getFilelist() [1/2]
Get file list.
- Returns
- list of file names
Definition at line 102 of file JMultipleFileScanner.hh.
Auxiliary base class for list of file names.
◆ getFilelist() [2/2]
◆ setFilelist()
◆ addFilelist()
Add file list.
- Parameters
-
file_list | list of file names |
Definition at line 135 of file JMultipleFileScanner.hh.
137 for (const_iterator i = file_list.begin(); i != file_list.end(); ++i) {
◆ operator>>
Read file list from input.
- Parameters
-
in | input stream |
object | file list |
- Returns
- input stream
Definition at line 150 of file JMultipleFileScanner.hh.
155 for (
string buffer; in >> buffer; ) {
159 ifstream
ls(buffer.c_str());
170 catch(
const exception&) {
171 object.addFilelist(buffer);
std::string getFilenameExtension(const std::string &file_name)
Get file name extension, i.e. part after last JEEP::FILENAME_SEPARATOR if any.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static const char *const FILE_LIST_FORMAT
file name extension ASCII format with list of file names
static JGlob getFilenames
Function object to get list of files for given pattern.
Auxiliary data structure to list files in directory.
◆ operator<<
Write file list to output.
- Parameters
-
out | output stream |
object | file list |
- Returns
- output stream
Definition at line 187 of file JMultipleFileScanner.hh.
189 for (const_iterator i =
object.begin(); i !=
object.end(); ++i) {
190 out << *i << std::endl;
The documentation for this struct was generated from the following file: