DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
EventParameters.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 //
11 //==========================================================================
12 #ifndef DDG4_EVENTPARAMETERS_H
13 #define DDG4_EVENTPARAMETERS_H
14 
16 
18 namespace dd4hep {
19 
21  namespace sim {
22 
24 
29  protected:
30  int m_runNumber = -1;
31  int m_eventNumber = -1;
32 
33  public:
35  void setRunNumber(int runNumber);
36  void setEventNumber(int eventNumber);
38  int runNumber() const { return m_runNumber; }
40  int eventNumber() const { return m_eventNumber; }
42  template <class T> void ingestParameters(T const& source);
44  template <class T> void extractParameters(T& destination);
45  };
46 
47  } /* End namespace sim */
48 } /* End namespace dd4hep */
49 #endif // DDG4_EVENTPARAMETERS_H
ExtensionParameters.h
dd4hep::sim::EventParameters::setRunNumber
void setRunNumber(int runNumber)
Set the event parameters.
Definition: EventParameters.cpp:20
dd4hep::sim::EventParameters::setEventNumber
void setEventNumber(int eventNumber)
Definition: EventParameters.cpp:23
dd4hep::sim::ExtensionParameters
Extension to pass input data to output data.
Definition: ExtensionParameters.h:31
dd4hep::sim::EventParameters::m_eventNumber
int m_eventNumber
Definition: EventParameters.h:31
dd4hep::sim::EventParameters::m_runNumber
int m_runNumber
Definition: EventParameters.h:30
dd4hep::sim::EventParameters::ingestParameters
void ingestParameters(T const &source)
Copy the parameters from source.
Definition: EDM4hepFileReader.cpp:49
dd4hep::sim::EventParameters::extractParameters
void extractParameters(T &destination)
Put parameters into destination.
Definition: Geant4Output2LCIO.cpp:46
dd4hep::sim::EventParameters
Event extension to pass input event data to output event.
Definition: EventParameters.h:28
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::sim::EventParameters::eventNumber
int eventNumber() const
Get the event number.
Definition: EventParameters.h:40
dd4hep::sim::EventParameters::runNumber
int runNumber() const
Get the run number.
Definition: EventParameters.h:38