GENIEGenerator
Loading...
Searching...
No Matches
PrimaryLeptonGenerator.h
Go to the documentation of this file.
1//____________________________________________________________________________
2/*!
3
4\class genie::PrimaryLeptonGenerator
5
6\brief Abstract class. Is used to pass common implementation to concrete
7 implementations of the EventRecordVisitorI interface generating the
8 primary lepton for a specific processes (QEL,DIS,RES,IMD,...)
9
10\author Costas Andreopoulos <c.andreopoulos \at cern.ch>
11 University of Liverpool
12
13\created October 03, 2004
14
15\cpright Copyright (c) 2003-2025, The GENIE Collaboration
16 For the full text of the license visit http://copyright.genie-mc.org
17*/
18//____________________________________________________________________________
19
20#ifndef _PRIMARY_LEPTON_GENERATOR_H_
21#define _PRIMARY_LEPTON_GENERATOR_H_
22
23class TVector3;
24class TLorentzVector;
25
27
28namespace genie {
29
31
32public :
33
34 //-- Standard EventRecordVisitorI interface implementation
35 virtual void ProcessEventRecord(GHepRecord * evrec) const;
36
37 //-- Common methods for all concrete PrimaryLeptonGenerator-type
38 // EventRecordVisitors
39 virtual void SetPolarization (GHepRecord * ev) const;
40 virtual TVector3 NucRestFrame2Lab (GHepRecord * ev) const;
41 virtual void AddToEventRecord (
42 GHepRecord * ev, int pdgc, const TLorentzVector & p4) const;
43
44 //-- override the Algorithm::Configure methods to load configuration
45 // data to private data members
46 void Configure (const Registry & config);
47 void Configure (string config);
48
49protected:
50
51 //-- Abstract class - Can only be instantiated by its children.
53 PrimaryLeptonGenerator(string name);
54 PrimaryLeptonGenerator(string name, string config);
56
57 void LoadConfig(void);
58
60};
61
62} // genie namespace
63
64#endif // _PRIMARY_LEPTON_GENERATOR_H_
GENIE's GHEP MC event record.
Definition GHepRecord.h:45
virtual void ProcessEventRecord(GHepRecord *evrec) const
void Configure(const Registry &config)
virtual TVector3 NucRestFrame2Lab(GHepRecord *ev) const
virtual void SetPolarization(GHepRecord *ev) const
virtual void AddToEventRecord(GHepRecord *ev, int pdgc, const TLorentzVector &p4) const
A registry. Provides the container for algorithm configuration parameters.
Definition Registry.h:65
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25