GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
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 More...
 
Double_t vtxx
 x position in lab frame (meters) More...
 
Double_t vtxy
 y position in lab frame More...
 
Double_t vtxz
 z position in lab frame More...
 
Double_t vtxt
 time of ray start (seconds) More...
 
Double_t dist
 distance from hadron decay More...
 
Double_t px
 x momentum in lab frame (GeV) More...
 
Double_t py
 y momentum in lab frame More...
 
Double_t pz
 z momentum in lab frame More...
 
Double_t E
 energy in lab frame More...
 
Int_t pdg
 nu pdg-code More...
 
UInt_t metakey
 key to meta data More...
 

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 ( )

Definition at line 844 of file GSimpleNtpFlux.cxx.

References Reset().

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

Definition at line 64 of file GSimpleNtpFlux.h.

64 { };

Member Function Documentation

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

Definition at line 863 of file GSimpleNtpFlux.cxx.

864 {
865  std::cout << *this << std::endl;
866 }
void GSimpleNtpEntry::Reset ( void  )

Definition at line 846 of file GSimpleNtpFlux.cxx.

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

Referenced by GSimpleNtpEntry(), and genie::flux::GSimpleNtpFlux::ResetCurrent().

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 E
energy in lab frame
Double_t px
x momentum in lab frame (GeV)
Double_t vtxy
y position in lab frame
Double_t vtxt
time of ray start (seconds)
Double_t vtxz
z position in lab frame
Double_t vtxx
x position in lab frame (meters)
Double_t pz
z momentum in lab frame
Double_t dist
distance from hadron decay
UInt_t metakey
key to meta data
Double_t py
y momentum in lab frame

Friends And Related Function Documentation

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  }

Member Data Documentation

Double_t genie::flux::GSimpleNtpEntry::dist

distance from hadron decay

Definition at line 75 of file GSimpleNtpFlux.h.

Referenced by genie::flux::GSimpleNtpFlux::GetDecayDist(), genie::flux::operator<<(), and Reset().

Double_t genie::flux::GSimpleNtpEntry::E

energy in lab frame

Definition at line 80 of file GSimpleNtpFlux.h.

Referenced by genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::operator<<(), and Reset().

UInt_t genie::flux::GSimpleNtpEntry::metakey

key to meta data

Definition at line 83 of file GSimpleNtpFlux.h.

Referenced by genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::operator<<(), and Reset().

Int_t genie::flux::GSimpleNtpEntry::pdg
Double_t genie::flux::GSimpleNtpEntry::px

x momentum in lab frame (GeV)

Definition at line 77 of file GSimpleNtpFlux.h.

Referenced by genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::operator<<(), and Reset().

Double_t genie::flux::GSimpleNtpEntry::py

y momentum in lab frame

Definition at line 78 of file GSimpleNtpFlux.h.

Referenced by genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::operator<<(), and Reset().

Double_t genie::flux::GSimpleNtpEntry::pz

z momentum in lab frame

Definition at line 79 of file GSimpleNtpFlux.h.

Referenced by genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::operator<<(), and Reset().

Double_t genie::flux::GSimpleNtpEntry::vtxt

time of ray start (seconds)

Definition at line 74 of file GSimpleNtpFlux.h.

Referenced by genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::operator<<(), and Reset().

Double_t genie::flux::GSimpleNtpEntry::vtxx

x position in lab frame (meters)

Definition at line 71 of file GSimpleNtpFlux.h.

Referenced by genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::operator<<(), and Reset().

Double_t genie::flux::GSimpleNtpEntry::vtxy

y position in lab frame

Definition at line 72 of file GSimpleNtpFlux.h.

Referenced by genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::operator<<(), and Reset().

Double_t genie::flux::GSimpleNtpEntry::vtxz

z position in lab frame

Definition at line 73 of file GSimpleNtpFlux.h.

Referenced by genie::flux::GSimpleNtpFlux::GenerateNext_weighted(), genie::flux::operator<<(), and Reset().

Double_t genie::flux::GSimpleNtpEntry::wgt

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