All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
caf::SRTrueInteraction Class Reference

The SRTrueInteraction is a representation of neutrino interaction information. More...

#include <SRTrueInteraction.h>

Public Member Functions

 SRTrueInteraction ()
 
 ~SRTrueInteraction ()
 

Public Attributes

int initpdg
 Initial PDG code of probe neutrino. More...
 
int pdg
 PDG code of probe neutrino. More...
 
int index
 Index of the matched true neutrino interaction (-1 if not matched to neutrino) More...
 
int targetPDG
 
int hitnuc
 
genie_interaction_mode_ genie_mode
 Interaction mode (as for LArSoft MCNeutrino::Mode() ) More...
 
genie_interaction_type_ genie_inttype
 Following LARSoft MCNeutrino::InteractionType() More...
 
bool isnc
 same as LArSoft "ccnc" - 0=CC, 1=NC More...
 
bool iscc
 CC (true) or NC/interference (false) More...
 
bool isvtxcont
 If true vertex is within TPC. More...
 
bool is_numucc_primary
 Whether this is the "primary" reco neutrino slice as defined by the numu CC analysis. More...
 
float E
 True energy [GeV]. More...
 
SRTrueInteractionPlaneInfo plane [2][3]
 Per-plane, per-cryostat deposition information. More...
 
float time
 Time. More...
 
float bjorkenX
 Bjorken x = (k-k')^2/(2*p.q) [Dimensionless]. More...
 
float inelasticityY
 Inelasticity y. More...
 
float Q2
 Q squared. More...
 
float q0
 q0, struck nucleon rest frame More...
 
float modq
 |q|, struck nucleon rest frame More...
 
float q0_lab
 q0, lab frame More...
 
float modq_lab
 |q|, lab frame More...
 
float w
 Hadronic invariant mass W. More...
 
float t
 Kinematic t. More...
 
float eccqe
 CCQE energy. More...
 
float baseline
 Distance from decay to interaction [m]. More...
 
unsigned int npiplus
 Number of $\pi^+$'s after neutrino reaction, before FSI. More...
 
unsigned int npiminus
 Number of $\pi^1$'s after neutrino reaction, before FSI. More...
 
unsigned int npizero
 Number of $\pi^0$'s after neutrino reaction, before FSI. More...
 
unsigned int nproton
 Number of protons after neutrino reaction, before FSI. More...
 
unsigned int nneutron
 Number of neutrons after neutrino reaction, before FSI. More...
 
bool ischarm
 Is a charmed quark in interaction. More...
 
bool isseaquark
 Did neutrino scatter off a sea quark. More...
 
int resnum
 Resonance number, straight from GENIE. More...
 
float xsec
 xsec for thrown interaction, in 1/GeV^2, as stored by the GENIE spline More...
 
float genweight
 Weight, if any, assigned by the generator. More...
 
int parent_dcy_mode
 Parent hadron/muon decay mode. More...
 
int parent_pdg
 PDG Code of parent particle ID. More...
 
SRVector3D prod_vtx
 Neutrino production vertex [cm; beam coordinates]. More...
 
SRVector3D parent_dcy_mom
 Neutrino parent momentum at decay [GeV; beam coordinates]. More...
 
float parent_dcy_E
 Neutrino parent energy at decay [GeV]. More...
 
float imp_weight
 Importance weight from flux file. More...
 
SRVector3D vtx
 Vertex position in detector coord. [cm]. More...
 
SRVector3D momentum
 Neutrino three-momentum. More...
 
SRVector3D position
 Neutrino interaction position. More...
 
int cryostat
 Cryostat the the Interaction originates in. -1 if it originates outside a cryostat. More...
 
Det_t det
 
generator_ generator
 The generator that created this neutrino interaction. More...
 
std::vector< unsigned int > genVersion
 Version of the generator that created this neutrino interaction. More...
 
int nprim
 Number of primary daughters. More...
 
std::vector< SRTrueParticleprim
 Primary daughters, lepton comes first in vector. More...
 
std::vector< SRMultiversewgt
 Systematic weights. More...
 

Detailed Description

The SRTrueInteraction is a representation of neutrino interaction information.

Definition at line 31 of file SRTrueInteraction.h.

Constructor & Destructor Documentation

caf::SRTrueInteraction::SRTrueInteraction ( )

Definition at line 19 of file SRTrueInteraction.cxx.

19  :
20  initpdg(-1),
21  pdg(-1),
22  index(-1),
23  targetPDG(-999),
24  hitnuc(-999),
27  isnc(false),
28  iscc(false),
29  isvtxcont(false),
30  is_numucc_primary(false),
31 
32  E(std::numeric_limits<float>::signaling_NaN()),
33  time(std::numeric_limits<float>::signaling_NaN()),
34  bjorkenX(std::numeric_limits<float>::signaling_NaN()),
35  inelasticityY(std::numeric_limits<float>::signaling_NaN()),
36  Q2(std::numeric_limits<float>::signaling_NaN()),
37  q0(std::numeric_limits<float>::signaling_NaN()),
38  modq(std::numeric_limits<float>::signaling_NaN()),
39  q0_lab(std::numeric_limits<float>::signaling_NaN()),
40  modq_lab(std::numeric_limits<float>::signaling_NaN()),
41  w(std::numeric_limits<float>::signaling_NaN()),
42  t(std::numeric_limits<float>::signaling_NaN()),
43  eccqe(std::numeric_limits<float>::signaling_NaN()),
44  baseline(std::numeric_limits<float>::signaling_NaN()),
45 
46  npiplus(0),
47  npiminus(0),
48  npizero(0),
49  nproton(0),
50  nneutron(0),
51 
52  ischarm(false),
53  isseaquark(false),
54  resnum(-999),
55  xsec(std::numeric_limits<float>::signaling_NaN()),
56  genweight(std::numeric_limits<float>::signaling_NaN()),
57 
58  parent_dcy_mode(-1),
59  parent_pdg(-1),
60  parent_dcy_E(std::numeric_limits<float>::signaling_NaN()),
61  imp_weight(std::numeric_limits<float>::signaling_NaN()),
62  cryostat(-1),
63  det(kUNKNOWN),
65  genVersion(),
66  nprim(0),
67  prim()
68  { }
float imp_weight
Importance weight from flux file.
Unknown detector.
Definition: SREnums.h:9
unsigned int npiplus
Number of &#39;s after neutrino reaction, before FSI.
float genweight
Weight, if any, assigned by the generator.
int initpdg
Initial PDG code of probe neutrino.
unsigned int nneutron
Number of neutrons after neutrino reaction, before FSI.
bool isseaquark
Did neutrino scatter off a sea quark.
std::vector< unsigned int > genVersion
Version of the generator that created this neutrino interaction.
float inelasticityY
Inelasticity y.
float xsec
xsec for thrown interaction, in 1/GeV^2, as stored by the GENIE spline
int resnum
Resonance number, straight from GENIE.
int nprim
Number of primary daughters.
float E
True energy [GeV].
genie_interaction_type_ genie_inttype
Following LARSoft MCNeutrino::InteractionType()
unsigned int nproton
Number of protons after neutrino reaction, before FSI.
int parent_pdg
PDG Code of parent particle ID.
int pdg
PDG code of probe neutrino.
float modq
|q|, struck nucleon rest frame
std::vector< SRTrueParticle > prim
Primary daughters, lepton comes first in vector.
bool ischarm
Is a charmed quark in interaction.
bool is_numucc_primary
Whether this is the &quot;primary&quot; reco neutrino slice as defined by the numu CC analysis.
float bjorkenX
Bjorken x = (k-k&#39;)^2/(2*p.q) [Dimensionless].
unsigned int npizero
Number of &#39;s after neutrino reaction, before FSI.
float t
Kinematic t.
bool isnc
same as LArSoft &quot;ccnc&quot; - 0=CC, 1=NC
float w
Hadronic invariant mass W.
float q0_lab
q0, lab frame
bool isvtxcont
If true vertex is within TPC.
bool iscc
CC (true) or NC/interference (false)
float parent_dcy_E
Neutrino parent energy at decay [GeV].
float baseline
Distance from decay to interaction [m].
float eccqe
CCQE energy.
float q0
q0, struck nucleon rest frame
generator_ generator
The generator that created this neutrino interaction.
unsigned int npiminus
Number of &#39;s after neutrino reaction, before FSI.
int index
Index of the matched true neutrino interaction (-1 if not matched to neutrino)
int parent_dcy_mode
Parent hadron/muon decay mode.
genie_interaction_mode_ genie_mode
Interaction mode (as for LArSoft MCNeutrino::Mode() )
int cryostat
Cryostat the the Interaction originates in. -1 if it originates outside a cryostat.
float modq_lab
|q|, lab frame
caf::SRTrueInteraction::~SRTrueInteraction ( )
inline

Definition at line 35 of file SRTrueInteraction.h.

35 { }

Member Data Documentation

float caf::SRTrueInteraction::baseline

Distance from decay to interaction [m].

Definition at line 67 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::bjorkenX

Bjorken x = (k-k')^2/(2*p.q) [Dimensionless].

Definition at line 57 of file SRTrueInteraction.h.

int caf::SRTrueInteraction::cryostat

Cryostat the the Interaction originates in. -1 if it originates outside a cryostat.

Definition at line 94 of file SRTrueInteraction.h.

Det_t caf::SRTrueInteraction::det

Definition at line 95 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::E

True energy [GeV].

Definition at line 52 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::eccqe

CCQE energy.

Definition at line 66 of file SRTrueInteraction.h.

generator_ caf::SRTrueInteraction::generator

The generator that created this neutrino interaction.

Definition at line 97 of file SRTrueInteraction.h.

genie_interaction_type_ caf::SRTrueInteraction::genie_inttype

Following LARSoft MCNeutrino::InteractionType()

Definition at line 45 of file SRTrueInteraction.h.

genie_interaction_mode_ caf::SRTrueInteraction::genie_mode

Interaction mode (as for LArSoft MCNeutrino::Mode() )

Definition at line 44 of file SRTrueInteraction.h.

std::vector<unsigned int> caf::SRTrueInteraction::genVersion

Version of the generator that created this neutrino interaction.

Definition at line 98 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::genweight

Weight, if any, assigned by the generator.

Definition at line 81 of file SRTrueInteraction.h.

int caf::SRTrueInteraction::hitnuc

PDG code of struck nucleon (or, in the case of MEC, struck nucleon-nucleon pair). For MEC, the codes are: 2000000200 –> nn, 2000000201 –> np, 2000000202 –> "pp

Definition at line 43 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::imp_weight

Importance weight from flux file.

Definition at line 88 of file SRTrueInteraction.h.

int caf::SRTrueInteraction::index

Index of the matched true neutrino interaction (-1 if not matched to neutrino)

Definition at line 39 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::inelasticityY

Inelasticity y.

Definition at line 58 of file SRTrueInteraction.h.

int caf::SRTrueInteraction::initpdg

Initial PDG code of probe neutrino.

Definition at line 37 of file SRTrueInteraction.h.

bool caf::SRTrueInteraction::is_numucc_primary

Whether this is the "primary" reco neutrino slice as defined by the numu CC analysis.

Definition at line 50 of file SRTrueInteraction.h.

bool caf::SRTrueInteraction::iscc

CC (true) or NC/interference (false)

Definition at line 48 of file SRTrueInteraction.h.

bool caf::SRTrueInteraction::ischarm

Is a charmed quark in interaction.

Definition at line 76 of file SRTrueInteraction.h.

bool caf::SRTrueInteraction::isnc

same as LArSoft "ccnc" - 0=CC, 1=NC

Definition at line 47 of file SRTrueInteraction.h.

bool caf::SRTrueInteraction::isseaquark

Did neutrino scatter off a sea quark.

Definition at line 77 of file SRTrueInteraction.h.

bool caf::SRTrueInteraction::isvtxcont

If true vertex is within TPC.

Definition at line 49 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::modq

|q|, struck nucleon rest frame

Definition at line 61 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::modq_lab

|q|, lab frame

Definition at line 63 of file SRTrueInteraction.h.

SRVector3D caf::SRTrueInteraction::momentum

Neutrino three-momentum.

Definition at line 91 of file SRTrueInteraction.h.

unsigned int caf::SRTrueInteraction::nneutron

Number of neutrons after neutrino reaction, before FSI.

Definition at line 73 of file SRTrueInteraction.h.

unsigned int caf::SRTrueInteraction::npiminus

Number of $\pi^1$'s after neutrino reaction, before FSI.

Definition at line 70 of file SRTrueInteraction.h.

unsigned int caf::SRTrueInteraction::npiplus

Number of $\pi^+$'s after neutrino reaction, before FSI.

Definition at line 69 of file SRTrueInteraction.h.

unsigned int caf::SRTrueInteraction::npizero

Number of $\pi^0$'s after neutrino reaction, before FSI.

Definition at line 71 of file SRTrueInteraction.h.

int caf::SRTrueInteraction::nprim

Number of primary daughters.

Definition at line 100 of file SRTrueInteraction.h.

unsigned int caf::SRTrueInteraction::nproton

Number of protons after neutrino reaction, before FSI.

Definition at line 72 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::parent_dcy_E

Neutrino parent energy at decay [GeV].

Definition at line 87 of file SRTrueInteraction.h.

int caf::SRTrueInteraction::parent_dcy_mode

Parent hadron/muon decay mode.

Definition at line 83 of file SRTrueInteraction.h.

SRVector3D caf::SRTrueInteraction::parent_dcy_mom

Neutrino parent momentum at decay [GeV; beam coordinates].

Definition at line 86 of file SRTrueInteraction.h.

int caf::SRTrueInteraction::parent_pdg

PDG Code of parent particle ID.

Definition at line 84 of file SRTrueInteraction.h.

int caf::SRTrueInteraction::pdg

PDG code of probe neutrino.

Definition at line 38 of file SRTrueInteraction.h.

SRTrueInteractionPlaneInfo caf::SRTrueInteraction::plane[2][3]

Per-plane, per-cryostat deposition information.

Definition at line 54 of file SRTrueInteraction.h.

SRVector3D caf::SRTrueInteraction::position

Neutrino interaction position.

Definition at line 92 of file SRTrueInteraction.h.

std::vector<SRTrueParticle> caf::SRTrueInteraction::prim

Primary daughters, lepton comes first in vector.

Definition at line 101 of file SRTrueInteraction.h.

SRVector3D caf::SRTrueInteraction::prod_vtx

Neutrino production vertex [cm; beam coordinates].

Definition at line 85 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::q0

q0, struck nucleon rest frame

Definition at line 60 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::q0_lab

q0, lab frame

Definition at line 62 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::Q2

Q squared.

Definition at line 59 of file SRTrueInteraction.h.

int caf::SRTrueInteraction::resnum

Resonance number, straight from GENIE.

Definition at line 78 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::t

Kinematic t.

Definition at line 65 of file SRTrueInteraction.h.

int caf::SRTrueInteraction::targetPDG

PDG code of struck target

Definition at line 40 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::time

Time.

Definition at line 56 of file SRTrueInteraction.h.

SRVector3D caf::SRTrueInteraction::vtx

Vertex position in detector coord. [cm].

Definition at line 90 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::w

Hadronic invariant mass W.

Definition at line 64 of file SRTrueInteraction.h.

std::vector<SRMultiverse> caf::SRTrueInteraction::wgt

Systematic weights.

The first index is the parameter set, the second the universe. The parameter sets are those defined in the globalTree, with matching indices.

Definition at line 108 of file SRTrueInteraction.h.

float caf::SRTrueInteraction::xsec

xsec for thrown interaction, in 1/GeV^2, as stored by the GENIE spline

Definition at line 79 of file SRTrueInteraction.h.


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