Perform user-level initialization.
34 std::cout << config->to_indented_string() << std::endl;
35 fOutputFile =
new TFile(config->get<std::string>(
"OutputFile",
"output.root").c_str(),
"CREATE");
41 fCutConfig = config->get<fhicl::ParameterSet>(
"Cuts");
44 fGoalPOT = config->get<
double>(
"GoalPOT", 0.);
51 std::vector<std::vector<std::string>> track_selector_strings = config->get<std::vector<std::vector<std::string>>>(
"TrackSelectors", {{
""}});
52 std::vector<std::vector<std::string>> track_selector_names = config->get<std::vector<std::vector<std::string>>>(
"TrackSelectorNames", {{
""}});
54 assert(track_selector_strings.size() == track_selector_names.size());
61 std::vector<std::string> track_profile_values = config->get<std::vector<std::string>>(
"TrackProfileValues", {});
62 for (
const std::string &
source: track_profile_values) {
63 fTrackProfileValues.push_back(uscript::compile<numu::RecoTrack, numu::TrueParticle, unsigned>(
"track",
"particle",
"mctype",
source.c_str()));
66 std::vector<std::string> track_profile_value_names = config->get<std::vector<std::string>>(
"TrackProfileValueNames", {});
67 std::vector<std::tuple<unsigned, float, float>> track_profile_xranges = config->get<std::vector<std::tuple<unsigned, float, float>>>(
"TrackProfileXRanges", {});
69 assert(track_profile_value_names.size() == track_profile_xranges.size());
std::vector< numu::TrackSelector > fTrackSelectors
Histograms fCosmicHistograms
const geo::AuxDetGeometryCore * GetAuxDetGeometryProvider() const
const geo::GeometryCore * GetGeometryProvider() const
std::vector< TrackSelector > MultiplyTrackSelectors(const std::vector< std::vector< std::string >> &track_function_strings)
std::vector< std::string > fTrackSelectorNames
void Initialize(const geo::GeometryCore *geometry, const sbnd::CRTGeoAlg &crt_geo, const Cuts &cuts, const std::string &prefix, const std::vector< std::string > &track_histo_types, const std::vector< std::string > &track_profile_types, const std::vector< std::tuple< unsigned, float, float >> &track_profile_xranges)
fhicl::ParameterSet fCutConfig
sbnd::CRTGeoAlg * fCRTGeo
std::string fHistogramPostfix
ProviderManager * fProviderManager
Interface for provider access.
void Initialize(const fhicl::ParameterSet &fcl)
void Initialize(const fhicl::ParameterSet &cfg, const geo::GeometryCore *geometry)
numu::RecoEvent * fRecoEvent
std::vector< numu::TrackFunction > fTrackProfileValues
std::vector< std::string > MultiplyNames(const std::vector< std::vector< std::string >> &strings, char join='_')
BEGIN_PROLOG could also be cout