|
||||
File indexing completed on 2025-01-18 09:14:18
0001 //========================================================================== 0002 // AIDA Detector description implementation 0003 //-------------------------------------------------------------------------- 0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN) 0005 // All rights reserved. 0006 // 0007 // For the licensing terms see $DD4hepINSTALL/LICENSE. 0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS. 0009 // 0010 // Author : M.Frank 0011 // 0012 //========================================================================== 0013 #ifndef DDG4_LCIO_LCIOEVENTREADER_H 0014 #define DDG4_LCIO_LCIOEVENTREADER_H 0015 0016 // Framework include files 0017 #include <DDG4/Geant4InputAction.h> 0018 0019 // Forward declarations 0020 namespace EVENT { class LCCollection; } 0021 0022 /// Namespace for the AIDA detector description toolkit 0023 namespace dd4hep { 0024 0025 /// Namespace for the Geant4 based simulation part of the AIDA detector description toolkit 0026 namespace sim { 0027 0028 /// Base class to read lcio files. 0029 /** 0030 * \author P.Kostka (main author) 0031 * \author M.Frank (code reshuffeling into new DDG4 scheme) 0032 * \version 1.0 0033 * \ingroup DD4HEP_SIMULATION 0034 */ 0035 class LCIOEventReader : public Geant4EventReader { 0036 public: 0037 /// Initializing constructor 0038 LCIOEventReader(const std::string& nam); 0039 /// Default destructor 0040 virtual ~LCIOEventReader(); 0041 0042 /// Read an event and fill a vector of MCParticles. 0043 virtual EventReaderStatus readParticles(int event_number, 0044 Vertices& vertices, 0045 std::vector<Particle*>& particles); 0046 /// Read an event and return a LCCollectionVec of MCParticles. 0047 virtual EventReaderStatus readParticleCollection(int event_number, 0048 EVENT::LCCollection** particles) = 0; 0049 }; 0050 0051 } /* End namespace sim */ 0052 } /* End namespace dd4hep */ 0053 #endif // DDG4_LCIO_LCIOEVENTREADER_H
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |