|
|
|||
File indexing completed on 2026-04-05 07:49:54
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 /// \file HepMCG4AsciiReader.hh 0027 /// \brief Definition of the HepMCG4AsciiReader class 0028 0029 #ifndef HEPMC_G4_ASCII_READER_H 0030 #define HEPMC_G4_ASCII_READER_H 0031 0032 #include "HepMC/IO_GenEvent.h" 0033 #include "HepMCG4Interface.hh" 0034 0035 class HepMCG4AsciiReaderMessenger; 0036 0037 class HepMCG4AsciiReader : public HepMCG4Interface 0038 { 0039 protected: 0040 G4String filename; 0041 HepMC::IO_GenEvent* asciiInput; 0042 0043 G4int verbose; 0044 HepMCG4AsciiReaderMessenger* messenger; 0045 0046 virtual HepMC::GenEvent* GenerateHepMCEvent(); 0047 0048 public: 0049 HepMCG4AsciiReader(); 0050 ~HepMCG4AsciiReader(); 0051 0052 // set/get methods 0053 void SetFileName(G4String name); 0054 G4String GetFileName() const; 0055 0056 void SetVerboseLevel(G4int i); 0057 G4int GetVerboseLevel() const; 0058 0059 // methods... 0060 void Initialize(); 0061 }; 0062 0063 // ==================================================================== 0064 // inline functions 0065 // ==================================================================== 0066 0067 inline void HepMCG4AsciiReader::SetFileName(G4String name) 0068 { 0069 filename = name; 0070 } 0071 0072 inline G4String HepMCG4AsciiReader::GetFileName() const 0073 { 0074 return filename; 0075 } 0076 0077 inline void HepMCG4AsciiReader::SetVerboseLevel(G4int i) 0078 { 0079 verbose = i; 0080 } 0081 0082 inline G4int HepMCG4AsciiReader::GetVerboseLevel() const 0083 { 0084 return verbose; 0085 } 0086 0087 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|