LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "DK2NuInterface.h"
Public Member Functions | |
Long64_t | GetEntries () const |
int | GetRun () const |
float | GetPOT () const |
TLorentzVector | GetNuPosition () const |
TLorentzVector | GetNuMomentum () const |
void | SetRootFile (TFile *rootFile) |
bool | FillMCFlux (Long64_t ientry, simb::MCFlux &mcflux) |
bsim::Dk2Nu * | GetDk2Nu () |
bsim::NuChoice * | GetNuChoice () |
void | Init (fhicl::ParameterSet const &ps) |
void | User2BeamPos (const TLorentzVector &usrxyz, TLorentzVector &beamxyz) const |
void | Beam2UserPos (const TLorentzVector &beamxyz, TLorentzVector &usrxyz) const |
void | Beam2UserP4 (const TLorentzVector &beamp4, TLorentzVector &usrp4) const |
TVector3 | AnglesToAxis (double theta, double phi) |
Private Attributes | |
TTree * | fDk2NuTree |
TTree * | fDkMetaTree |
bsim::Dk2Nu * | fDk2Nu |
bsim::DkMeta * | fDkMeta |
bsim::NuChoice * | fNuChoice |
Long64_t | fNEntries |
int | fRun |
float | fPOT |
TLorentzVector | fNuPos |
TLorentzVector | fNuMom |
TRotation | fBeamRotXML |
TRotation | fTempRot |
TLorentzRotation | fBeamRot |
TLorentzRotation | fBeamRotInv |
TVector3 | fBeamPosXML |
TLorentzVector | fBeamZero |
TVector3 | detAV_rand_user |
TLorentzVector | fRandUser |
TLorentzVector | fRandBeam |
Definition at line 20 of file DK2NuInterface.h.
TVector3 fluxr::DK2NuInterface::AnglesToAxis | ( | double | theta, |
double | phi | ||
) |
void fluxr::DK2NuInterface::Beam2UserP4 | ( | const TLorentzVector & | beamp4, |
TLorentzVector & | usrp4 | ||
) | const |
Definition at line 156 of file DK2NuInterface.cxx.
References fBeamRot.
Referenced by FillMCFlux(), and GetNuChoice().
void fluxr::DK2NuInterface::Beam2UserPos | ( | const TLorentzVector & | beamxyz, |
TLorentzVector & | usrxyz | ||
) | const |
Definition at line 152 of file DK2NuInterface.cxx.
References fBeamRot, and fBeamZero.
Referenced by FillMCFlux(), and GetNuChoice().
|
virtual |
Implements fluxr::FluxInterface.
Definition at line 178 of file DK2NuInterface.cxx.
References Beam2UserP4(), Beam2UserPos(), simb::MCFlux::fdk2gen, fDk2Nu, fDk2NuTree, simb::MCFlux::fevtno, simb::MCFlux::fmupare, simb::MCFlux::fmuparpx, simb::MCFlux::fmuparpy, simb::MCFlux::fmuparpz, simb::MCFlux::fndecay, simb::MCFlux::fnecm, simb::MCFlux::fnenergyf, simb::MCFlux::fnenergyn, simb::MCFlux::fnimpwt, simb::MCFlux::fntype, fNuChoice, fNuMom, fNuPos, simb::MCFlux::fnwtfar, simb::MCFlux::fnwtnear, simb::MCFlux::fpdpx, simb::MCFlux::fpdpy, simb::MCFlux::fpdpz, simb::MCFlux::fppdxdz, simb::MCFlux::fppdydz, simb::MCFlux::fppmedium, simb::MCFlux::fpppz, simb::MCFlux::fptype, fRandBeam, simb::MCFlux::frun, simb::MCFlux::ftgen, simb::MCFlux::ftgptype, simb::MCFlux::ftptype, simb::MCFlux::ftpx, simb::MCFlux::ftpy, simb::MCFlux::ftpz, simb::MCFlux::fvx, simb::MCFlux::fvy, and simb::MCFlux::fvz.
Referenced by GetNuMomentum().
|
inline |
|
inlinevirtual |
Implements fluxr::FluxInterface.
Definition at line 22 of file DK2NuInterface.h.
References fNEntries.
|
inline |
Definition at line 32 of file DK2NuInterface.h.
References AnglesToAxis(), Beam2UserP4(), Beam2UserPos(), fNuChoice, Init(), and User2BeamPos().
|
inlinevirtual |
Implements fluxr::FluxInterface.
Definition at line 26 of file DK2NuInterface.h.
References FillMCFlux(), fNuMom, and SetRootFile().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
void fluxr::DK2NuInterface::Init | ( | fhicl::ParameterSet const & | ps | ) |
Definition at line 33 of file DK2NuInterface.cxx.
References AnglesToAxis(), detAV_rand_user, fBeamPosXML, fBeamRot, fBeamRotInv, fBeamRotXML, fBeamZero, fDkMeta, fRandBeam, fRandUser, fTempRot, fhicl::ParameterSet::get(), fhicl::ParameterSet::is_key_to_table(), User2BeamPos(), and w.
Referenced by GetNuChoice().
void fluxr::DK2NuInterface::SetRootFile | ( | TFile * | rootFile | ) |
Definition at line 16 of file DK2NuInterface.cxx.
References fDk2Nu, fDk2NuTree, fDkMeta, fDkMetaTree, fNEntries, fNuChoice, fPOT, and fRun.
Referenced by GetNuMomentum().
void fluxr::DK2NuInterface::User2BeamPos | ( | const TLorentzVector & | usrxyz, |
TLorentzVector & | beamxyz | ||
) | const |
Definition at line 148 of file DK2NuInterface.cxx.
References fBeamRotInv, and fBeamZero.
Referenced by GetNuChoice(), and Init().
|
private |
Definition at line 57 of file DK2NuInterface.h.
Referenced by Init().
|
private |
Definition at line 55 of file DK2NuInterface.h.
Referenced by Init().
|
private |
Definition at line 54 of file DK2NuInterface.h.
Referenced by Beam2UserP4(), Beam2UserPos(), and Init().
|
private |
Definition at line 54 of file DK2NuInterface.h.
Referenced by Init(), and User2BeamPos().
|
private |
Definition at line 53 of file DK2NuInterface.h.
Referenced by Init().
|
private |
Definition at line 56 of file DK2NuInterface.h.
Referenced by Beam2UserPos(), Init(), and User2BeamPos().
|
private |
Definition at line 43 of file DK2NuInterface.h.
Referenced by FillMCFlux(), GetDk2Nu(), and SetRootFile().
|
private |
Definition at line 41 of file DK2NuInterface.h.
Referenced by FillMCFlux(), and SetRootFile().
|
private |
Definition at line 44 of file DK2NuInterface.h.
Referenced by Init(), and SetRootFile().
|
private |
Definition at line 42 of file DK2NuInterface.h.
Referenced by SetRootFile().
|
private |
Definition at line 46 of file DK2NuInterface.h.
Referenced by GetEntries(), and SetRootFile().
|
private |
Definition at line 45 of file DK2NuInterface.h.
Referenced by FillMCFlux(), GetNuChoice(), and SetRootFile().
|
private |
Definition at line 51 of file DK2NuInterface.h.
Referenced by FillMCFlux(), and GetNuMomentum().
|
private |
Definition at line 50 of file DK2NuInterface.h.
Referenced by FillMCFlux(), and GetNuPosition().
|
private |
Definition at line 48 of file DK2NuInterface.h.
Referenced by GetPOT(), and SetRootFile().
|
private |
Definition at line 58 of file DK2NuInterface.h.
Referenced by FillMCFlux(), and Init().
|
private |
Definition at line 58 of file DK2NuInterface.h.
Referenced by Init().
|
private |
Definition at line 47 of file DK2NuInterface.h.
Referenced by GetRun(), and SetRootFile().
|
private |
Definition at line 53 of file DK2NuInterface.h.
Referenced by Init().