Calculate and cache electrostatic potential between cells. More...
#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-21/LEM/func/DistanceMap.h"
Public Member Functions | |
double | InvDist (int aplane, int bplane, int acell, int bcell) const |
double | InvDist (const LiteHit &a, const LiteHit &b) const |
TH2 * | MakeHist () const |
Static Public Member Functions | |
static const DistanceMap & | Instance () |
Singleton. More... | |
static void | SetPlaneScale (double ps) |
Must call before first call to Instance() More... | |
static void | SetCellScale (double cs) |
static void | SetDecayPower (double dp) |
static void | SetExpMode (bool em=true) |
Static Protected Member Functions | |
static double | DistFunc (double dp, double dc) |
Protected Attributes | |
double | fInvDistMap [kNumPlanes][kNumCells] |
Static Protected Attributes | |
static double | fgPlaneScale = 3.5 |
static double | fgCellScale = 10.5 |
static double | fgDecayPower = -0.25 |
static bool | fgExpMode = false |
Private Member Functions | |
DistanceMap () | |
Calculate and cache electrostatic potential between cells.
Definition at line 20 of file DistanceMap.h.
|
private |
Definition at line 33 of file DistanceMap.cxx.
References plot_validation_datamc::c, confusionMatrixTree::count, DistFunc(), E, fInvDistMap, lem::kNumCells, lem::kNumPlanes, and util::sqr().
|
staticprotected |
Definition at line 86 of file DistanceMap.cxx.
References stan::math::exp(), fgCellScale, fgDecayPower, fgExpMode, fgPlaneScale, cet::pow(), and util::pythag().
Referenced by DistanceMap(), and SetExpMode().
|
static |
Singleton.
Definition at line 26 of file DistanceMap.cxx.
Referenced by lem::FillPotential(), and lem::MatchableEvent::MatchableEvent().
Definition at line 99 of file DistanceMap.cxx.
References abs(), ana::assert(), fInvDistMap, lem::kNumCells, and lem::kNumPlanes.
Referenced by lem::FillPotential(), InvDist(), and lem::MatchableEvent::MatchableEvent().
Definition at line 117 of file DistanceMap.cxx.
References lem::LiteHit::Cell(), InvDist(), and lem::LiteHit::Plane().
TH2 * lem::DistanceMap::MakeHist | ( | ) | const |
Definition at line 72 of file DistanceMap.cxx.
References plot_validation_datamc::c, fInvDistMap, lem::kNumCells, and lem::kNumPlanes.
|
inlinestatic |
Definition at line 33 of file DistanceMap.h.
References lem_server::cs, and fgCellScale.
Referenced by lem::FindMatchesTranspose::reconfigure(), lem::FindLEMMatches::reconfigure(), and lem::LEM::reconfigure().
|
inlinestatic |
Definition at line 34 of file DistanceMap.h.
References fgDecayPower.
Referenced by lem::FindMatchesTranspose::reconfigure(), lem::FindLEMMatches::reconfigure(), and lem::LEM::reconfigure().
|
inlinestatic |
Definition at line 35 of file DistanceMap.h.
References DistFunc(), and fgExpMode.
Referenced by lem::FindMatchesTranspose::reconfigure(), lem::FindLEMMatches::reconfigure(), and lem::LEM::reconfigure().
|
inlinestatic |
Must call before first call to Instance()
Definition at line 32 of file DistanceMap.h.
References fgPlaneScale, and nd_projection_maker::ps.
Referenced by lem::FindMatchesTranspose::reconfigure(), lem::FindLEMMatches::reconfigure(), and lem::LEM::reconfigure().
|
staticprotected |
Definition at line 41 of file DistanceMap.h.
Referenced by DistFunc(), and SetCellScale().
|
staticprotected |
Definition at line 42 of file DistanceMap.h.
Referenced by DistFunc(), and SetDecayPower().
|
staticprotected |
Definition at line 43 of file DistanceMap.h.
Referenced by DistFunc(), and SetExpMode().
|
staticprotected |
Definition at line 40 of file DistanceMap.h.
Referenced by DistFunc(), and SetPlaneScale().
|
protected |
Definition at line 45 of file DistanceMap.h.
Referenced by DistanceMap(), InvDist(), and MakeHist().