LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "PPFXFluxReader.h"
Public Member Functions | |
PPFXFluxReader (fhicl::ParameterSet const &pset, art::ProductRegistryHelper &helper, art::SourceHelper const &pm) | |
void | closeCurrentFile () |
void | readFile (std::string const &name, art::FileBlock *&fb) |
bool | readNext (art::RunPrincipal *const &inR, art::SubRunPrincipal *const &inSR, art::RunPrincipal *&outR, art::SubRunPrincipal *&outSR, art::EventPrincipal *&outE) |
Private Attributes | |
art::SourceHelper const & | fSourceHelper |
art::SubRunID | fSubRunID |
uint32_t | fEventCounter |
uint32_t | fEntry |
int | fMaxEvents |
uint32_t | fSkipEvents |
std::string | fInputType |
float | fPOT |
FluxInterface * | fFluxDriver |
TFile * | fFluxInputFile |
TH1D * | fHFlux [4] |
TH1D * | fHFluxParent [4][4] |
TH1D * | fHFluxSec [4][5] |
fhicl::ParameterSet | fConfigPS |
art::TypeLabel | fTLmctruth |
art::TypeLabel | fTLmcflux |
art::TypeLabel | fTLdk2nu |
art::TypeLabel | fTLnuchoice |
Definition at line 18 of file PPFXFluxReader.h.
fluxr::PPFXFluxReader::PPFXFluxReader | ( | fhicl::ParameterSet const & | pset, |
art::ProductRegistryHelper & | helper, | ||
art::SourceHelper const & | pm | ||
) |
Definition at line 39 of file PPFXFluxReader.cxx.
References fConfigPS, fEntry, fEventCounter, fHFlux, fHFluxParent, fHFluxSec, fInputType, fMaxEvents, fTLdk2nu, fTLmcflux, fTLmctruth, fTLnuchoice, art::ServiceHandle< T, SCOPE >::get(), fhicl::ParameterSet::get(), art::InEvent, art::InSubRun, and art::ProductRegistryHelper::reconstitutes().
void fluxr::PPFXFluxReader::closeCurrentFile | ( | ) |
Definition at line 127 of file PPFXFluxReader.cxx.
References fEntry, fEventCounter, fFluxInputFile, art::SubRunID::flushSubRun(), fSkipEvents, and fSubRunID.
void fluxr::PPFXFluxReader::readFile | ( | std::string const & | name, |
art::FileBlock *& | fb | ||
) |
Definition at line 137 of file PPFXFluxReader.cxx.
References fConfigPS, fFluxDriver, fFluxInputFile, fInputType, fPOT, fluxr::FluxInterface::GetEntries(), fluxr::FluxInterface::GetPOT(), and fluxr::FluxInterface::GetRun().
bool fluxr::PPFXFluxReader::readNext | ( | art::RunPrincipal *const & | inR, |
art::SubRunPrincipal *const & | inSR, | ||
art::RunPrincipal *& | outR, | ||
art::SubRunPrincipal *& | outSR, | ||
art::EventPrincipal *& | outE | ||
) |
Definition at line 167 of file PPFXFluxReader.cxx.
References simb::MCTruth::Add(), simb::MCParticle::AddTrajectoryPoint(), fEntry, fEventCounter, fFluxDriver, fHFlux, fHFluxParent, fHFluxSec, fluxr::FluxInterface::FillMCFlux(), fInputType, fMaxEvents, simb::MCFlux::fnenergyn, simb::MCFlux::fnimpwt, simb::MCFlux::fntype, simb::MCFlux::fnwtnear, fPOT, simb::MCFlux::fptype, fSourceHelper, fSubRunID, fTLdk2nu, fTLmcflux, fTLmctruth, fTLnuchoice, simb::MCFlux::ftptype, fluxr::FluxInterface::GetNuMomentum(), fluxr::FluxInterface::GetNuPosition(), fluxr::FluxInterface::GetRun(), art::SourceHelper::makeEventPrincipal(), art::SourceHelper::makePtr(), art::SourceHelper::makeRunPrincipal(), art::SourceHelper::makeSubRunPrincipal(), art::put_product_in_principal(), art::SubRunID::run(), art::SubRunID::runID(), simb::MCTruth::SetNeutrino(), art::SubRunID::subRun(), sumdata::POTSummary::totgoodpot, and sumdata::POTSummary::totpot.
|
private |
Definition at line 52 of file PPFXFluxReader.h.
Referenced by PPFXFluxReader(), and readFile().
|
private |
Definition at line 39 of file PPFXFluxReader.h.
Referenced by closeCurrentFile(), PPFXFluxReader(), and readNext().
|
private |
Definition at line 38 of file PPFXFluxReader.h.
Referenced by closeCurrentFile(), PPFXFluxReader(), and readNext().
|
private |
Definition at line 45 of file PPFXFluxReader.h.
Referenced by readFile(), and readNext().
|
private |
Definition at line 46 of file PPFXFluxReader.h.
Referenced by closeCurrentFile(), and readFile().
|
private |
Definition at line 48 of file PPFXFluxReader.h.
Referenced by PPFXFluxReader(), and readNext().
|
private |
Definition at line 49 of file PPFXFluxReader.h.
Referenced by PPFXFluxReader(), and readNext().
|
private |
Definition at line 50 of file PPFXFluxReader.h.
Referenced by PPFXFluxReader(), and readNext().
|
private |
Definition at line 42 of file PPFXFluxReader.h.
Referenced by PPFXFluxReader(), readFile(), and readNext().
|
private |
Definition at line 40 of file PPFXFluxReader.h.
Referenced by PPFXFluxReader(), and readNext().
|
private |
Definition at line 43 of file PPFXFluxReader.h.
Referenced by readFile(), and readNext().
|
private |
Definition at line 41 of file PPFXFluxReader.h.
Referenced by closeCurrentFile().
|
private |
Definition at line 35 of file PPFXFluxReader.h.
Referenced by readNext().
|
private |
Definition at line 36 of file PPFXFluxReader.h.
Referenced by closeCurrentFile(), and readNext().
|
private |
Definition at line 56 of file PPFXFluxReader.h.
Referenced by PPFXFluxReader(), and readNext().
|
private |
Definition at line 55 of file PPFXFluxReader.h.
Referenced by PPFXFluxReader(), and readNext().
|
private |
Definition at line 54 of file PPFXFluxReader.h.
Referenced by PPFXFluxReader(), and readNext().
|
private |
Definition at line 57 of file PPFXFluxReader.h.
Referenced by PPFXFluxReader(), and readNext().