GGS(GenericGEANT4Simulation)Software  2.6.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSTFilesHandler.h
Go to the documentation of this file.
1 /*
2  * GGSTFilesHandler.h
3  *
4  * Created on: 31 Jul 2014
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSTFILESHANDLER_H_
11 #define GGSTFILESHANDLER_H_
12 
13 // C++ headers
14 #include <string>
15 #include <vector>
16 
17 
18 // ROOT headers
19 #include "TChain.h"
20 
21 // GGS headers
24 class GGSTRootReader;
25 
26 
40 public:
41 
44 
47 
52  unsigned int GetNFiles() {
53  return _files.size();
54  }
55 
61  const std::string& GetFileName(unsigned int iFile);
62 
63 private:
64 
65  friend class GGSTRootReader;
66 
67  std::vector<std::string> _files; // Handled files
68  std::vector<TChain*> _chains; // Chains currently opened in the handled files
69  GGSTSimInfo _simInfo;
70  GGSTGeoParams _geoParams;
71 
72  void _AddFile(const std::string &fileName, bool force = false);
73  void _SortFiles();
74 };
75 
76 #endif /* GGSTFILESHANDLER_H_ */
~GGSTFilesHandler()
Destructor.
Class to manage ROOT output readers.
GGSTFilesHandler()
Constructor.
Class to handle group of Root files.
Class for storing the geometry parameters on Root output file.
Definition: GGSTGeoParams.h:18
unsigned int GetNFiles()
The number of files handled by this object.
A class to store simulation informations.
Definition: GGSTSimInfo.h:21
const std::string & GetFileName(unsigned int iFile)
Fetch the name of a handled file.