GENIEGenerator
Loading...
Searching...
No Matches
DISPrimaryLeptonGenerator.cxx
Go to the documentation of this file.
1//____________________________________________________________________________
2/*
3 Copyright (c) 2003-2025, The GENIE Collaboration
4 For the full text of the license visit http://copyright.genie-mc.org
5
6 Costas Andreopoulos <c.andreopoulos \at cern.ch>
7 University of Liverpool
8*/
9//____________________________________________________________________________
10
11#include <TMath.h>
12
19
20using namespace genie;
21
22//___________________________________________________________________________
24PrimaryLeptonGenerator("genie::DISPrimaryLeptonGenerator")
25{
26
27}
28//___________________________________________________________________________
30PrimaryLeptonGenerator("genie::DISPrimaryLeptonGenerator", config)
31{
32
33}
34//___________________________________________________________________________
39//___________________________________________________________________________
41{
42// This method generates the final state primary lepton in DIS events
43
44 // no modification is required to the std implementation
46
48 LOG("LeptonicVertex", pERROR)
49 << "*** Selected kinematics lead to off mass shell lepton!";
50 evrec->EventFlags()->SetBitNumber(kLeptoGenErr, true);
52 exception.SetReason("E<m for final state lepton");
53 exception.SwitchOnFastForward();
54 throw exception;
55 }
56}
57//___________________________________________________________________________
#define pERROR
Definition Messenger.h:59
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition Messenger.h:96
void ProcessEventRecord(GHepRecord *event_rec) const
bool IsOffMassShell(void) const
GENIE's GHEP MC event record.
Definition GHepRecord.h:45
virtual TBits * EventFlags(void) const
Definition GHepRecord.h:117
virtual GHepParticle * FinalStatePrimaryLepton(void) const
virtual void ProcessEventRecord(GHepRecord *evrec) const
An exception thrown by EventRecordVisitorI when the normal processing sequence has to be disrupted (f...
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25
@ kLeptoGenErr
Definition GHepFlags.h:33