// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * 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. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // // $Id: G4VDigi.hh,v 1.4 2006/06/29 18:06:18 gunter Exp $ // GEANT4 tag $Name: geant4-09-04-beta-01 $ // #ifndef G4VDigi_h #define G4VDigi_h 1 #include "globals.hh" #include #include class G4AttDef; class G4AttValue; // class description: // // This is the base class of digi object. The user should derive this // base class to make his/her own digi class. Two virtual method Draw() // and Print() can be implemented if the user wants these functionarities. // If a concrete digi class is used as a transient class, G4Allocator // must be used. class G4VDigi { public: G4VDigi(); virtual ~G4VDigi(); G4int operator==(const G4VDigi &right) const; virtual void Draw(); virtual void Print(); virtual const std::map* GetAttDefs() const { return 0; } // If implemented by a derived class, returns a pointer to a map // of attribute definitions for the attribute values below. The // user must test the validity of this pointer. See // G4Trajectory for an example of a concrete implementation of // this method. virtual std::vector* CreateAttValues() const { return 0; } // If implemented by a derived class, returns a pointer to a // list of attribute values suitable, e.g., for picking. Each // must refer to an attribute definition in the above map; its // name is the key. The user must test the validity of this // pointer (it must be non-zero and conform to the G4AttDefs, // which may be checked with G4AttCheck) and delete the list // after use. See G4Trajectory for an example of a concrete // implementation of this method and // G4VTrajectory::ShowTrajectory for an example of its use. }; #endif