Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4DCIOcatalog.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// File: G4DCIOcatalog.hh
27//
28// History:
29// '01.09.12 Youhei Morita Initial creation
30
31#ifndef DCIO_CATALOG_HH
32#define DCIO_CATALOG_HH 1
33
34#include <map>
35#include "G4Types.hh"
37
38class G4VDCIOentry;
39
40typedef std::map<std::string, G4VDCIOentry*, std::less<std::string> > DCIOmap;
41
42typedef std::map<std::string, G4VPDigitsCollectionIO*, std::less<std::string> > DCIOstore;
43
44// Class Description:
45// Catalog for the I/O manager of digits collection for each detector.
46
48{
49 public: // With description
51 // Constructor
52
53 virtual ~G4DCIOcatalog() {};
54 // Destructor
55
56 public: // With description
58 // Construct G4DCIOcatalog and returns the pointer
59
60 void SetVerboseLevel(int v) { m_verbose = v; };
61 // Set verbose level.
62
64 // Register I/O manager entry
65
67 // Register I/O manager
68
69 G4VDCIOentry* GetEntry(std::string name);
70 // Returns the I/O manager entry
71
72 G4VPDigitsCollectionIO* GetDCIOmanager(std::string name);
73 // Returns the registered I/O manager entry
74
75 void PrintEntries();
76 // Prints the list of I/O manager entries
77
78 std::string CurrentDCIOmanager();
79 // Returns the list of I/O managers
80
81 void PrintDCIOmanager();
82 // Prints the list of I/O managers
83
84 size_t NumberOfDCIOmanager() { return theStore.size(); };
85 // Returns the number of registered I/O managers.
86
88 // Returns the n-th registered I/O manager entry
89
90 private:
91 int m_verbose;
92 static G4DCIOcatalog* f_thePointer;
93 DCIOmap theCatalog;
94 DCIOstore theStore;
95
96}; // End of class G4DCIOcatalog
97
98#endif
99
std::map< std::string, G4VPDigitsCollectionIO *, std::less< std::string > > DCIOstore
std::map< std::string, G4VDCIOentry *, std::less< std::string > > DCIOmap
void PrintDCIOmanager()
void RegisterEntry(G4VDCIOentry *d)
void SetVerboseLevel(int v)
virtual ~G4DCIOcatalog()
G4VDCIOentry * GetEntry(std::string name)
std::string CurrentDCIOmanager()
static G4DCIOcatalog * GetDCIOcatalog()
void RegisterDCIOmanager(G4VPDigitsCollectionIO *d)
G4VPDigitsCollectionIO * GetDCIOmanager(std::string name)
size_t NumberOfDCIOmanager()