COHElHadronicSystemGenerator.cxx
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2019, The GENIE Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5  or see $GENIE/LICENSE
6 
7  Author: Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
8  University of Liverpool & STFC Rutherford Appleton Lab
9 
10  For the class documentation see the corresponding header file.
11 
12  Important revisions after version 2.0.0 :
13  @ Nov 29, 2007 - CA
14  Was first added in 2.0.1
15  @ Feb 09, 2009 - CA
16  Moved into the new Coherent package from its previous location (EVGModules
17  package)
18 
19 */
20 //____________________________________________________________________________
21 
22 #include <cstdlib>
23 
29 
30 using namespace genie;
31 
32 //___________________________________________________________________________
34 HadronicSystemGenerator("genie::COHElHadronicSystemGenerator")
35 {
36 
37 }
38 //___________________________________________________________________________
40 HadronicSystemGenerator("genie::COHElHadronicSystemGenerator", config)
41 {
42 
43 }
44 //___________________________________________________________________________
46 {
47 
48 }
49 //___________________________________________________________________________
51 {
52 // This method generates the final state hadronic system in COH elastic events
53 //
54  int imom = evrec->TargetNucleusPosition();
55  int pdgc = evrec->Particle(imom)->Pdg();
56 
57  TLorentzVector p4nuc = this->Hadronic4pLAB(evrec);
58  TLorentzVector v4(0.,0.,0.,0.);
59 
60  evrec->AddParticle(pdgc,kIStStableFinalState, imom,-1,-1,-1, p4nuc, v4);
61 }
62 //___________________________________________________________________________
63 
virtual GHepParticle * Particle(int position) const
Definition: GHepRecord.cxx:148
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:26
TLorentzVector Hadronic4pLAB(GHepRecord *event_rec) const
void ProcessEventRecord(GHepRecord *event_rec) const
int Pdg(void) const
Definition: GHepParticle.h:64
static Config * config
Definition: config.cpp:1054
virtual void AddParticle(const GHepParticle &p)
Definition: GHepRecord.cxx:535
Abstract class. Is used to pass some commonly recurring methods to all concrete implementations of th...
GENIE&#39;s GHEP MC event record.
Definition: GHepRecord.h:46
virtual int TargetNucleusPosition(void) const
Definition: GHepRecord.cxx:406