LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
TODO doc. More...
#include "PhotonLibraryHybrid.h"
Classes | |
struct | Exception |
struct | FitFunc |
struct | OpDetRecord |
Public Types | |
using | Counts_t = const float * |
Type for visibility count per optical channel. More... | |
using | T0s_t = const float * |
Type for time of arrival per optical channel. More... | |
using | Params_t = std::vector< float > const * |
using | Functions_t = TF1 * |
Public Member Functions | |
PhotonLibraryHybrid (const std::string &fname, const sim::PhotonVoxelDef &voxdef) | |
virtual | ~PhotonLibraryHybrid () |
virtual float | GetCount (size_t Voxel, size_t OpChannel) const override |
virtual const float * | GetCounts (size_t Voxel) const override |
Returns a pointer to NOpChannels() visibility values, one per channel. More... | |
virtual bool | hasReflected () const override |
Don't implement reflected light. More... | |
virtual const float * | GetReflCounts (size_t Voxel) const override |
virtual float | GetReflCount (size_t Voxel, size_t OpChannel) const override |
virtual bool | hasReflectedT0 () const override |
Don't implement reflected light timing. More... | |
virtual const float * | GetReflT0s (size_t Voxel) const override |
virtual float | GetReflT0 (size_t Voxel, size_t OpChannel) const override |
virtual int | NOpChannels () const override |
virtual int | NVoxels () const override |
virtual bool | isVoxelValid (size_t Voxel) const |
size_t | LibrarySize () const |
Returns the number of elements in the library. More... | |
Protected Attributes | |
const sim::PhotonVoxelDef & | fVoxDef |
std::vector< OpDetRecord > | fRecords |
TODO doc.
Definition at line 19 of file PhotonLibraryHybrid.h.
|
inherited |
Type for visibility count per optical channel.
Definition at line 17 of file IPhotonLibrary.h.
|
inherited |
Type for parametrization function (which is not part of this interface yet).
Definition at line 28 of file IPhotonLibrary.h.
|
inherited |
Type for function parameters (which is not part of this interface yet).
Definition at line 24 of file IPhotonLibrary.h.
|
inherited |
Type for time of arrival per optical channel.
Definition at line 20 of file IPhotonLibrary.h.
phot::PhotonLibraryHybrid::PhotonLibraryHybrid | ( | const std::string & | fname, |
const sim::PhotonVoxelDef & | voxdef | ||
) |
Definition at line 25 of file PhotonLibraryHybrid.cxx.
References dir, phot::PhotonLibraryHybrid::OpDetRecord::exceptions, f, phot::PhotonLibraryHybrid::OpDetRecord::fit, fRecords, geo::GeometryCore::NOpDets(), NVoxels(), and vox.
|
virtual |
Definition at line 73 of file PhotonLibraryHybrid.cxx.
|
overridevirtual |
Implements phot::IPhotonLibrary.
Definition at line 95 of file PhotonLibraryHybrid.cxx.
References larg4::dist(), geo::OpDetGeo::DistanceToPoint(), phot::PhotonLibraryHybrid::FitFunc::Eval(), phot::PhotonLibraryHybrid::OpDetRecord::exceptions, phot::PhotonLibraryHybrid::OpDetRecord::fit, fRecords, fVoxDef, sim::PhotonVoxel::GetCenter(), sim::PhotonVoxelDef::GetPhotonVoxel(), NOpChannels(), NVoxels(), geo::GeometryCore::OpDetGeoFromOpDet(), and vox.
Referenced by GetCounts().
|
overridevirtual |
Returns a pointer to NOpChannels() visibility values, one per channel.
Implements phot::IPhotonLibrary.
Definition at line 82 of file PhotonLibraryHybrid.cxx.
References GetCount(), and NOpChannels().
|
inlineoverridevirtual |
Implements phot::IPhotonLibrary.
Definition at line 32 of file PhotonLibraryHybrid.h.
|
inlineoverridevirtual |
Implements phot::IPhotonLibrary.
Definition at line 31 of file PhotonLibraryHybrid.h.
|
inlineoverridevirtual |
Implements phot::IPhotonLibrary.
Definition at line 37 of file PhotonLibraryHybrid.h.
|
inlineoverridevirtual |
Implements phot::IPhotonLibrary.
Definition at line 36 of file PhotonLibraryHybrid.h.
|
inlineoverridevirtual |
Don't implement reflected light.
Implements phot::IPhotonLibrary.
Definition at line 30 of file PhotonLibraryHybrid.h.
|
inlineoverridevirtual |
Don't implement reflected light timing.
Implements phot::IPhotonLibrary.
Definition at line 35 of file PhotonLibraryHybrid.h.
|
inlinevirtualinherited |
Reimplemented in phot::PhotonLibrary.
Definition at line 50 of file IPhotonLibrary.h.
References phot::IPhotonLibrary::NVoxels().
Referenced by phot::PhotonVisibilityService::HasLibraryEntries().
|
inlineinherited |
Returns the number of elements in the library.
Definition at line 53 of file IPhotonLibrary.h.
References phot::IPhotonLibrary::NOpChannels(), and phot::IPhotonLibrary::NVoxels().
Referenced by phot::PhotonLibrary::CreateEmptyLibrary(), and phot::PhotonLibrary::LoadLibraryFromFile().
|
inlineoverridevirtual |
Implements phot::IPhotonLibrary.
Definition at line 39 of file PhotonLibraryHybrid.h.
Referenced by GetCount(), and GetCounts().
|
overridevirtual |
Implements phot::IPhotonLibrary.
Definition at line 76 of file PhotonLibraryHybrid.cxx.
References fVoxDef, and sim::PhotonVoxelDef::GetNVoxels().
Referenced by GetCount(), and PhotonLibraryHybrid().
|
protected |
Definition at line 70 of file PhotonLibraryHybrid.h.
Referenced by GetCount(), and PhotonLibraryHybrid().
|
protected |
Definition at line 43 of file PhotonLibraryHybrid.h.
Referenced by GetCount(), and NVoxels().