GGS(GenericGEANT4Simulation)Software  2.7.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 // ROOT headers
18 #include "TChain.h"
19 #include "TGeoManager.h"
20 
21 // GGS headers
23 #include "montecarlo/dataobjs/GGSTParameters.h"
25 class GGSTRootReader;
26 
40 public:
43 
46 
51  unsigned int GetNFiles() { return _files.size(); }
52 
58  const std::string &GetFileName(unsigned int iFile);
59 
60 private:
61  friend class GGSTRootReader;
62 
63  std::vector<std::string> _files; // Handled files
64  std::vector<TChain *> _chains; // Chains currently opened in the handled files
65  GGSTSimInfo _simInfo;
66  GGSTGeoParams _geoParams;
67  GGSTParameters _genParams;
68  TGeoManager *_geoManager;
69 
70  void _AddFile(const std::string &fileName, bool force = false);
71  void _SortFiles();
72 };
73 
74 #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.
Class for writing parameters into the output Root file.