All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TestGeneratedEventTimestamp Class Reference
Inheritance diagram for TestGeneratedEventTimestamp:

Public Member Functions

 TestGeneratedEventTimestamp (fhicl::ParameterSet const &pset)
 

Private Member Functions

void analyze (art::Event const &e) override
 

Private Attributes

CLHEP::HepRandomEngine & fEngine
 
CLHEP::HepRandomEngine & fAuxEngine
 

Detailed Description

Definition at line 25 of file TestGeneratedEventTimestamp_module.cc.

Constructor & Destructor Documentation

TestGeneratedEventTimestamp::TestGeneratedEventTimestamp ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 38 of file TestGeneratedEventTimestamp_module.cc.

39  : EDAnalyzer(pset)
40  // create two random engines; obtain the random seed from NuRandomService,
41  // unless overridden in configuration with key "Seed" and "AuxSeed"
42  , fEngine(art::ServiceHandle<rndm::NuRandomService>{}->createEngine(*this, pset, "Seed"))

Member Function Documentation

void TestGeneratedEventTimestamp::analyze ( art::Event const &  e)
overrideprivate

Definition at line 48 of file TestGeneratedEventTimestamp_module.cc.

49 {
50  mf::LogInfo("TestGeneratedEventTimestamp")
51  << "Event time stamp: " << event.time().value()
52  << "\nRandom seeds: " << fEngine.getSeed() << " (main), "
53  << fAuxEngine.getSeed() << " (aux)";
54  }

Member Data Documentation

CLHEP::HepRandomEngine& TestGeneratedEventTimestamp::fAuxEngine
private

Definition at line 32 of file TestGeneratedEventTimestamp_module.cc.

CLHEP::HepRandomEngine& TestGeneratedEventTimestamp::fEngine
private

Definition at line 31 of file TestGeneratedEventTimestamp_module.cc.


The documentation for this class was generated from the following file: