Producer algorithm for RegPixelMap3D, input to CVN neural net.
More...
#include <RegPixelMap3DProducer.h>
|
| RegPixelMap3DProducer (int nbinsX, int nbinsY, int nbinsZ, double XResolution, double YResolution, double ZResolution, bool Cropped, bool ProngOnly) |
|
RegCNNBoundary3D | Define3DBoundary (detinfo::DetectorPropertiesData const &detProp, std::vector< art::Ptr< recob::Hit > > const &cluster, const std::vector< float > &vtx) |
| Get boundaries for pixel map representation of cluster. More...
|
|
RegPixelMap3D | Create3DMap (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, std::vector< art::Ptr< recob::Hit > > const &cluster, art::FindManyP< recob::SpacePoint > const &fmSPFromHits, art::FindManyP< recob::Track > const &fmtrkhit, const std::vector< float > &vtx) |
|
RegPixelMap3D | Create3DMapGivenBoundaryBySP (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, std::vector< art::Ptr< recob::Hit > > const &cluster, const RegCNNBoundary3D &bound, art::FindManyP< recob::SpacePoint > const &fmSPFromHits, art::FindManyP< recob::Track > const &fmtrkhit, const bool &Cropped, const bool &ProngOnly) |
|
RegPixelMap3D | Create3DMap (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, std::vector< art::Ptr< recob::Hit > > const &cluster, art::FindManyP< recob::SpacePoint > const &fmSPFromHits, art::FindManyP< recob::Shower > const &fmshwkhit, const std::vector< float > &vtx) |
|
RegPixelMap3D | Create3DMapGivenBoundaryBySP (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, std::vector< art::Ptr< recob::Hit > > const &cluster, const RegCNNBoundary3D &bound, art::FindManyP< recob::SpacePoint > const &fmSPFromHits, art::FindManyP< recob::Shower > const &fmshwhit, const bool &Cropped, const bool &ProngOnly) |
|
Producer algorithm for RegPixelMap3D, input to CVN neural net.
Definition at line 46 of file RegPixelMap3DProducer.h.
cnn::RegPixelMap3DProducer::RegPixelMap3DProducer |
( |
int |
nbinsX, |
|
|
int |
nbinsY, |
|
|
int |
nbinsZ, |
|
|
double |
XResolution, |
|
|
double |
YResolution, |
|
|
double |
ZResolution, |
|
|
bool |
Cropped, |
|
|
bool |
ProngOnly |
|
) |
| |
Definition at line 34 of file RegPixelMap3DProducer.cxx.
RegCNNBoundary3D Define3DBoundary(detinfo::DetectorPropertiesData const &detProp, std::vector< art::Ptr< recob::Hit > > const &cluster, const std::vector< float > &vtx)
Get boundaries for pixel map representation of cluster.
RegPixelMap3D Create3DMapGivenBoundaryBySP(detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, std::vector< art::Ptr< recob::Hit > > const &cluster, const RegCNNBoundary3D &bound, art::FindManyP< recob::SpacePoint > const &fmSPFromHits, art::FindManyP< recob::Track > const &fmtrkhit, const bool &Cropped, const bool &ProngOnly)
Definition at line 101 of file RegPixelMap3DProducer.cxx.
RegCNNBoundary3D Define3DBoundary(detinfo::DetectorPropertiesData const &detProp, std::vector< art::Ptr< recob::Hit > > const &cluster, const std::vector< float > &vtx)
Get boundaries for pixel map representation of cluster.
RegPixelMap3D Create3DMapGivenBoundaryBySP(detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, std::vector< art::Ptr< recob::Hit > > const &cluster, const RegCNNBoundary3D &bound, art::FindManyP< recob::SpacePoint > const &fmSPFromHits, art::FindManyP< recob::Track > const &fmtrkhit, const bool &Cropped, const bool &ProngOnly)
Definition at line 48 of file RegPixelMap3DProducer.cxx.
57 std::cout<<
"create 3D pixel maps"<<
std::endl;
59 RegPixelMap3D
pm(bound, Cropped, ProngOnly);
61 if (!fmSPFromHits.isValid())
return pm;
64 unsigned int nhits = cluster.size();
65 for (
unsigned int ihit= 0; ihit< nhits; ++ihit) {
68 std::vector<art::Ptr<recob::SpacePoint> > sp = fmSPFromHits.at(ihit);
78 std::vector<float> shifted_coordinates(3);
79 shifted_coordinates[0] =
coordinates[0] - bound.Center(0) + bound.Length(0)/2;
80 shifted_coordinates[1] =
coordinates[1] - bound.Center(1) + bound.Length(1)/2;
81 shifted_coordinates[2] =
coordinates[2] - bound.Center(2) + bound.Length(2)/8;
88 int hit_prong_tag = -1;
89 if (fmtrkhit.isValid() && fmtrkhit.at(ihit).size()!=0) {
90 hit_prong_tag = fmtrkhit.at(ihit)[0]->ID();
93 pm.AddHit(shifted_coordinates[0], shifted_coordinates[1], shifted_coordinates[2], correctedHitCharge, hit_prong_tag);
float Integral() const
Integral under the calibrated signal waveform of the hit, in tick x ADC units.
Detector simulation of raw signals on wires.
float PeakTime() const
Time of the signal peak, in tick units.
double sampling_rate(DetectorClocksData const &data)
Returns the period of the TPC readout electronics clock.
QTextStream & endl(QTextStream &s)
Definition at line 115 of file RegPixelMap3DProducer.cxx.
124 std::cout<<
"create 3D pixel maps, tag by Shower"<<
std::endl;
126 RegPixelMap3D
pm(bound, Cropped, ProngOnly);
128 if (!fmSPFromHits.isValid())
return pm;
131 unsigned int nhits = cluster.size();
132 for (
unsigned int ihit= 0; ihit< nhits; ++ihit) {
135 std::vector<art::Ptr<recob::SpacePoint> > sp = fmSPFromHits.at(ihit);
145 std::vector<float> shifted_coordinates(3);
146 shifted_coordinates[0] =
coordinates[0] - bound.Center(0) + bound.Length(0)/2;
147 shifted_coordinates[1] =
coordinates[1] - bound.Center(1) + bound.Length(1)/2;
148 shifted_coordinates[2] =
coordinates[2] - bound.Center(2) + bound.Length(2)/8;
155 int hit_prong_tag = -1;
156 if (fmshwhit.isValid() && fmshwhit.at(ihit).size()!=0) {
157 hit_prong_tag = fmshwhit.at(ihit)[0]->ID();
160 pm.AddHit(shifted_coordinates[0], shifted_coordinates[1], shifted_coordinates[2], correctedHitCharge, hit_prong_tag);
float Integral() const
Integral under the calibrated signal waveform of the hit, in tick x ADC units.
Detector simulation of raw signals on wires.
float PeakTime() const
Time of the signal peak, in tick units.
double sampling_rate(DetectorClocksData const &data)
Returns the period of the TPC readout electronics clock.
QTextStream & endl(QTextStream &s)
Get boundaries for pixel map representation of cluster.
Definition at line 170 of file RegPixelMap3DProducer.cxx.
176 vtx[0], vtx[1], vtx[2]);
bool cnn::RegPixelMap3DProducer::fCropped |
|
private |
double cnn::RegPixelMap3DProducer::fLengthX |
|
private |
double cnn::RegPixelMap3DProducer::fLengthY |
|
private |
double cnn::RegPixelMap3DProducer::fLengthZ |
|
private |
int cnn::RegPixelMap3DProducer::fNBinsX |
|
private |
int cnn::RegPixelMap3DProducer::fNBinsY |
|
private |
int cnn::RegPixelMap3DProducer::fNBinsZ |
|
private |
bool cnn::RegPixelMap3DProducer::fProngOnly |
|
private |
The documentation for this class was generated from the following files: