1 #ifndef HELPER_PANDORAPFPARTICLES_H
2 #define HELPER_PANDORAPFPARTICLES_H
4 #include "art/Framework/Principal/Handle.h"
5 #include "art/Framework/Services/Registry/ServiceHandle.h"
28 #include "nusimdata/SimulationBase/MCParticle.h"
29 #include "nusimdata/SimulationBase/MCTruth.h"
30 #include "nusimdata/SimulationBase/simb.h"
31 #include "nusimdata/SimulationBase/MCFlux.h"
32 #include "nusimdata/SimulationBase/GTruth.h"
35 #include "canvas/Utilities/ensurePointer.h"
36 #include "canvas/Persistency/Common/FindManyP.h"
37 #include "canvas/Persistency/Common/FindMany.h"
38 #include "canvas/Persistency/Common/FindOneP.h"
39 #include "canvas/Persistency/Common/FindOne.h"
41 #include "messagefacility/MessageLogger/MessageLogger.h"
54 namespace single_photon
80 art::Ptr<recob::PFParticle> input_PFParticle,
81 std::vector< art::Ptr< larpandoraobj::PFParticleMetadata > > input_MetaData,
82 std::vector< art::Ptr<recob::Vertex > > input_Vertex,
83 std::vector< art::Ptr<recob::Cluster> > input_Clusters,
84 std::vector< art::Ptr<recob::Shower > > input_Showers,
85 std::vector< art::Ptr<recob::Track > > input_Tracks,
86 art::FindManyP<recob::Hit> input_Hits );
97 std::vector< art::Ptr< larpandoraobj::PFParticleMetadata > >
pMetaData;
98 std::vector< art::Ptr< recob::Vertex > >
pVertex;
const bool get_IsNuSlice() const
PandoraPFParticle * PPFP_GetPPFPFromPFID(std::vector< PandoraPFParticle > &PPFPs, int id)
const int get_PFParticleID() const
const int get_HasTrack() const
const int get_AncestorID() const
void set_ParticleID(const art::Ptr< anab::ParticleID > input_ParticleID)
std::vector< art::Ptr< recob::Cluster > > pClusters
art::Ptr< recob::Track > pTrack
const double * get_Vertex_pos() const
const bool get_HasPID() const
int DefineNuSlice(std::vector< PandoraPFParticle > &PPFPs)
art::Ptr< simb::MCTruth > pMCTruth
Declaration of signal hit object.
art::Ptr< recob::Shower > pShower
art::Ptr< recob::PFParticle > pPFParticle
Contains data associated to particles from detector simulation.
const std::vector< art::Ptr< anab::Calorimetry > > get_Calorimetries() const
const art::Ptr< anab::ParticleID > get_ParticleID() const
const int get_PdgCode() const
void PPFP_FindAncestor(std::vector< PandoraPFParticle > &PPFPs)
std::vector< art::Ptr< recob::Hit > > pPFPHits
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
art::Ptr< recob::Slice > pSlice
art::Ptr< recob::PFParticle > pAncestor
void set_NuScore(const double input_score)
std::vector< art::Ptr< recob::Hit > > pSliceHits
std::vector< art::Ptr< recob::Vertex > > pVertex
const double get_TrackScore() const
std::vector< art::Ptr< larpandoraobj::PFParticleMetadata > > pMetaData
art::Ptr< anab::ParticleID > pParticleID
std::vector< art::Ptr< simb::MCParticle > > pMCParticles
Declaration of cluster object.
Class def header for mctrack data container.
PandoraPFParticle * PPFP_GetPPFPFromTrack(std::vector< PandoraPFParticle > &PPFPs, art::Ptr< recob::Track > pTrack)
void set_Calorimetries(const std::vector< art::Ptr< anab::Calorimetry >> input_Calorimetries)
Provides recob::Track data product.
void PPFP_FindSliceIDandHits(std::vector< PandoraPFParticle > &PPFPs, art::Ptr< recob::Slice > slice, const std::vector< art::Ptr< recob::PFParticle > > PFP_in_slice, const std::vector< art::Ptr< recob::Hit > > Hit_inslice)
const int get_SliceID() const
std::vector< art::Ptr< recob::SpacePoint > > pSpacePoints
void set_AncestorID(const int input_number)
PandoraPFParticle * PPFP_GetPPFPFromShower(std::vector< PandoraPFParticle > &PPFPs, art::Ptr< recob::Shower > pShower)
object containing MC truth information necessary for making RawDigits and doing back tracking ...
Class def header for MCShower data container.
const double get_NuScore() const
void set_HasPID(const bool input_bool)
std::vector< art::Ptr< anab::Calorimetry > > pCalorimetries
const int get_HasShower() const
const bool get_IsClearCosmic() const
const bool get_IsNeutrino() const
PandoraPFParticle(art::Ptr< recob::PFParticle > input_PFParticle, std::vector< art::Ptr< larpandoraobj::PFParticleMetadata > > input_MetaData, std::vector< art::Ptr< recob::Vertex > > input_Vertex, std::vector< art::Ptr< recob::Cluster > > input_Clusters, std::vector< art::Ptr< recob::Shower > > input_Showers, std::vector< art::Ptr< recob::Track > > input_Tracks, art::FindManyP< recob::Hit > input_Hits)
helper function for LArPandoraInterface producer module
void set_SliceID(const int input_number)
void set_IsNuSlice(const bool input_bool)