Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
@@ -23,57 +23,56 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// File: G4VPDigitsCollectionIO.hh
// G4VPDigitsCollectionIO
//
// History:
// '01.08.16 Youhei Morita Initial creation
// Class Description:
//
// Abstract base class for storing and retrieving digit collections.
#ifndef V_P_DIGITS_COLLECTION_I_O_HH
#define V_P_DIGITS_COLLECTION_I_O_HH 1
// Author: Youhei Morita, 16.08.2001
// --------------------------------------------------------------------
#ifndef G4VPDIGITSCOLLECTIONIO_HH
#define G4VPDIGITSCOLLECTIONIO_HH 1
#include "G4VDigiCollection.hh"
// Class Description:
// Abstract base class for storing and retrieving digit collections
class G4VPDigitsCollectionIO
{
public: // With description
G4VPDigitsCollectionIO( std::string detName, std::string colName );
public:
G4VPDigitsCollectionIO(const G4String& detName, const G4String& colName);
// Constructor
virtual ~G4VPDigitsCollectionIO() {};
virtual ~G4VPDigitsCollectionIO() {}
// Destructor
public: // With description
virtual G4bool Store(const G4VDigiCollection*) =0;
virtual G4bool Store(const G4VDigiCollection*) = 0;
// Pure virtual method for storing the digit collection.
// Each persistency package should implement a concrete method
// with this signature.
// with this signature
virtual G4bool Retrieve(G4VDigiCollection*&) =0;
virtual G4bool Retrieve(G4VDigiCollection*&) = 0;
// Pure virtual method for retrieving the digit collection.
// Each persistency package should implement a concrete method
// with this signature.
// with this signature
G4bool operator== (const G4VPDigitsCollectionIO& right) const;
// virtual operator for comparing digit collections with names.
G4bool operator==(const G4VPDigitsCollectionIO& right) const;
// Virtual operator for comparing digit collections with names
std::string DMname() { return f_detName; };
// Returns the digitizer module name.
const G4String& DMname() { return f_detName; }
// Returns the digitizer module name
std::string CollectionName() { return f_colName; };
// Returns the digit collection name.
const G4String& CollectionName() { return f_colName; }
// Returns the digit collection name
void SetVerboseLevel(int v) { m_verbose = v; };
void SetVerboseLevel(G4int v) { m_verbose = v; }
// Sets the verbose level
protected:
G4int m_verbose;
std::string f_detName;
std::string f_colName;
protected:
}; // End of class G4VPDigitsCollectionIO
G4int m_verbose = 0;
G4String f_detName;
G4String f_colName;
};
#endif