Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-05 08:52:20

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 //
0011 //==========================================================================
0012 #ifndef DDG4_EVENTPARAMETERS_H
0013 #define DDG4_EVENTPARAMETERS_H
0014 
0015 #include <DDG4/ExtensionParameters.h>
0016 
0017 /// Namespace for the AIDA detector description toolkit
0018 namespace dd4hep  {
0019 
0020   /// Namespace for the Geant4 based simulation part of the AIDA detector description toolkit
0021   namespace sim  {
0022 
0023     /// Event extension to pass input event data to output event
0024     /**
0025      *  \version 1.0
0026      *  \ingroup DD4HEP_SIMULATION
0027      */
0028     class EventParameters : public ExtensionParameters {
0029     protected:
0030       int m_runNumber = -1;
0031       int m_eventNumber = -1;
0032 
0033     public:
0034       /// Set the event parameters
0035       void setRunNumber(int runNumber);
0036       void setEventNumber(int eventNumber);
0037       /// Get the run number
0038       int runNumber() const { return m_runNumber; }
0039       /// Get the event number
0040       int eventNumber() const { return m_eventNumber; }
0041       /// Copy the parameters from source
0042       template <class T> void ingestParameters(T const& source);
0043       /// Put parameters into destination
0044       template <class T> void extractParameters(T& destination);
0045     };
0046 
0047   }     /* End namespace sim   */
0048 }       /* End namespace dd4hep */
0049 #endif // DDG4_EVENTPARAMETERS_H