EventSeedInputData.h
Go to the documentation of this file.
1 /**
2  * @file EventSeedInputData.h
3  * @brief A data object holding enough data to define a event seed
4  * @author Gianluca Petrillo (petrillo@fnal.gov)
5  * @date February 18th, 2015
6  */
7 
8 
9 #ifndef NUTOOLS_RANDOMUTILS_PROVIDERS_EVENTSEEDINPUTDATA_H
10 #define NUTOOLS_RANDOMUTILS_PROVIDERS_EVENTSEEDINPUTDATA_H 1
11 
12 // C/C++ standard libraries
13 #include <cstdint> // std::uint32_t
14 #include <string>
15 
16 
17 namespace rndm {
18  namespace NuRandomServiceHelper {
19 
20  /// Simple data structure with data needed to extract a seed from a event
22  public:
27 
28  /// @{
29  /// @name Public data members
30 
31  RunNumber_t runNumber; ///< run number
32  SubRunNumber_t subRunNumber; ///< subrun number
33  EventNumber_t eventNumber; ///< event number
34  TimeValue_t time; ///< event time
35 
36  bool isData; ///< whether processing real data
37 
38  std::string processName; ///< name of the running process
39  std::string moduleType; ///< name of the class of the running module
40  std::string moduleLabel; ///< label of the running module instance
41 
42  bool isTimeValid; ///< whether timestamp is valid
43  /// @}
44 
45 
46  /// Resets all the fields
47  void clear()
48  {
49  runNumber = 0;
50  subRunNumber = 0;
51  eventNumber = 0;
52  time = 0;
53  isData = false;
54  processName.clear();
55  moduleType.clear();
56  moduleLabel.clear();
57  isTimeValid = false;
58  } // clear()
59 
60  }; // class EventSeedInputData
61  } // namespace NuRandomServiceHelper
62 } // namespace rndm
63 
64 
65 #endif // NUTOOLS_RANDOMUTILS_PROVIDERS_EVENTSEEDINPUTDATA_H
bool isData
whether processing real data
std::string moduleType
name of the class of the running module
std::string string
Definition: nybbler.cc:12
Simple data structure with data needed to extract a seed from a event.
std::string processName
name of the running process
unsigned int uint32_t
Definition: stdint.h:126
unsigned __int64 uint64_t
Definition: stdint.h:136
std::string moduleLabel
label of the running module instance