GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Friends | List of all members
genie::EventRecord Class Reference

Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI objects (event generation modules). All the other important container manipulation methods are defined at the base GHepRecord record. More...

#include <EventRecord.h>

Inheritance diagram for genie::EventRecord:
Inheritance graph
[legend]
Collaboration diagram for genie::EventRecord:
Collaboration graph
[legend]

Public Member Functions

 EventRecord ()
 
 EventRecord (int size)
 
 EventRecord (const EventRecord &record)
 
 ~EventRecord ()
 
void AcceptVisitor (EventRecordVisitorI *visitor)
 
virtual void Copy (const EventRecord &record)
 
virtual void Print (ostream &stream) const
 
- Public Member Functions inherited from genie::GHepRecord
 GHepRecord ()
 
 GHepRecord (int size)
 
 GHepRecord (const GHepRecord &record)
 
 GHepRecord (TRootIOCtor *)
 
virtual ~GHepRecord ()
 
virtual InteractionSummary (void) const
 
virtual void AttachSummary (Interaction *interaction)
 
virtual void AddParticle (const GHepParticle &p)
 
virtual void AddParticle (int pdg, GHepStatus_t ist, int mom1, int mom2, int dau1, int dau2, const TLorentzVector &p, const TLorentzVector &v)
 
virtual void AddParticle (int pdg, GHepStatus_t ist, int mom1, int mom2, int dau1, int dau2, double px, double py, double pz, double E, double x, double y, double z, double t)
 
virtual GHepParticleParticle (int position) const
 
virtual GHepParticleFindParticle (int pdg, GHepStatus_t ist, int start) const
 
virtual int ParticlePosition (int pdg, GHepStatus_t i, int start=0) const
 
virtual int ParticlePosition (GHepParticle *particle, int start=0) const
 
virtual vector< int > * GetStableDescendants (int position) const
 
GEvGenMode_t EventGenerationMode (void) const
 
virtual GHepParticleProbe (void) const
 
virtual GHepParticleTargetNucleus (void) const
 
virtual GHepParticleRemnantNucleus (void) const
 
virtual GHepParticleHitNucleon (void) const
 
virtual GHepParticleHitElectron (void) const
 
virtual GHepParticleFinalStatePrimaryLepton (void) const
 
virtual GHepParticleFinalStateHadronicSystem (void) const
 
virtual int ProbePosition (void) const
 
virtual int TargetNucleusPosition (void) const
 
virtual int RemnantNucleusPosition (void) const
 
virtual int HitNucleonPosition (void) const
 
virtual int HitElectronPosition (void) const
 
virtual int FinalStatePrimaryLeptonPosition (void) const
 
virtual int FinalStateHadronicSystemPosition (void) const
 
virtual unsigned int NEntries (int pdg, GHepStatus_t ist, int start=0) const
 
virtual unsigned int NEntries (int pdg, int start=0) const
 
virtual TBits * EventFlags (void) const
 
virtual TBits * EventMask (void) const
 
virtual bool IsUnphysical (void) const
 
virtual bool Accept (void) const
 
virtual double Weight (void) const
 
virtual double Probability (void) const
 
virtual double XSec (void) const
 
virtual double DiffXSec (void) const
 
virtual KinePhaseSpace_t DiffXSecVars (void) const
 
virtual void SetWeight (double wght)
 
virtual void SetProbability (double prob)
 
virtual void SetXSec (double xsec)
 
virtual void SetDiffXSec (double xsec, KinePhaseSpace_t ps)
 
virtual TLorentzVector * Vertex (void) const
 
virtual void SetVertex (double x, double y, double z, double t)
 
virtual void SetVertex (const TLorentzVector &vtx)
 
virtual void Copy (const GHepRecord &record)
 
virtual void Clear (Option_t *opt="")
 
virtual void ResetRecord (void)
 
virtual void CompactifyDaughterLists (void)
 
virtual void RemoveIntermediateParticles (void)
 
void SetUnphysEventMask (const TBits &mask)
 
void Print (ostream &stream) const
 

Friends

ostream & operator<< (ostream &stream, const EventRecord &event)
 

Additional Inherited Members

- Static Public Member Functions inherited from genie::GHepRecord
static void SetPrintLevel (int print_level)
 
static int GetPrintLevel ()
 
- Protected Member Functions inherited from genie::GHepRecord
void InitRecord (void)
 
void CleanRecord (void)
 
virtual void UpdateDaughterLists (void)
 
virtual bool HasCompactDaughterList (int pos)
 
virtual void SwapParticles (int i, int j)
 
virtual void FinalizeDaughterLists (void)
 
virtual int FirstNonInitStateEntry (void)
 
- Protected Attributes inherited from genie::GHepRecord
InteractionfInteraction
 attached summary information More...
 
TLorentzVector * fVtx
 vertex in the detector coordinate system More...
 
TBits * fEventFlags
 event flags indicating various pathologies or an unphysical event More...
 
TBits * fEventMask
 an input bit-field mask allowing one to ignore bits set in fEventFlags More...
 
double fWeight
 event weight More...
 
double fProb
 event probability (for given flux neutrino and density-weighted path-length for target element) More...
 
double fXSec
 cross section for selected event More...
 
double fDiffXSec
 differential cross section for selected event kinematics More...
 
KinePhaseSpace_t fDiffXSecPhSp
 specifies which differential cross-section (dsig/dQ2, dsig/dQ2dW, dsig/dxdy,...) More...
 
- Static Protected Attributes inherited from genie::GHepRecord
static int fPrintLevel = 3
 

Detailed Description

Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI objects (event generation modules). All the other important container manipulation methods are defined at the base GHepRecord record.

Author
Costas Andreopoulos <c.andreopoulos cern.ch> University of Liverpool
Created:
October 1, 2004
License:
Copyright (c) 2003-2024, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 37 of file EventRecord.h.

Constructor & Destructor Documentation

EventRecord::EventRecord ( )

Definition at line 30 of file EventRecord.cxx.

30  :
31 GHepRecord()
32 {
33 
34 }
EventRecord::EventRecord ( int  size)

Definition at line 36 of file EventRecord.cxx.

36  :
37 GHepRecord(size)
38 {
39 
40 }
EventRecord::EventRecord ( const EventRecord record)

Definition at line 42 of file EventRecord.cxx.

42  :
43 GHepRecord(record)
44 {
45 
46 }
EventRecord::~EventRecord ( )

Definition at line 48 of file EventRecord.cxx.

49 {
50 
51 }

Member Function Documentation

void EventRecord::AcceptVisitor ( EventRecordVisitorI visitor)

Definition at line 53 of file EventRecord.cxx.

References genie::EventRecordVisitorI::ProcessEventRecord().

54 {
55  visitor->ProcessEventRecord(this);
56 }
virtual void ProcessEventRecord(GHepRecord *event_rec) const =0
void EventRecord::Copy ( const EventRecord record)
virtual

Definition at line 58 of file EventRecord.cxx.

References genie::GHepRecord::Copy(), LOG, and pERROR.

59 {
60  try {
61  const GHepRecord & ghep = dynamic_cast<const GHepRecord &>(record);
62 
63  GHepRecord::Copy(ghep);
64 
65  } catch( std::bad_cast ) {
66  LOG("EventRecord", pERROR)
67  << "Bad casting to 'const GHepRecord &'. Can not copy EventRecord";
68  }
69 }
virtual void Copy(const GHepRecord &record)
Definition: GHepRecord.cxx:907
#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
GENIE&#39;s GHEP MC event record.
Definition: GHepRecord.h:45
void EventRecord::Print ( ostream &  stream) const
virtual

Definition at line 71 of file EventRecord.cxx.

References genie::GHepRecord::Print().

Referenced by genie::operator<<().

72 {
73  GHepRecord::Print(stream);
74 }
void Print(ostream &stream) const
Definition: GHepRecord.cxx:965

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const EventRecord event 
)
friend

Definition at line 23 of file EventRecord.cxx.

24  {
25  event_record.Print(stream);
26  return stream;
27  }

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