Public Member Functions | Protected Attributes | List of all members
flat::FlatBeam Class Reference

Flat encoding of SRBeam. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/FlatMaker/FlatBeam.h"

Public Member Functions

 FlatBeam (const std::string &prefix, TTree *tr, const IBranchPolicy *policy)
 
 ~FlatBeam ()
 
void Fill (const caf::SRBeam &sr)
 

Protected Attributes

float runjob
 
int potnum
 
int tptype
 
float nimpwt
 
int ndecay
 
float ppdxdz
 
float ppdydz
 
float pppz
 
float ppenergy
 
int ppmedium
 
int ptype
 
float mupare
 
float necm
 
int tgen
 
int tgptype
 
float dk2gen
 
float gen2vtx
 
float dk2vtx
 
FlatVector3D tv
 
FlatVector3D tp
 
FlatVector3D v
 
FlatVector3D pdp
 
FlatVector3D ppv
 
FlatVector3D muparp
 

Detailed Description

Flat encoding of SRBeam.

Definition at line 21 of file FlatBeam.h.

Constructor & Destructor Documentation

flat::FlatBeam::FlatBeam ( const std::string prefix,
TTree *  tr,
const IBranchPolicy policy 
)

Definition at line 1501 of file FlatRecord.cxx.

References compare_h5_caf::branch, dk2gen, dk2vtx, gen2vtx, mupare, ndecay, necm, nimpwt, potnum, ppdxdz, ppdydz, ppenergy, ppmedium, pppz, ptype, runjob, tgen, tgptype, and tptype.

1502  : tv(prefix+"tv.", tr, policy),
1503  tp(prefix+"tp.", tr, policy),
1504  v(prefix+"v.", tr, policy),
1505  pdp(prefix+"pdp.", tr, policy),
1506  ppv(prefix+"ppv.", tr, policy),
1507  muparp(prefix+"muparp.", tr, policy)
1508 {
1509  branch(tr, prefix+"runjob", &runjob, policy);
1510  branch(tr, prefix+"potnum", &potnum, policy);
1511  branch(tr, prefix+"tptype", &tptype, policy);
1512  branch(tr, prefix+"nimpwt", &nimpwt, policy);
1513  branch(tr, prefix+"ndecay", &ndecay, policy);
1514  branch(tr, prefix+"ppdxdz", &ppdxdz, policy);
1515  branch(tr, prefix+"ppdydz", &ppdydz, policy);
1516  branch(tr, prefix+"pppz", &pppz, policy);
1517  branch(tr, prefix+"ppenergy", &ppenergy, policy);
1518  branch(tr, prefix+"ppmedium", &ppmedium, policy);
1519  branch(tr, prefix+"ptype", &ptype, policy);
1520  branch(tr, prefix+"mupare", &mupare, policy);
1521  branch(tr, prefix+"necm", &necm, policy);
1522  branch(tr, prefix+"tgen", &tgen, policy);
1523  branch(tr, prefix+"tgptype", &tgptype, policy);
1524  branch(tr, prefix+"dk2gen", &dk2gen, policy);
1525  branch(tr, prefix+"gen2vtx", &gen2vtx, policy);
1526  branch(tr, prefix+"dk2vtx", &dk2vtx, policy);
1527 }
float nimpwt
Definition: FlatBeam.h:33
float pppz
Definition: FlatBeam.h:37
float ppdxdz
Definition: FlatBeam.h:35
FlatVector3D pdp
Definition: FlatBeam.h:52
FlatVector3D v
Definition: FlatBeam.h:51
float ppenergy
Definition: FlatBeam.h:38
float runjob
Definition: FlatBeam.h:30
FlatVector3D tp
Definition: FlatBeam.h:50
FlatVector3D tv
Definition: FlatBeam.h:49
FlatVector3D ppv
Definition: FlatBeam.h:53
const XML_Char * prefix
Definition: expat.h:380
float gen2vtx
Definition: FlatBeam.h:46
float mupare
Definition: FlatBeam.h:41
float dk2gen
Definition: FlatBeam.h:45
FlatVector3D muparp
Definition: FlatBeam.h:54
float necm
Definition: FlatBeam.h:42
float dk2vtx
Definition: FlatBeam.h:47
float ppdydz
Definition: FlatBeam.h:36
flat::FlatBeam::~FlatBeam ( )

Definition at line 1529 of file FlatRecord.cxx.

1530 {
1531 }

Member Function Documentation

void flat::FlatBeam::Fill ( const caf::SRBeam sr)

Definition at line 1533 of file FlatRecord.cxx.

References dk2gen, caf::SRBeam::dk2gen, dk2vtx, caf::SRBeam::dk2vtx, flat::FlatVector3D::Fill(), gen2vtx, caf::SRBeam::gen2vtx, mupare, caf::SRBeam::mupare, muparp, caf::SRBeam::muparp, ndecay, caf::SRBeam::ndecay, necm, caf::SRBeam::necm, nimpwt, caf::SRBeam::nimpwt, caf::SRBeam::pdp, pdp, potnum, caf::SRBeam::potnum, ppdxdz, caf::SRBeam::ppdxdz, ppdydz, caf::SRBeam::ppdydz, ppenergy, caf::SRBeam::ppenergy, ppmedium, caf::SRBeam::ppmedium, pppz, caf::SRBeam::pppz, ppv, caf::SRBeam::ppv, ptype, caf::SRBeam::ptype, runjob, caf::SRBeam::runjob, tgen, caf::SRBeam::tgen, tgptype, caf::SRBeam::tgptype, caf::SRBeam::tp, tp, tptype, caf::SRBeam::tptype, caf::SRBeam::tv, tv, caf::SRBeam::v, and v.

Referenced by flat::FlatNeutrino::Fill().

1534 {
1535  runjob = sr.runjob;
1536  potnum = sr.potnum;
1537  tptype = sr.tptype;
1538  nimpwt = sr.nimpwt;
1539  ndecay = sr.ndecay;
1540  ppdxdz = sr.ppdxdz;
1541  ppdydz = sr.ppdydz;
1542  pppz = sr.pppz;
1543  ppenergy = sr.ppenergy;
1544  ppmedium = sr.ppmedium;
1545  ptype = sr.ptype;
1546  mupare = sr.mupare;
1547  necm = sr.necm;
1548  tgen = sr.tgen;
1549  tgptype = sr.tgptype;
1550  dk2gen = sr.dk2gen;
1551  gen2vtx = sr.gen2vtx;
1552  dk2vtx = sr.dk2vtx;
1553 
1554  tv.Fill(sr.tv);
1555  tp.Fill(sr.tp);
1556  v.Fill(sr.v);
1557  pdp.Fill(sr.pdp);
1558  ppv.Fill(sr.ppv);
1559  muparp.Fill(sr.muparp);
1560 }
float nimpwt
Definition: FlatBeam.h:33
int potnum
Proton event number, indicates which simulated proton was taken.
Definition: SRBeam.h:34
int ndecay
"neutrino decay". Decay mode that produced neutrino
Definition: SRBeam.h:43
int ppmedium
"parent particle medium". Tracking medium number where parent was produced
Definition: SRBeam.h:64
float pppz
Definition: FlatBeam.h:37
float ppdxdz
Definition: FlatBeam.h:35
void Fill(const caf::SRVector3D &sr)
int tptype
"target particle type". Parent particle ID exiting the target (PDG code)
Definition: SRBeam.h:37
FlatVector3D pdp
Definition: FlatBeam.h:52
float gen2vtx
distance from ray origin to event vtx
Definition: SRBeam.h:91
SRVector3D muparp
Muon neutrino parent momentum, x component.
Definition: SRBeam.h:73
float dk2vtx
Definition: SRBeam.h:94
SRVector3D pdp
"parent decay momentum". Parent momentum at decay point
Definition: SRBeam.h:49
float ppdydz
"parent particle momentum dy/dz". Parent dy/dz direction at production
Definition: SRBeam.h:55
FlatVector3D v
Definition: FlatBeam.h:51
float ppenergy
Definition: FlatBeam.h:38
float runjob
Definition: FlatBeam.h:30
float ppenergy
"parent particle energy". Parent energy at production
Definition: SRBeam.h:61
FlatVector3D tp
Definition: FlatBeam.h:50
int ptype
"parent type". Parent PDG code
Definition: SRBeam.h:67
FlatVector3D tv
Definition: FlatBeam.h:49
FlatVector3D ppv
Definition: FlatBeam.h:53
float necm
Neutrino energy in CM frame.
Definition: SRBeam.h:79
SRVector3D tp
"target momentum". Parent momentum exiting the target
Definition: SRBeam.h:28
float gen2vtx
Definition: FlatBeam.h:46
float mupare
Definition: FlatBeam.h:41
float ppdxdz
"parent particle momentum dx/dx". Parent dx/dz direction at production
Definition: SRBeam.h:52
float mupare
Muon neutrino parent energy.
Definition: SRBeam.h:76
int tgptype
PDG of parent of the particle exiting the target.
Definition: SRBeam.h:85
float nimpwt
"neutrino importance weight". Weight of neutrino parent
Definition: SRBeam.h:40
float dk2gen
Definition: FlatBeam.h:45
float pppz
"parent particle p_z". Parent Z momentum at production
Definition: SRBeam.h:58
FlatVector3D muparp
Definition: FlatBeam.h:54
float necm
Definition: FlatBeam.h:42
float dk2gen
distance from decay to ray origin (ray origin is the intermediate point on the flux window) ...
Definition: SRBeam.h:88
SRVector3D v
"vertex". Position of hadron/muon decay
Definition: SRBeam.h:46
SRVector3D tv
"target vertex". Exit point of parent particle at the target
Definition: SRBeam.h:25
float dk2vtx
Definition: FlatBeam.h:47
float ppdydz
Definition: FlatBeam.h:36
float runjob
Flux run number, indicates which FLUGG job created this flux.
Definition: SRBeam.h:31
SRVector3D ppv
"parent particle vertex". Parent production vertex
Definition: SRBeam.h:70
int tgen
nu parent generation 1=primary proton, 2=secondary, 3=tertiary, etc
Definition: SRBeam.h:82

Member Data Documentation

float flat::FlatBeam::dk2gen
protected

Definition at line 45 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

float flat::FlatBeam::dk2vtx
protected

Definition at line 47 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

float flat::FlatBeam::gen2vtx
protected

Definition at line 46 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

float flat::FlatBeam::mupare
protected

Definition at line 41 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

FlatVector3D flat::FlatBeam::muparp
protected

Definition at line 54 of file FlatBeam.h.

Referenced by Fill().

int flat::FlatBeam::ndecay
protected

Definition at line 34 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

float flat::FlatBeam::necm
protected

Definition at line 42 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

float flat::FlatBeam::nimpwt
protected

Definition at line 33 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

FlatVector3D flat::FlatBeam::pdp
protected

Definition at line 52 of file FlatBeam.h.

Referenced by Fill().

int flat::FlatBeam::potnum
protected

Definition at line 31 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

float flat::FlatBeam::ppdxdz
protected

Definition at line 35 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

float flat::FlatBeam::ppdydz
protected

Definition at line 36 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

float flat::FlatBeam::ppenergy
protected

Definition at line 38 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

int flat::FlatBeam::ppmedium
protected

Definition at line 39 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

float flat::FlatBeam::pppz
protected

Definition at line 37 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

FlatVector3D flat::FlatBeam::ppv
protected

Definition at line 53 of file FlatBeam.h.

Referenced by Fill().

int flat::FlatBeam::ptype
protected

Definition at line 40 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

float flat::FlatBeam::runjob
protected

Definition at line 30 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

int flat::FlatBeam::tgen
protected

Definition at line 43 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

int flat::FlatBeam::tgptype
protected

Definition at line 44 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

FlatVector3D flat::FlatBeam::tp
protected

Definition at line 50 of file FlatBeam.h.

Referenced by Fill().

int flat::FlatBeam::tptype
protected

Definition at line 32 of file FlatBeam.h.

Referenced by Fill(), and FlatBeam().

FlatVector3D flat::FlatBeam::tv
protected

Definition at line 49 of file FlatBeam.h.

Referenced by Fill().

FlatVector3D flat::FlatBeam::v
protected

Definition at line 51 of file FlatBeam.h.

Referenced by Fill().


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