#include "art/Framework/Core/EDAnalyzer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Principal/Handle.h"
#include "art/Framework/Principal/Run.h"
#include "art/Framework/Principal/SubRun.h"
#include "canvas/Utilities/InputTag.h"
#include "fhiclcpp/ParameterSet.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
#include "art_root_io/TFileService.h"
#include "sbncode/CAFMaker/RecoUtils/RecoUtils.h"
#include "lardataobj/RecoBase/Hit.h"
#include "lardataobj/RecoBase/Cluster.h"
#include "lardataobj/RecoBase/PFParticle.h"
#include "lardataobj/RecoBase/SpacePoint.h"
#include "lardataobj/RecoBase/Track.h"
#include "lardataobj/RecoBase/Vertex.h"
#include "lardataobj/RecoBase/Slice.h"
#include "lardataobj/RecoBase/Shower.h"
#include "nusimdata/SimulationBase/MCParticle.h"
#include "larcore/Geometry/Geometry.h"
#include "larcore/CoreUtils/ServiceUtil.h"
#include "larcorealg/Geometry/GeometryCore.h"
#include "larcorealg/Geometry/Exceptions.h"
#include "lardataalg/DetectorInfo/DetectorPropertiesStandard.h"
#include "lardata/DetectorInfoServices/DetectorPropertiesService.h"
#include "larpandora/LArPandoraInterface/LArPandoraHelper.h"
#include "larcorealg/Geometry/BoxBoundedGeo.h"
#include "larsim/MCCheater/BackTrackerService.h"
#include "larsim/MCCheater/ParticleInventoryService.h"
#include "lardata/DetectorInfoServices/DetectorClocksService.h"
#include "larevt/SpaceChargeServices/SpaceChargeService.h"
#include "../LArRecoProducer/LArReco/TrackMomentumCalculator.h"
#include "sbncode/TPCReco/VertexStub/StubMergeAlgorithms.h"
#include "sbnobj/Common/Reco/VertexHit.h"
#include "sbnobj/Common/Reco/Stub.h"
Go to the source code of this file.
Classes | |
class | sbn::NuVertexChargeTree |
Analyzer module for use with sbn::Stub and sbn::VertexHit objects. More... | |
Namespaces | |
sbn | |
This module creates Common Analysis Files. | |
Functions | |
fRangeCalculator (p.get< float >("MinTrackLength", 0.1)) | |
_tree | Branch ("ifile",&fIFile,"ifile/i") |
_tree | Branch ("ievt",&fIEvt,"ievt/i") |
_tree | Branch ("evt",&fEvt,"evt/i") |
_tree | Branch ("nue",&fNuE,"nue/F") |
_tree | Branch ("numode",&fNuMode,"numode/i") |
_tree | Branch ("nuinttype",&fNuIntType,"nuinttype/i") |
_tree | Branch ("fsp_px",&fFSPPx) |
_tree | Branch ("fsp_py",&fFSPPy) |
_tree | Branch ("fsp_pz",&fFSPPz) |
_tree | Branch ("fsp_start_x",&fFSPStartZ) |
_tree | Branch ("fsp_start_y",&fFSPStartY) |
_tree | Branch ("fsp_start_z",&fFSPStartZ) |
_tree | Branch ("fsp_end_x",&fFSPEndZ) |
_tree | Branch ("fsp_end_y",&fFSPEndY) |
_tree | Branch ("fsp_end_z",&fFSPEndZ) |
_tree | Branch ("fsp_e",&fFSPE) |
_tree | Branch ("fsp_ke",&fFSPKE) |
_tree | Branch ("fsp_vise",&fFSPVisE) |
_tree | Branch ("fsp_q",&fFSPQ) |
_tree | Branch ("fsp_len",&fFSPLen) |
_tree | Branch ("fsp_pid",&fFSPPID) |
_tree | Branch ("fsp_matched",&fFSPMatched) |
_tree | Branch ("fsp_matched_pfp_primary",&fFSPMatchedPFPPrimary) |
_tree | Branch ("fsp_matched_pid",&fFSPMatchedPID) |
_tree | Branch ("fsp_matched_primary",&fFSPMtachedPrimary) |
_tree | Branch ("fsp_process_is_topping",&fFSPIsStopping) |
_tree | Branch ("fsp_maxq0",&fFSPMaxQ0) |
_tree | Branch ("fsp_maxq1",&fFSPMaxQ1) |
_tree | Branch ("fsp_maxq2",&fFSPMaxQ2) |
_tree | Branch ("fsp_pitch0",&fFSPPitch0) |
_tree | Branch ("fsp_pitch1",&fFSPPitch1) |
_tree | Branch ("fsp_pitch2",&fFSPPitch2) |
_tree | Branch ("reco_vert_dist",&fRecoVertDist,"reco_vert_dist/F") |
_tree | Branch ("vertex_hit_spid",&fVertexHitSPID) |
_tree | Branch ("vertex_hit_pitch",&fVertexHitPitch) |
_tree | Branch ("vertex_hit_dqdx",&fVertexHitdQdx) |
_tree | Branch ("vertex_hit_dedx",&fVertexHitdEdx) |
_tree | Branch ("vertex_hit_charge",&fVertexHitCharge) |
_tree | Branch ("vertex_hit_dist",&fVertexHitDist) |
_tree | Branch ("vertex_hit_vtxw",&fVertexHitVtxW) |
_tree | Branch ("vertex_hit_plane",&fVertexHitPlane) |
_tree | Branch ("vertex_hit_wire",&fVertexHitWire) |
_tree | Branch ("vertex_hit_peak_x",&fVertexHitPeakX) |
_tree | Branch ("vertex_hit_true_e",&fVertexHitTrueEnergy) |
_tree | Branch ("vertex_hit_true_proton_e",&fVertexHitTrueProtonEnergy) |
_tree | Branch ("vertex_hit_true_bragg_proton_e",&fVertexHitTrueBraggProtonEnergy) |
_tree | Branch ("vertex_hit_true_x",&fVertexHitTrueX) |
_tree | Branch ("vertex_hit_true_y",&fVertexHitTrueY) |
_tree | Branch ("vertex_hit_true_z",&fVertexHitTrueZ) |
_tree | Branch ("stub_endx",&fStubEndx) |
_tree | Branch ("stub_endy",&fStubEndy) |
_tree | Branch ("stub_endz",&fStubEndz) |
_tree | Branch ("stub_dirx",&fStubDirx) |
_tree | Branch ("stub_diry",&fStubDiry) |
_tree | Branch ("stub_dirz",&fStubDirz) |
_tree | Branch ("stub_length",&fStubLength) |
_tree | Branch ("stub_lenp",&fStubLenP) |
_tree | Branch ("stub_charge",&fStubCharge) |
_tree | Branch ("stub_trk_pitch",&fStubTrkPitch) |
_tree | Branch ("stub_pitch",&fStubPitch) |
_tree | Branch ("stub_nwire",&fStubNWire) |
_tree | Branch ("stub_hit_ind",&fStubHitInd) |
_tree | Branch ("stub_pfpid",&fStubPFPID) |
_tree | Branch ("stub_nplane",&fStubNPlane) |
_tree | Branch ("stub_vtx_w",&fStubVtxW) |
_tree | Branch ("stub_end_w",&fStubEndW) |
_tree | Branch ("stub_vtx_efield",&fStubVtxEField) |
_tree | Branch ("stub_end_efield",&fStubEndEField) |
_tree | Branch ("stub_qlength",&fStubQLength) |
_tree | Branch ("stub_qs",&fStubQs) |
_tree | Branch ("stub_ontracks",&fStubOnTracks) |
_tree | Branch ("stub_wires",&fStubWires) |
_tree | Branch ("stub_true_ke",&fStubTrueKE) |
_tree | Branch ("stub_true_length",&fStubTrueLength) |
_tree | Branch ("stub_true_id",&fStubTrueID) |
_tree | Branch ("stub_true_pdg",&fStubTruePdg) |
_tree | Branch ("stub_true_px",&fStubTruePx) |
_tree | Branch ("stub_true_py",&fStubTruePy) |
_tree | Branch ("stub_true_pz",&fStubTruePz) |
_tree | Branch ("stub_pfp_true_pdg",&fStubPFPTruePdg) |
_tree | Branch ("stub_pfp_true_px",&fStubPFPTruePx) |
_tree | Branch ("stub_pfp_true_py",&fStubPFPTruePy) |
_tree | Branch ("stub_pfp_true_pz",&fStubPFPTruePz) |
_tree | Branch ("stub_match_length",&fStubMatchLength) |
_tree | Branch ("stub_match",&fStubMatch) |
_tree | Branch ("stub_match_overlaps",&fStubMatchOverlaps) |
_tree | Branch ("stub_match_dot",&fStubMatchDot) |
_tree | Branch ("stub_xplane_match_length",&fStubXPlaneMatchLength) |
_tree | Branch ("stub_xplane_match",&fStubXPlaneMatch) |
_tree | Branch ("stub_xplane_match_toff",&fStubXPlaneMatchTOff) |
_tree | Branch ("stub_xplane_match_qoff",&fStubXPlaneMatchQOff) |
_tree | Branch ("stub_xplane_match_dqdxoff",&fStubXPlaneMatchdQdxOff) |
_tree | Branch ("stub_xplane_match_peakqoff",&fStubXPlaneMatchPeakQOff) |
_tree | Branch ("n_slice_particles",&fNSliceParticles,"n_slice_particles/i") |
_tree | Branch ("n_slice_primary_particles",&fNSlicePrimaryParticles,"n_slice_primary_particles/i") |
_tree | Branch ("n_slice_primary_tracks",&fNSlicePrimaryTracks,"n_slice_primary_tracks/i") |
_tree | Branch ("n_slice_primary_nus",&fNSlicePrimaryNus,"n_slice_primary_nus/i") |
_tree | Branch ("n_slice_primary_showers",&fNSlicePrimaryShowers,"n_slice_primary_showers/i") |
for (auto const &cryo:geometry->IterateCryostats()) | |
for (const std::vector< geo::BoxBoundedGeo > &tpcs:fTPCVolumes) | |
const simb::MCParticle * | Genie2G4MCParticle (const simb::MCParticle &genie_part, const simb::MCTruth &mctruth, const std::vector< art::Ptr< simb::MCParticle >> &g4_mcparticles, const std::vector< const sim::GeneratedParticleInfo * > infos) |
Variables | |
fIFile = 0 | |
art::ServiceHandle < art::TFileService > | tfs |
_tree = tfs->make<TTree>("VertexEAnalyzer", "kink_tree") | |
const geo::GeometryCore * | geometry = lar::providerFrom<geo::Geometry>() |
Definition in file NuVertexChargeTree_module.cc.
_tree Branch | ( | "ifile" | , |
& | fIFile, | ||
"ifile/i" | |||
) |
_tree Branch | ( | "ievt" | , |
& | fIEvt, | ||
"ievt/i" | |||
) |
_tree Branch | ( | "evt" | , |
& | fEvt, | ||
"evt/i" | |||
) |
_tree Branch | ( | "numode" | , |
& | fNuMode, | ||
"numode/i" | |||
) |
_tree Branch | ( | "nuinttype" | , |
& | fNuIntType, | ||
"nuinttype/i" | |||
) |
_tree Branch | ( | "fsp_px" | , |
& | fFSPPx | ||
) |
_tree Branch | ( | "fsp_py" | , |
& | fFSPPy | ||
) |
_tree Branch | ( | "fsp_pz" | , |
& | fFSPPz | ||
) |
_tree Branch | ( | "fsp_start_x" | , |
& | fFSPStartZ | ||
) |
_tree Branch | ( | "fsp_start_y" | , |
& | fFSPStartY | ||
) |
_tree Branch | ( | "fsp_start_z" | , |
& | fFSPStartZ | ||
) |
_tree Branch | ( | "fsp_end_x" | , |
& | fFSPEndZ | ||
) |
_tree Branch | ( | "fsp_end_y" | , |
& | fFSPEndY | ||
) |
_tree Branch | ( | "fsp_end_z" | , |
& | fFSPEndZ | ||
) |
_tree Branch | ( | "fsp_e" | , |
& | fFSPE | ||
) |
_tree Branch | ( | "fsp_ke" | , |
& | fFSPKE | ||
) |
_tree Branch | ( | "fsp_vise" | , |
& | fFSPVisE | ||
) |
_tree Branch | ( | "fsp_q" | , |
& | fFSPQ | ||
) |
_tree Branch | ( | "fsp_len" | , |
& | fFSPLen | ||
) |
_tree Branch | ( | "fsp_pid" | , |
& | fFSPPID | ||
) |
_tree Branch | ( | "fsp_matched" | , |
& | fFSPMatched | ||
) |
_tree Branch | ( | "fsp_matched_pfp_primary" | , |
& | fFSPMatchedPFPPrimary | ||
) |
_tree Branch | ( | "fsp_matched_pid" | , |
& | fFSPMatchedPID | ||
) |
_tree Branch | ( | "fsp_matched_primary" | , |
& | fFSPMtachedPrimary | ||
) |
_tree Branch | ( | "fsp_process_is_topping" | , |
& | fFSPIsStopping | ||
) |
_tree Branch | ( | "fsp_maxq0" | , |
& | fFSPMaxQ0 | ||
) |
_tree Branch | ( | "fsp_maxq1" | , |
& | fFSPMaxQ1 | ||
) |
_tree Branch | ( | "fsp_maxq2" | , |
& | fFSPMaxQ2 | ||
) |
_tree Branch | ( | "fsp_pitch0" | , |
& | fFSPPitch0 | ||
) |
_tree Branch | ( | "fsp_pitch1" | , |
& | fFSPPitch1 | ||
) |
_tree Branch | ( | "fsp_pitch2" | , |
& | fFSPPitch2 | ||
) |
_tree Branch | ( | "vertex_hit_spid" | , |
& | fVertexHitSPID | ||
) |
_tree Branch | ( | "vertex_hit_pitch" | , |
& | fVertexHitPitch | ||
) |
_tree Branch | ( | "vertex_hit_dqdx" | , |
& | fVertexHitdQdx | ||
) |
_tree Branch | ( | "vertex_hit_dedx" | , |
& | fVertexHitdEdx | ||
) |
_tree Branch | ( | "vertex_hit_charge" | , |
& | fVertexHitCharge | ||
) |
_tree Branch | ( | "vertex_hit_dist" | , |
& | fVertexHitDist | ||
) |
_tree Branch | ( | "vertex_hit_vtxw" | , |
& | fVertexHitVtxW | ||
) |
_tree Branch | ( | "vertex_hit_plane" | , |
& | fVertexHitPlane | ||
) |
_tree Branch | ( | "vertex_hit_wire" | , |
& | fVertexHitWire | ||
) |
_tree Branch | ( | "vertex_hit_peak_x" | , |
& | fVertexHitPeakX | ||
) |
_tree Branch | ( | "vertex_hit_true_e" | , |
& | fVertexHitTrueEnergy | ||
) |
_tree Branch | ( | "vertex_hit_true_proton_e" | , |
& | fVertexHitTrueProtonEnergy | ||
) |
_tree Branch | ( | "vertex_hit_true_bragg_proton_e" | , |
& | fVertexHitTrueBraggProtonEnergy | ||
) |
_tree Branch | ( | "vertex_hit_true_x" | , |
& | fVertexHitTrueX | ||
) |
_tree Branch | ( | "vertex_hit_true_y" | , |
& | fVertexHitTrueY | ||
) |
_tree Branch | ( | "vertex_hit_true_z" | , |
& | fVertexHitTrueZ | ||
) |
_tree Branch | ( | "stub_endx" | , |
& | fStubEndx | ||
) |
_tree Branch | ( | "stub_endy" | , |
& | fStubEndy | ||
) |
_tree Branch | ( | "stub_endz" | , |
& | fStubEndz | ||
) |
_tree Branch | ( | "stub_dirx" | , |
& | fStubDirx | ||
) |
_tree Branch | ( | "stub_diry" | , |
& | fStubDiry | ||
) |
_tree Branch | ( | "stub_dirz" | , |
& | fStubDirz | ||
) |
_tree Branch | ( | "stub_length" | , |
& | fStubLength | ||
) |
_tree Branch | ( | "stub_lenp" | , |
& | fStubLenP | ||
) |
_tree Branch | ( | "stub_charge" | , |
& | fStubCharge | ||
) |
_tree Branch | ( | "stub_trk_pitch" | , |
& | fStubTrkPitch | ||
) |
_tree Branch | ( | "stub_pitch" | , |
& | fStubPitch | ||
) |
_tree Branch | ( | "stub_nwire" | , |
& | fStubNWire | ||
) |
_tree Branch | ( | "stub_hit_ind" | , |
& | fStubHitInd | ||
) |
_tree Branch | ( | "stub_pfpid" | , |
& | fStubPFPID | ||
) |
_tree Branch | ( | "stub_nplane" | , |
& | fStubNPlane | ||
) |
_tree Branch | ( | "stub_vtx_w" | , |
& | fStubVtxW | ||
) |
_tree Branch | ( | "stub_end_w" | , |
& | fStubEndW | ||
) |
_tree Branch | ( | "stub_vtx_efield" | , |
& | fStubVtxEField | ||
) |
_tree Branch | ( | "stub_end_efield" | , |
& | fStubEndEField | ||
) |
_tree Branch | ( | "stub_qlength" | , |
& | fStubQLength | ||
) |
_tree Branch | ( | "stub_qs" | , |
& | fStubQs | ||
) |
_tree Branch | ( | "stub_ontracks" | , |
& | fStubOnTracks | ||
) |
_tree Branch | ( | "stub_wires" | , |
& | fStubWires | ||
) |
_tree Branch | ( | "stub_true_ke" | , |
& | fStubTrueKE | ||
) |
_tree Branch | ( | "stub_true_length" | , |
& | fStubTrueLength | ||
) |
_tree Branch | ( | "stub_true_id" | , |
& | fStubTrueID | ||
) |
_tree Branch | ( | "stub_true_pdg" | , |
& | fStubTruePdg | ||
) |
_tree Branch | ( | "stub_true_px" | , |
& | fStubTruePx | ||
) |
_tree Branch | ( | "stub_true_py" | , |
& | fStubTruePy | ||
) |
_tree Branch | ( | "stub_true_pz" | , |
& | fStubTruePz | ||
) |
_tree Branch | ( | "stub_pfp_true_pdg" | , |
& | fStubPFPTruePdg | ||
) |
_tree Branch | ( | "stub_pfp_true_px" | , |
& | fStubPFPTruePx | ||
) |
_tree Branch | ( | "stub_pfp_true_py" | , |
& | fStubPFPTruePy | ||
) |
_tree Branch | ( | "stub_pfp_true_pz" | , |
& | fStubPFPTruePz | ||
) |
_tree Branch | ( | "stub_match_length" | , |
& | fStubMatchLength | ||
) |
_tree Branch | ( | "stub_match" | , |
& | fStubMatch | ||
) |
_tree Branch | ( | "stub_match_overlaps" | , |
& | fStubMatchOverlaps | ||
) |
_tree Branch | ( | "stub_match_dot" | , |
& | fStubMatchDot | ||
) |
_tree Branch | ( | "stub_xplane_match_length" | , |
& | fStubXPlaneMatchLength | ||
) |
_tree Branch | ( | "stub_xplane_match" | , |
& | fStubXPlaneMatch | ||
) |
_tree Branch | ( | "stub_xplane_match_toff" | , |
& | fStubXPlaneMatchTOff | ||
) |
_tree Branch | ( | "stub_xplane_match_qoff" | , |
& | fStubXPlaneMatchQOff | ||
) |
_tree Branch | ( | "stub_xplane_match_dqdxoff" | , |
& | fStubXPlaneMatchdQdxOff | ||
) |
_tree Branch | ( | "stub_xplane_match_peakqoff" | , |
& | fStubXPlaneMatchPeakQOff | ||
) |
_tree Branch | ( | "n_slice_particles" | , |
& | fNSliceParticles, | ||
"n_slice_particles/i" | |||
) |
_tree Branch | ( | "n_slice_primary_particles" | , |
& | fNSlicePrimaryParticles, | ||
"n_slice_primary_particles/i" | |||
) |
_tree Branch | ( | "n_slice_primary_tracks" | , |
& | fNSlicePrimaryTracks, | ||
"n_slice_primary_tracks/i" | |||
) |
_tree Branch | ( | "n_slice_primary_nus" | , |
& | fNSlicePrimaryNus, | ||
"n_slice_primary_nus/i" | |||
) |
_tree Branch | ( | "n_slice_primary_showers" | , |
& | fNSlicePrimaryShowers, | ||
"n_slice_primary_showers/i" | |||
) |
for | ( | auto const &cryo:geometry-> | IterateCryostats() | ) |
Definition at line 376 of file NuVertexChargeTree_module.cc.
for | ( | const std::vector< geo::BoxBoundedGeo > &tpcs:fTPCVolumes | ) |
Definition at line 389 of file NuVertexChargeTree_module.cc.
fRangeCalculator | ( | p.get< float > | "MinTrackLength", 0.1 | ) |
const simb::MCParticle* Genie2G4MCParticle | ( | const simb::MCParticle & | genie_part, |
const simb::MCTruth & | mctruth, | ||
const std::vector< art::Ptr< simb::MCParticle >> & | g4_mcparticles, | ||
const std::vector< const sim::GeneratedParticleInfo * > | infos | ||
) |
Definition at line 412 of file NuVertexChargeTree_module.cc.
_tree = tfs->make<TTree>("VertexEAnalyzer", "kink_tree") |
Definition at line 256 of file NuVertexChargeTree_module.cc.
fIFile = 0 |
Definition at line 253 of file NuVertexChargeTree_module.cc.
const geo::GeometryCore* geometry = lar::providerFrom<geo::Geometry>() |
Definition at line 373 of file NuVertexChargeTree_module.cc.
art::ServiceHandle<art::TFileService> tfs |
Definition at line 254 of file NuVertexChargeTree_module.cc.