LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
PhotonMappingIdentityTransformations.cxx
Go to the documentation of this file.
1 
11 // LArSoft libraries
13 
14 #include <numeric> // std::iota()
15 
16 //------------------------------------------------------------------------------
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 //------------------------------------------------------------------------------
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 //------------------------------------------------------------------------------
OpDetToLibraryIndexMap makeOpDetsToLibraryIndicesMap() const
Return a trivial library index mapping.
geo::GeometryCore const * fGeom
Detector geometry service provider.
LibraryIndexToOpDetMap makeLibraryIndicesToOpDetsMap() const
Return a trivial global optical detector identifier mapping.
std::vector< OpDetID_t > LibraryIndexToOpDetMap
Type describing the mapping of optical detectors into library indices.
unsigned int NOpDets() const
Number of OpDets in the whole detector.
A photon mapping identity transformation.
std::vector< LibraryIndex_t > OpDetToLibraryIndexMap
Type describing the mapping of library indices into optical detectors.