// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: G4PVDigitsCollection.ddl,v 1.6.4.1 2001/06/28 19:11:23 gunter Exp $ // GEANT4 tag $Name: $ // // Class Description: // This is a persistent version of container class which stores // the associations to the digits of one sensitive detector. // User should inherit his/her own persistent digits collection // from this class to store user derived digits. // At the end of each event, user sensitive detector should // create a new collection with a detector name and a collection // name. Comparison operator and GetName(), GetSDName() are // provided. // #ifndef G4PVDigitsCollection_h #define G4PVDigitsCollection_h 1 #include "G4Pglobals.hh" #include "G4PersistentTypes.hh" #include "G4PersistentSchema.hh" #include "HepODBMS/odbms/HepODBMS.h" class G4PVDigitsCollection : public HepPersObj { public: // with description G4PVDigitsCollection(G4String detName,G4String colNam); // Constructor. ~G4PVDigitsCollection(); // Destructor. int operator==(const G4PVDigitsCollection &right) const; // Comparison with detName and colNam. protected: // Persistent Collection name G4PString pcollectionName; G4PString pDMname; public: // with description inline G4String GetName() { return (G4String) pcollectionName; } // returns the collection name. inline G4String GetDMname() { return (G4String) pDMname; } // returns the detector name. }; #endif