4 #include "art/Framework/Principal/Event.h"
5 #include "art/Framework/Principal/Handle.h"
6 #include "canvas/Persistency/Common/FindManyP.h"
25 #include "art/Utilities/make_tool.h"
38 void Setup(
const art::Event &
e,
const art::InputTag &pfplabel,
const art::InputTag &trklabel);
49 art::Ptr<recob::PFParticle> &stub_pfp);
51 StubBuilder(fhicl::ParameterSet
const&
p,
bool PositionsAreSCECorrected):
57 fNormTools.push_back(art::make_tool<INormalizeCharge>(
p));
66 std::vector<std::unique_ptr<INormalizeCharge>>
fNormTools;
69 std::map<unsigned, std::vector<art::Ptr<recob::Hit>>>
fSliceHits;
70 std::map<unsigned, std::vector<art::Ptr<recob::PFParticle>>>
fSlicePFPs;
71 std::map<unsigned, std::vector<art::Ptr<recob::Track>>>
fSliceTrks;
72 std::map<unsigned, std::vector<std::vector<art::Ptr<recob::Hit>>>>
fSlicePFPHits;
73 std::map<unsigned, std::vector<std::vector<art::Ptr<recob::Hit>>>>
fSliceTrkHits;
74 std::map<unsigned, std::vector<std::vector<const recob::TrackHitMeta *>>>
fSliceTrkTHMs;
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Vector_t
Type for representation of momenta in 3D space.
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
double Normalize(double dQdx, const art::Event &e, const recob::Hit &h, const geo::Point_t &location, const geo::Vector_t &direction, double t0)
std::map< unsigned, std::vector< art::Ptr< recob::PFParticle > > > fSlicePFPs
std::map< unsigned, std::vector< std::vector< art::Ptr< recob::Hit > > > > fSliceTrkHits
void Setup(const art::Event &e, const art::InputTag &pfplabel, const art::InputTag &trklabel)
Declaration of signal hit object.
std::vector< std::unique_ptr< INormalizeCharge > > fNormTools
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Access the description of detector geometry.
calo::CalorimetryAlg fCaloAlg
std::map< unsigned, std::vector< std::vector< art::Ptr< recob::Hit > > > > fSlicePFPHits
bool fPositionsAreSCECorrected
StubBuilder(fhicl::ParameterSet const &p, bool PositionsAreSCECorrected)
Description of geometry of one entire detector.
Declaration of cluster object.
Provides recob::Track data product.
std::map< unsigned, std::vector< std::vector< const recob::TrackHitMeta * > > > fSliceTrkTHMs
Contains all timing reference information for the detector.
sbn::Stub FromVertexHit(const art::Ptr< recob::Slice > &slice, const sbn::VertexHit &vhit, const recob::Hit &vhit_hit, const geo::GeometryCore *geo, const spacecharge::SpaceCharge *sce, const detinfo::DetectorClocksData &dclock, const detinfo::DetectorPropertiesData &dprop, const art::Event &e, std::vector< art::Ptr< recob::Hit >> &stub_hits, art::Ptr< recob::PFParticle > &stub_pfp)
std::map< unsigned, std::vector< art::Ptr< recob::Hit > > > fSliceHits
2D representation of charge deposited in the TDC/wire plane
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
std::map< unsigned, std::vector< art::Ptr< recob::Track > > > fSliceTrks
std::vector< fhicl::ParameterSet > fNormToolConfig
This is an interface for an art Tool which scales charge by some factor given information about its a...