15 #ifndef write_dk2nus_h
16 #define write_dk2nus_h
34 #include "TSystemDirectory.h"
35 #include "TLorentzVector.h"
37 #include "FluxDrivers/GNuMIFlux.h"
38 #include "dk2nu/genie/GDk2NuFlux.h"
40 #include "tree/dk2nu.h"
41 #include "tree/calcLocationWeights.h"
42 #include "tree/dkmeta.h"
60 void LoopEntries(TChain* cflux, TChain* dflux,
bool grid,
bool debug);
67 const std::string
USER = std::getenv(
"USER") != NULL ? string(std::getenv(
"USER")) :
"user";
68 const std::string
OUTDIR = std::getenv(
"OUTDIR") != NULL ? string(std::getenv(
"OUTDIR")) : string(std::getenv(
"PWD"));
69 const std::string
SAMPLEDK2NU = std::getenv(
"INDIR") != NULL ? string(std::getenv(
"INDIR"))+
"/sample_dk2nu.root" : string(std::getenv(
"PWD"))+
"/sample_dk2nu.root";
205 std::string FLUXFILE_GRID =
"";
206 std::string sample_rootfile = grid ? FLUXFILE_GRID :
SAMPLEDK2NU;
207 sample_rootfile = gSystem->ExpandPathName(sample_rootfile.c_str());
212 std::cout <<
"\nDetector position loaded." << std::endl;
215 #endif //ifndef write_dk2nus_h
virtual void LoadBeamSimData(const std::vector< std::string > &filenames, const std::string &det_loc)=0
double dAncestorDotPoly[maxArray]
double mLocationDotX[maxArray]
const std::string GDK2NU_PSET
double dAncestorDotStartx[maxArray]
const std::string INDIR_GRID
double dAncestorDotStarty[maxArray]
double dAncestorDotPprodpz[maxArray]
double dAncestorDotPprodpy[maxArray]
double dAncestorDotPprodpx[maxArray]
double dAncestorDotStartpy[maxArray]
const std::string INDIR_DEBUG
double dAncestorDotStartt[maxArray]
double dTrajDotTrkz[maxArray]
const std::string SAMPLEDK2NU
char dAncestorDotImat[maxArray *maxC]
double dTrajDotTrkx[maxArray]
char mLocationDotName[maxC *maxArray]
double dAncestorDotStartpz[maxArray]
double dTrajDotTrky[maxArray]
double dAncestorDotStoppx[maxArray]
double dNurayDotPx[maxArray]
double dTrajDotTrkpz[maxArray]
double dAncestorDotStoppy[maxArray]
char dAncestorDotProc[maxArray *maxC]
double dAncestorDotStartz[maxArray]
int dAncestorDotNucleus[maxArray]
void FillMetaBranches(bsim::DkMeta *dkmeta)
const std::string OUTDIR_GRID
void FillTreeBranches(bsim::Dk2Nu *dk2nu)
double mLocationDotY[maxArray]
double dAncestorDotStartpx[maxArray]
void LoadDetectorPosition(bool grid, genie::GFluxI *gfluxdriver)
void InitialiseTreeBranches(TTree *tree)
void RootifyChar(std::string rfch, char fdch[maxC])
double dNurayDotPz[maxArray]
double dNurayDotWgt[maxArray]
double dTrajDotTrkpx[maxArray]
double dNurayDotPy[maxArray]
double dNurayDotE[maxArray]
void LoopEntries(TChain *cflux, TChain *dflux, bool grid, bool debug)
double dTrajDotTrkpy[maxArray]
char dAncestorDotIvol[maxArray *maxC]
double dAncestorDotPolz[maxArray]
double dAncestorDotPolx[maxArray]
int dAncestorDotPdg[maxArray]
double mLocationDotZ[maxArray]
double dAncestorDotStoppz[maxArray]
void InitialiseMetaBranches(TTree *meta)
GENIE Interface for user-defined flux classes.