LDMX Software
LHEPrimaryGenerator.h
Go to the documentation of this file.
1
8#ifndef SIMCORE_LHEPRIMARYGENERATOR_H
9#define SIMCORE_LHEPRIMARYGENERATOR_H
10
11// LDMX
14
15class G4Event;
16
17namespace simcore {
18namespace generators {
19
25 public:
30 LHEPrimaryGenerator(const std::string& name,
31 const framework::config::Parameters& parameters);
32
36 virtual ~LHEPrimaryGenerator();
37
42 void GeneratePrimaryVertex(G4Event* anEvent) override;
43
44 void RecordConfig(const std::string& id, ldmx::RunHeader& rh) override;
45
46 private:
52 std::string file_path_;
53};
54
55} // namespace generators
56} // namespace simcore
57
58#endif // SIMCORE_LHEPRIMARYGENERATOR_H
Class for reading LHE event data.
Header file for PrimaryGenerator.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
Run-specific configuration and data stored in its own output TTree alongside the event TTree in the o...
Definition RunHeader.h:54
Interface that defines a simulation primary generator.
Generates a Geant4 event from an LHEEvent.
simcore::lhe::LHEReader * reader_
The LHE reader with the event data.
void RecordConfig(const std::string &id, ldmx::RunHeader &rh) override
Record the configuration of the primary generator into the run header.
void GeneratePrimaryVertex(G4Event *anEvent) override
Generate vertices in the Geant4 event.
Reads LHE event data into an LHEEvent object.
Definition LHEReader.h:22