GENIEGenerator
Loading...
Searching...
No Matches
genie::flux::GSimpleNtpEntry Class Reference

#include <GSimpleNtpFlux.h>

Public Member Functions

 GSimpleNtpEntry ()
virtual ~GSimpleNtpEntry ()
void Reset ()
void Print (const Option_t *opt="") const

Public Attributes

Double_t wgt
 nu weight
Double_t vtxx
 x position in lab frame (meters)
Double_t vtxy
 y position in lab frame
Double_t vtxz
 z position in lab frame
Double_t vtxt
 time of ray start (seconds)
Double_t dist
 distance from hadron decay
Double_t px
 x momentum in lab frame (GeV)
Double_t py
 y momentum in lab frame
Double_t pz
 z momentum in lab frame
Double_t E
 energy in lab frame
Int_t pdg
 nu pdg-code
UInt_t metakey
 key to meta data

Friends

ostream & operator<< (ostream &stream, const GSimpleNtpEntry &info)

Detailed Description

Small persistable C-struct -like classes that makes up the SimpleNtpFlux ntuple. This is only valid for a particular flux window (no reweighting, no coordinate transformation available).

Order elements from largest to smallest for ROOT alignment purposes

GSimpleNtpEntry

This is the only required branch ("entry") of the "flux" tree

Definition at line 58 of file GSimpleNtpFlux.h.

Constructor & Destructor Documentation

◆ GSimpleNtpEntry()

GSimpleNtpEntry::GSimpleNtpEntry ( )

Definition at line 844 of file GSimpleNtpFlux.cxx.

References Reset().

◆ ~GSimpleNtpEntry()

virtual genie::flux::GSimpleNtpEntry::~GSimpleNtpEntry ( )
inlinevirtual

Definition at line 64 of file GSimpleNtpFlux.h.

64{ };

Member Function Documentation

◆ Print()

void GSimpleNtpEntry::Print ( const Option_t * opt = "") const

Definition at line 863 of file GSimpleNtpFlux.cxx.

864{
865 std::cout << *this << std::endl;
866}

◆ Reset()

void GSimpleNtpEntry::Reset ( )

Definition at line 846 of file GSimpleNtpFlux.cxx.

847{
848 wgt = 0.;
849 vtxx = 0.;
850 vtxy = 0.;
851 vtxz = 0.;
852 vtxt = 0.;
853 dist = 0.;
854 px = 0.;
855 py = 0.;
856 pz = 0.;
857 E = 0.;
858
859 pdg = 0;
860 metakey = 0;
861}
Double_t vtxx
x position in lab frame (meters)
Double_t E
energy in lab frame
Double_t dist
distance from hadron decay
Double_t px
x momentum in lab frame (GeV)
Double_t vtxt
time of ray start (seconds)
Double_t vtxz
z position in lab frame
Double_t py
y momentum in lab frame
Double_t vtxy
y position in lab frame
UInt_t metakey
key to meta data
Double_t pz
z momentum in lab frame

References dist, E, metakey, pdg, px, py, pz, vtxt, vtxx, vtxy, vtxz, and wgt.

Referenced by GSimpleNtpEntry().

◆ operator<<

ostream & operator<< ( ostream & stream,
const GSimpleNtpEntry & info )
friend

Definition at line 978 of file GSimpleNtpFlux.cxx.

980 {
981 stream << "\nGSimpleNtpEntry "
982 << " PDG " << entry.pdg
983 << " wgt " << entry.wgt
984 << " ( metakey " << entry.metakey << " )"
985 << "\n vtx [" << entry.vtxx << "," << entry.vtxy << ","
986 << entry.vtxz << ", t=" << entry.vtxt << "] dist " << entry.dist
987 << "\n p4 [" << entry.px << "," << entry.py << ","
988 << entry.pz << "," << entry.E << "]";
989 return stream;
990 }

References dist, E, metakey, pdg, px, py, pz, vtxt, vtxx, vtxy, vtxz, and wgt.

Member Data Documentation

◆ dist

Double_t genie::flux::GSimpleNtpEntry::dist

distance from hadron decay

Definition at line 75 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().

◆ E

Double_t genie::flux::GSimpleNtpEntry::E

energy in lab frame

Definition at line 80 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().

◆ metakey

UInt_t genie::flux::GSimpleNtpEntry::metakey

key to meta data

Definition at line 83 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().

◆ pdg

Int_t genie::flux::GSimpleNtpEntry::pdg

nu pdg-code

Definition at line 82 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().

◆ px

Double_t genie::flux::GSimpleNtpEntry::px

x momentum in lab frame (GeV)

Definition at line 77 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().

◆ py

Double_t genie::flux::GSimpleNtpEntry::py

y momentum in lab frame

Definition at line 78 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().

◆ pz

Double_t genie::flux::GSimpleNtpEntry::pz

z momentum in lab frame

Definition at line 79 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().

◆ vtxt

Double_t genie::flux::GSimpleNtpEntry::vtxt

time of ray start (seconds)

Definition at line 74 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().

◆ vtxx

Double_t genie::flux::GSimpleNtpEntry::vtxx

x position in lab frame (meters)

Definition at line 71 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().

◆ vtxy

Double_t genie::flux::GSimpleNtpEntry::vtxy

y position in lab frame

Definition at line 72 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().

◆ vtxz

Double_t genie::flux::GSimpleNtpEntry::vtxz

z position in lab frame

Definition at line 73 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().

◆ wgt

Double_t genie::flux::GSimpleNtpEntry::wgt

nu weight

Definition at line 69 of file GSimpleNtpFlux.h.

Referenced by operator<<, and Reset().


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