SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
LcioFileNamer.hh
Go to the documentation of this file.
1 #ifndef SLIC_LCIOFILENAMER_HH_
2 #define SLIC_LCIOFILENAMER_HH_ 1
3 
4 // SLIC
5 #include "Module.hh"
6 
7 // Geant4
8 #include "G4ThreeVector.hh"
9 
10 // STL
11 #include <string>
12 #include <vector>
13 
14 namespace slic {
15 
20 class LcioFileNamer: public Module {
21 
22  public:
23 
27  LcioFileNamer();
28 
29  virtual ~LcioFileNamer();
30 
31  public:
32 
38  std::string makeFileName(std::vector<std::string> fields);
39 
40  private:
41 
46  std::string getFieldValue(std::string field);
47 
52  std::string makeDefaultFileName();
53 
58  static std::string makeEventName();
59 
64  static std::string makeFileBasedName();
65 
70  static std::string makeGPSName();
71 
76  static std::string makeGunName();
77 
82  static std::string makeRunNumberString();
83 
88  static std::string makeEventNumberString();
89 
94  static std::string getGeant4VersionString();
95 
96  private:
97 
98  static std::string m_sep;
99  std::vector<std::string> m_defaultFields;
100 };
101 }
102 
103 #endif
Automatically name LCIO output files according to input settings.
static std::string m_sep
static std::string getGeant4VersionString()
static std::string makeGunName()
std::string getFieldValue(std::string field)
static std::string makeGPSName()
static std::string makeFileBasedName()
virtual ~LcioFileNamer()
std::vector< std::string > m_defaultFields
static std::string makeEventName()
static std::string makeEventNumberString()
std::string makeFileName(std::vector< std::string > fields)
std::string makeDefaultFileName()
static std::string makeRunNumberString()
Base class for slic code modules that provides common functionality, such as logging to an output str...
Definition: Module.hh:25