Photon mapping transformation with reflection at x = 0. More...
#include <PhotonMappingXMirrorTransformations.h>
Classes | |
struct | Config |
Public Types | |
using | Parameters = art::ToolConfigTable< Config > |
Public Types inherited from phot::PhotonMappingIdentityTransformations | |
using | Parameters = art::ToolConfigTable< Config > |
Public Types inherited from phot::IPhotonMappingTransformations | |
using | OpDetID_t = int |
Type describing a optical detector ID. More... | |
using | LibraryIndex_t = OpDetID_t |
Type describing a library index. FIXME former LibraryOpDetID_t. More... | |
using | LibraryIndexToOpDetMap = std::vector< OpDetID_t > |
Type describing the mapping of optical detectors into library indices. More... | |
using | OpDetToLibraryIndexMap = std::vector< LibraryIndex_t > |
Type describing the mapping of library indices into optical detectors. More... | |
template<typename LibDataColl > | |
using | MappedOpDetData_t = phot::OpDetVisibilityData< util::collection_reference_t< LibDataColl >, util::collection_reference_t< OpDetToLibraryIndexMap const > > |
Type of optical detector data collection. More... | |
Public Member Functions | |
PhotonMappingXMirrorTransformations (Parameters const &config) | |
PhotonMappingXMirrorTransformations (Config const &config) | |
virtual geo::Point_t | detectorToLibrary (geo::Point_t const &location) const override |
Returns the representation within the library of a detector location. More... | |
Public Member Functions inherited from phot::PhotonMappingIdentityTransformations | |
PhotonMappingIdentityTransformations (Config const &) | |
Constructor: ignores the configuration. More... | |
PhotonMappingIdentityTransformations (Parameters const &config) | |
Constructor: ignores the configuration. More... | |
virtual LibraryIndex_t | opDetToLibraryIndex (geo::Point_t const &location, OpDetID_t opDetID) const override |
Maps an optical detector with its library index. More... | |
virtual OpDetID_t | libraryIndexToOpDet (geo::Point_t const &location, LibraryIndex_t libIndex) const override |
Maps a library index with an optical detector. More... | |
virtual OpDetToLibraryIndexMap const & | opDetsToLibraryIndices (geo::Point_t const &location) const override |
Returns a map of library indices as function of optical detectors. More... | |
virtual std::size_t | opDetMappingSize () const override |
Expected number of mappings of optical detector into library index. More... | |
virtual LibraryIndexToOpDetMap const & | libraryIndicesToOpDets (geo::Point_t const &location) const override |
Returns a map of optical detectors identifiers, one for each library index. More... | |
virtual std::size_t | libraryMappingSize (geo::Point_t const &location) const override |
Size of the mapping of library optical detectors. More... | |
Public Member Functions inherited from phot::IPhotonMappingTransformations | |
virtual | ~IPhotonMappingTransformations ()=default |
template<typename Coll > | |
auto | applyOpDetMapping (OpDetToLibraryIndexMap const &opDetToLibraryMap, Coll &&source, util::collection_value_t< Coll > defaultValue) const -> MappedOpDetData_t< Coll > |
template<typename Coll > | |
MappedOpDetData_t< Coll > | applyOpDetMapping (OpDetToLibraryIndexMap const &opDetToLibraryMap, Coll &&source, util::collection_value_t< Coll > defaultValue={}) const |
Remaps a collection indexed by library index into one indexed by optical detector IDs. More... | |
template<typename Coll > | |
auto | applyOpDetMapping (geo::Point_t const &location, Coll &&source, util::collection_value_t< Coll > defaultValue={}) const |
Remaps a collection indexed by library index into one indexed by optical detector IDs according to the mapping at location . More... | |
Additional Inherited Members | |
Static Public Attributes inherited from phot::IPhotonMappingTransformations | |
static constexpr OpDetID_t | InvalidOpDetID = std::numeric_limits<OpDetID_t>::max() |
Value used to identify an invalid optical detector. More... | |
static constexpr LibraryIndex_t | InvalidLibraryIndex = std::numeric_limits<LibraryIndex_t>::max() |
Value used for an invalid library index. More... | |
Protected Member Functions inherited from phot::PhotonMappingIdentityTransformations | |
virtual LibraryIndexToOpDetMap | makeLibraryIndicesToOpDetsMap () const |
Return a trivial global optical detector identifier mapping. More... | |
virtual OpDetToLibraryIndexMap | makeOpDetsToLibraryIndicesMap () const |
Return a trivial library index mapping. More... | |
Protected Attributes inherited from phot::PhotonMappingIdentityTransformations | |
geo::GeometryCore const * | fGeom = nullptr |
Detector geometry service provider. More... | |
OpDetToLibraryIndexMap | fOpDetsToLibraryIndicesMap |
Complete optical detector identifier mapping world-to-library. More... | |
LibraryIndexToOpDetMap | fLibraryIndicesToOpDetsMap |
Complete optical detector identifier mapping library-to-world. More... | |
Photon mapping transformation with reflection at x = 0.
This mapping describes an infinite planar mirror placed at .
Definition at line 30 of file PhotonMappingXMirrorTransformations.h.
Definition at line 44 of file PhotonMappingXMirrorTransformations.h.
|
inline |
Constructor: same configuration as phot::PhotonMappingIdentityTransformations
.
Definition at line 49 of file PhotonMappingXMirrorTransformations.h.
|
inline |
Constructor: same configuration as phot::PhotonMappingIdentityTransformations
.
Definition at line 54 of file PhotonMappingXMirrorTransformations.h.
|
inlineoverridevirtual |
Returns the representation within the library of a detector location.
location | position in world coordinates [cm] |
location
in the library spaceThe returned vector is the same as location
, but with the x component always positive..
No exception is ever thrown.
Reimplemented from phot::PhotonMappingIdentityTransformations.
Definition at line 70 of file PhotonMappingXMirrorTransformations.h.