Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:21:08

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 eventgenerator/HepMC/HepMCEx01/include/HepMCG4AsciiReader.hh
0027 /// \brief Definition of the HepMCG4AsciiReader class
0028 //
0029 //
0030 
0031 #ifndef HEPMC_G4_ASCII_READER_H
0032 #define HEPMC_G4_ASCII_READER_H
0033 
0034 #include "HepMC/IO_GenEvent.h"
0035 #include "HepMCG4Interface.hh"
0036 
0037 class HepMCG4AsciiReaderMessenger;
0038 
0039 class HepMCG4AsciiReader : public HepMCG4Interface
0040 {
0041   protected:
0042     G4String filename;
0043     HepMC::IO_GenEvent* asciiInput;
0044 
0045     G4int verbose;
0046     HepMCG4AsciiReaderMessenger* messenger;
0047 
0048     virtual HepMC::GenEvent* GenerateHepMCEvent();
0049 
0050   public:
0051     HepMCG4AsciiReader();
0052     ~HepMCG4AsciiReader();
0053 
0054     // set/get methods
0055     void SetFileName(G4String name);
0056     G4String GetFileName() const;
0057 
0058     void SetVerboseLevel(G4int i);
0059     G4int GetVerboseLevel() const;
0060 
0061     // methods...
0062     void Initialize();
0063 };
0064 
0065 // ====================================================================
0066 // inline functions
0067 // ====================================================================
0068 
0069 inline void HepMCG4AsciiReader::SetFileName(G4String name)
0070 {
0071   filename = name;
0072 }
0073 
0074 inline G4String HepMCG4AsciiReader::GetFileName() const
0075 {
0076   return filename;
0077 }
0078 
0079 inline void HepMCG4AsciiReader::SetVerboseLevel(G4int i)
0080 {
0081   verbose = i;
0082 }
0083 
0084 inline G4int HepMCG4AsciiReader::GetVerboseLevel() const
0085 {
0086   return verbose;
0087 }
0088 
0089 #endif