Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-01 09:10:46

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 
0028 #ifndef G4ATTVALUE_HH
0029 #define G4ATTVALUE_HH
0030 
0031 #include "globals.hh"
0032 
0033 // Class Description:
0034 //
0035 // @class G4AttValue
0036 //
0037 // @brief This class represents a HepRep-style Attribute Value.
0038 // G4AttValues can be attached to a Trajectory, Trajectory Point or Sensitive
0039 // Detector Hit.  These attributes are then made available to the end user
0040 // in interactive visualization systems (such as WIRED).
0041 // The G4AttValue is further defined in a G4AttDef object.
0042 // The association between the G4AttValue and the G4AttDef object is
0043 // made through the data member "name".
0044 //
0045 // @author M.Frailis 
0046 // @author R.Giannitrapani
0047 // @author J.Perl
0048 // Class Description - End:
0049 
0050 
0051   class G4AttValue {
0052     
0053   public:
0054     G4AttValue(const G4String& name,
0055                const G4String& value,
0056                const G4String& showLabel): 
0057       m_name(name),m_value(value),
0058       m_showLabel(showLabel){};
0059     G4AttValue()= default;
0060     ~G4AttValue()= default;
0061 
0062     const G4String& GetName()const{return m_name;};
0063     const G4String& GetValue()const{return m_value;};
0064     const G4String& GetShowLabel()const{return m_showLabel;};
0065 
0066     void SetName(const G4String& name){m_name = name;};
0067     void SetValue(const G4String& val){m_value = val;};
0068     void SetShowLabel(const G4String& lab){m_showLabel = lab;};
0069 
0070   private:
0071     /// The name of the attribute 
0072     G4String m_name;
0073     /// The value of the attribute
0074     G4String m_value;
0075     /// The bitmap for the label display
0076     G4String m_showLabel;
0077   };
0078 
0079 #endif //G4ATTVALUE_H