#include <PointIdAlg.h>
Classes | |
struct | Config |
struct | WireDrift |
Public Types | |
enum | EMask { kNone = 0, kPdgMask = 0x00000FFF, kTypeMask = 0x0000F000, kVtxMask = 0xFFFF0000 } |
enum | ETrkType { kDelta = 0x1000, kMichel = 0x2000, kPriEl = 0x4000, kPriMu = 0x8000 } |
enum | EVtxId { kNuNC = 0x0010000, kNuCC = 0x0020000, kNuPri = 0x0040000, kNuE = 0x0100000, kNuMu = 0x0200000, kNuTau = 0x0400000, kHadr = 0x1000000, kPi0 = 0x2000000, kDecay = 0x4000000, kConv = 0x8000000, kElectronEnd = 0x10000000, kElastic = 0x20000000, kInelastic = 0x40000000 } |
Public Types inherited from img::DataProviderAlg | |
enum | EDownscaleMode { kMax = 1, kMaxMean = 2, kMean = 3 } |
Public Member Functions | |
TrainingDataAlg (const fhicl::ParameterSet &pset) | |
TrainingDataAlg (const Config &config) | |
~TrainingDataAlg () override | |
void | reconfigure (const Config &config) |
bool | saveSimInfo () const |
bool | setEventData (const art::Event &event, detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, unsigned int plane, unsigned int tpc, unsigned int cryo) |
bool | setDataEventData (const art::Event &event, detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, unsigned int plane, unsigned int tpc, unsigned int cryo) |
bool | findCrop (float max_e_cut, unsigned int &w0, unsigned int &w1, unsigned int &d0, unsigned int &d1) const |
double | getEdepTot () const |
std::vector< float > const & | wireEdep (size_t widx) const |
std::vector< int > const & | wirePdg (size_t widx) const |
Public Member Functions inherited from img::DataProviderAlg | |
DataProviderAlg (const fhicl::ParameterSet &pset) | |
DataProviderAlg (const Config &config) | |
virtual | ~DataProviderAlg () |
bool | setWireDriftData (const detinfo::DetectorClocksData &clock_data, const detinfo::DetectorPropertiesData &det_prop, const std::vector< recob::Wire > &wires, unsigned int plane, unsigned int tpc, unsigned int cryo) |
std::vector< float > const & | wireData (size_t widx) const |
std::vector< std::vector< float > > | getPatch (size_t wire, float drift, size_t patchSizeW, size_t patchSizeD) const |
float | getPixelOrZero (int wire, int drift) const |
double | getAdcSum () const |
size_t | getAdcArea () const |
float | poolMax (int wire, int drift, size_t r=0) const |
Pool max value in a patch around the wire/drift pixel. More... | |
unsigned int | Cryo () const |
Pool sum of pixels in a patch around the wire/drift pixel. More... | |
unsigned int | TPC () const |
unsigned int | Plane () const |
unsigned int | NWires () const |
unsigned int | NScaledDrifts () const |
unsigned int | NCachedDrifts () const |
unsigned int | DriftWindow () const |
float | ZeroLevel () const |
Level of zero ADC after scaling. More... | |
double | LifetimeCorrection (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, double tick) const |
Protected Member Functions | |
img::DataProviderAlgView | resizeView (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, size_t wires, size_t drifts) override |
Protected Member Functions inherited from img::DataProviderAlg | |
std::vector< float > | downscaleMax (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
std::vector< float > | downscaleMaxMean (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
std::vector< float > | downscaleMean (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
std::vector< float > | downscale (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
size_t | getDriftIndex (float drift) const |
std::optional< std::vector< float > > | setWireData (std::vector< float > const &adc, size_t wireIdx) const |
bool | patchFromDownsampledView (size_t wire, float drift, size_t size_w, size_t size_d, std::vector< std::vector< float >> &patch) const |
bool | patchFromOriginalView (size_t wire, float drift, size_t size_w, size_t size_d, std::vector< std::vector< float >> &patch) const |
Private Member Functions | |
WireDrift | getProjection (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const TLorentzVector &tvec, unsigned int plane) const |
bool | setWireEdepsAndLabels (std::vector< float > const &edeps, std::vector< int > const &pdgs, size_t wireIdx) |
void | collectVtxFlags (std::unordered_map< size_t, std::unordered_map< int, int >> &wireToDriftToVtxFlags, detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const std::unordered_map< int, const simb::MCParticle * > &particleMap, unsigned int plane) const |
bool | isElectronEnd (const simb::MCParticle &particle, const std::unordered_map< int, const simb::MCParticle * > &particleMap) const |
bool | isMuonDecaying (const simb::MCParticle &particle, const std::unordered_map< int, const simb::MCParticle * > &particleMap) const |
Static Private Member Functions | |
static float | particleRange2 (const simb::MCParticle &particle) |
Private Attributes | |
double | fEdepTot |
std::vector< std::vector< float > > | fWireDriftEdep |
std::vector< std::vector< int > > | fWireDriftPdg |
art::InputTag | fWireProducerLabel |
art::InputTag | fHitProducerLabel |
art::InputTag | fTrackModuleLabel |
art::InputTag | fSimulationProducerLabel |
art::InputTag | fSimChannelProducerLabel |
bool | fSaveVtxFlags |
bool | fSaveSimInfo |
unsigned int | fAdcDelay |
std::vector< size_t > | fEventsPerBin |
Additional Inherited Members | |
Protected Attributes inherited from img::DataProviderAlg | |
DataProviderAlgView | fAlgView |
EDownscaleMode | fDownscaleMode |
size_t | fDriftWindow |
bool | fDownscaleFullView |
float | fDriftWindowInv |
calo::CalorimetryAlg | fCalorimetryAlg |
geo::GeometryCore const * | fGeometry |
Definition at line 198 of file PointIdAlg.h.
Enumerator | |
---|---|
kNone | |
kPdgMask | |
kTypeMask | |
kVtxMask |
Definition at line 200 of file PointIdAlg.h.
Enumerator | |
---|---|
kDelta | |
kMichel | |
kPriEl | |
kPriMu |
Definition at line 207 of file PointIdAlg.h.
Enumerator | |
---|---|
kNuNC | |
kNuCC | |
kNuPri | |
kNuE | |
kNuMu | |
kNuTau | |
kHadr | |
kPi0 | |
kDecay | |
kConv | |
kElectronEnd | |
kElastic | |
kInelastic |
Definition at line 214 of file PointIdAlg.h.
|
inline |
Definition at line 254 of file PointIdAlg.h.
nnet::TrainingDataAlg::TrainingDataAlg | ( | const Config & | config | ) |
Definition at line 334 of file PointIdAlg.cxx.
|
overridedefault |
|
private |
Definition at line 554 of file PointIdAlg.cxx.
bool nnet::TrainingDataAlg::findCrop | ( | float | max_e_cut, |
unsigned int & | w0, | ||
unsigned int & | w1, | ||
unsigned int & | d0, | ||
unsigned int & | d1 | ||
) | const |
Definition at line 1020 of file PointIdAlg.cxx.
|
inline |
Definition at line 293 of file PointIdAlg.h.
|
private |
Definition at line 425 of file PointIdAlg.cxx.
|
private |
Definition at line 469 of file PointIdAlg.cxx.
|
private |
Definition at line 524 of file PointIdAlg.cxx.
|
inlinestaticprivate |
Definition at line 340 of file PointIdAlg.h.
void nnet::TrainingDataAlg::reconfigure | ( | const Config & | config | ) |
|
overrideprotectedvirtual |
Reimplemented from img::DataProviderAlg.
Definition at line 358 of file PointIdAlg.cxx.
|
inline |
Definition at line 265 of file PointIdAlg.h.
bool nnet::TrainingDataAlg::setDataEventData | ( | const art::Event & | event, |
detinfo::DetectorClocksData const & | clockData, | ||
detinfo::DetectorPropertiesData const & | detProp, | ||
unsigned int | plane, | ||
unsigned int | tpc, | ||
unsigned int | cryo | ||
) |
Definition at line 711 of file PointIdAlg.cxx.
bool nnet::TrainingDataAlg::setEventData | ( | const art::Event & | event, |
detinfo::DetectorClocksData const & | clockData, | ||
detinfo::DetectorPropertiesData const & | detProp, | ||
unsigned int | plane, | ||
unsigned int | tpc, | ||
unsigned int | cryo | ||
) |
Definition at line 859 of file PointIdAlg.cxx.
|
private |
Definition at line 381 of file PointIdAlg.cxx.
|
inline |
Definition at line 298 of file PointIdAlg.h.
|
inline |
Definition at line 303 of file PointIdAlg.h.
|
private |
Definition at line 365 of file PointIdAlg.h.
|
private |
Definition at line 353 of file PointIdAlg.h.
|
private |
Definition at line 367 of file PointIdAlg.h.
|
private |
Definition at line 358 of file PointIdAlg.h.
|
private |
Definition at line 363 of file PointIdAlg.h.
|
private |
Definition at line 362 of file PointIdAlg.h.
|
private |
Definition at line 361 of file PointIdAlg.h.
|
private |
Definition at line 360 of file PointIdAlg.h.
|
private |
Definition at line 359 of file PointIdAlg.h.
|
private |
Definition at line 354 of file PointIdAlg.h.
|
private |
Definition at line 355 of file PointIdAlg.h.
|
private |
Definition at line 357 of file PointIdAlg.h.