LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
PhotonMappingIdentityTransformations.cxx
Go to the documentation of this file.
1
11
// LArSoft libraries
12
#include "
larsim/PhotonPropagation/LibraryMappingTools/PhotonMappingIdentityTransformations.h
"
13
14
#include <numeric>
// std::iota()
15
16
//------------------------------------------------------------------------------
17
phot::IPhotonMappingTransformations::LibraryIndexToOpDetMap
18
phot::PhotonMappingIdentityTransformations::makeLibraryIndicesToOpDetsMap
()
const
19
{
20
21
auto
const
nOpDets =
fGeom
->
NOpDets
();
22
23
LibraryIndexToOpDetMap
map(nOpDets);
24
std::iota(map.begin(), map.end(), 0);
25
26
return
map;
27
}
// phot::PhotonMappingIdentityTransformations::makeLibraryIndicesToOpDetsMap()
28
29
//------------------------------------------------------------------------------
30
phot::IPhotonMappingTransformations::OpDetToLibraryIndexMap
31
phot::PhotonMappingIdentityTransformations::makeOpDetsToLibraryIndicesMap
()
const
32
{
33
34
auto
const
nOpDets =
fGeom
->
NOpDets
();
35
36
OpDetToLibraryIndexMap
map(nOpDets);
37
std::iota(map.begin(), map.end(), 0);
38
39
return
map;
40
}
// phot::PhotonMappingIdentityTransformations::makeOpDetsToLibraryIndicesMap()
41
42
//------------------------------------------------------------------------------
phot::PhotonMappingIdentityTransformations::makeOpDetsToLibraryIndicesMap
OpDetToLibraryIndexMap makeOpDetsToLibraryIndicesMap() const
Return a trivial library index mapping.
Definition:
PhotonMappingIdentityTransformations.cxx:31
phot::PhotonMappingIdentityTransformations::fGeom
geo::GeometryCore const * fGeom
Detector geometry service provider.
Definition:
PhotonMappingIdentityTransformations.h:187
phot::PhotonMappingIdentityTransformations::makeLibraryIndicesToOpDetsMap
LibraryIndexToOpDetMap makeLibraryIndicesToOpDetsMap() const
Return a trivial global optical detector identifier mapping.
Definition:
PhotonMappingIdentityTransformations.cxx:18
phot::IPhotonMappingTransformations::LibraryIndexToOpDetMap
std::vector< OpDetID_t > LibraryIndexToOpDetMap
Type describing the mapping of optical detectors into library indices.
Definition:
IPhotonMappingTransformations.h:139
geo::GeometryCore::NOpDets
unsigned int NOpDets() const
Number of OpDets in the whole detector.
Definition:
GeometryCore.cxx:229
PhotonMappingIdentityTransformations.h
A photon mapping identity transformation.
phot::IPhotonMappingTransformations::OpDetToLibraryIndexMap
std::vector< LibraryIndex_t > OpDetToLibraryIndexMap
Type describing the mapping of library indices into optical detectors.
Definition:
IPhotonMappingTransformations.h:157
larsim
v09_43_00
source
larsim
PhotonPropagation
LibraryMappingTools
PhotonMappingIdentityTransformations.cxx
Generated on Thu May 2 2024 20:59:52 for LArSoft by
1.8.11