#include <OpDetPhotonTable.h>
Public Member Functions | |
~OpDetPhotonTable () | |
void | AddPhoton (size_t opchannel, sim::OnePhoton &&photon, bool Reflected=false) |
void | AddLitePhoton (int opchannel, int time, int nphotons, bool Reflected=false) |
void | AddPhoton (std::map< int, std::map< int, int >> *StepPhotonTable, bool Reflected=false) |
void | AddLitePhotons (std::map< int, std::map< int, int >> *StepPhotonTable, bool Reflected=false) |
std::vector< sim::SimPhotons > & | GetPhotons (bool Reflected=false) |
std::vector< sim::SimPhotons > & | GetReflectedPhotons () |
sim::SimPhotons & | GetPhotonsForOpChannel (size_t opchannel) |
sim::SimPhotons & | GetReflectedPhotonsForOpChannel (size_t opchannel) |
std::map< int, std::map< int, int > > | GetLitePhotons (bool Reflected=false) |
std::map< int, std::map< int, int > > | GetReflectedLitePhotons () |
std::map< int, int > & | GetLitePhotonsForOpChannel (int opchannel) |
std::map< int, int > & | GetReflectedLitePhotonsForOpChannel (int opchannel) |
void | ClearTable (size_t nch=0) |
void | AddOpDetBacktrackerRecord (sim::OpDetBacktrackerRecord soc, bool Reflected=false) |
std::vector < sim::OpDetBacktrackerRecord > | YieldOpDetBacktrackerRecords () |
std::vector < sim::OpDetBacktrackerRecord > | YieldReflectedOpDetBacktrackerRecords () |
void | ClearEnergyDeposits () |
void | AddEnergyDeposit (int n_photon, int n_elec, double scint_yield, double energy, float start_x, float start_y, float start_z, float end_x, float end_y, float end_z, double start_time, double end_time, int trackid, int pdgcode, int g4trackid, std::string const &vol="EMPTY") |
std::unordered_map < std::string, std::vector < sim::SimEnergyDeposit > > const & | GetSimEnergyDeposits () const |
Returns the map of energy deposits by volume name. More... | |
std::unordered_map < std::string, std::vector < sim::SimEnergyDeposit > > | YieldSimEnergyDeposits () |
Yields the map of energy deposits by volume name, and resets the internal one. More... | |
Static Public Member Functions | |
static OpDetPhotonTable * | Instance (bool LitePhotons=false) |
Protected Member Functions | |
OpDetPhotonTable () | |
Private Member Functions | |
void | AddOpDetBacktrackerRecord (std::vector< sim::OpDetBacktrackerRecord > &RecordsCol, std::map< int, int > &ChannelMap, sim::OpDetBacktrackerRecord soc) |
Private Attributes | |
std::map< int, std::map< int, int > > | fLitePhotons |
std::map< int, std::map< int, int > > | fReflectedLitePhotons |
std::vector < sim::OpDetBacktrackerRecord > | cOpDetBacktrackerRecordsCol |
std::vector < sim::OpDetBacktrackerRecord > | cReflectedOpDetBacktrackerRecordsCol |
std::map< int, int > | cOpChannelToSOCMap |
std::map< int, int > | cReflectedOpChannelToSOCMap |
std::vector< sim::SimPhotons > | fDetectedPhotons |
std::vector< sim::SimPhotons > | fReflectedDetectedPhotons |
std::unordered_map < std::string, std::vector < sim::SimEnergyDeposit > > | fSimEDepCol |
Definition at line 47 of file OpDetPhotonTable.h.
larg4::OpDetPhotonTable::~OpDetPhotonTable | ( | ) |
Definition at line 28 of file OpDetPhotonTable.cxx.
|
protected |
Definition at line 23 of file OpDetPhotonTable.cxx.
void larg4::OpDetPhotonTable::AddEnergyDeposit | ( | int | n_photon, |
int | n_elec, | ||
double | scint_yield, | ||
double | energy, | ||
float | start_x, | ||
float | start_y, | ||
float | start_z, | ||
float | end_x, | ||
float | end_y, | ||
float | end_z, | ||
double | start_time, | ||
double | end_time, | ||
int | trackid, | ||
int | pdgcode, | ||
int | g4trackid, | ||
std::string const & | vol = "EMPTY" |
||
) |
Definition at line 202 of file OpDetPhotonTable.cxx.
void larg4::OpDetPhotonTable::AddLitePhoton | ( | int | opchannel, |
int | time, | ||
int | nphotons, | ||
bool | Reflected = false |
||
) |
Definition at line 61 of file OpDetPhotonTable.cxx.
|
inline |
Definition at line 56 of file OpDetPhotonTable.h.
void larg4::OpDetPhotonTable::AddOpDetBacktrackerRecord | ( | sim::OpDetBacktrackerRecord | soc, |
bool | Reflected = false |
||
) |
Definition at line 86 of file OpDetPhotonTable.cxx.
|
private |
Definition at line 95 of file OpDetPhotonTable.cxx.
void larg4::OpDetPhotonTable::AddPhoton | ( | size_t | opchannel, |
sim::OnePhoton && | photon, | ||
bool | Reflected = false |
||
) |
Definition at line 43 of file OpDetPhotonTable.cxx.
void larg4::OpDetPhotonTable::AddPhoton | ( | std::map< int, std::map< int, int >> * | StepPhotonTable, |
bool | Reflected = false |
||
) |
Definition at line 70 of file OpDetPhotonTable.cxx.
void larg4::OpDetPhotonTable::ClearEnergyDeposits | ( | ) |
Definition at line 219 of file OpDetPhotonTable.cxx.
void larg4::OpDetPhotonTable::ClearTable | ( | size_t | nch = 0 | ) |
Definition at line 155 of file OpDetPhotonTable.cxx.
|
inline |
Definition at line 63 of file OpDetPhotonTable.h.
|
inline |
Definition at line 65 of file OpDetPhotonTable.h.
|
inline |
Definition at line 58 of file OpDetPhotonTable.h.
sim::SimPhotons & larg4::OpDetPhotonTable::GetPhotonsForOpChannel | ( | size_t | opchannel | ) |
Definition at line 179 of file OpDetPhotonTable.cxx.
|
inline |
Definition at line 64 of file OpDetPhotonTable.h.
|
inline |
Definition at line 66 of file OpDetPhotonTable.h.
|
inline |
Definition at line 59 of file OpDetPhotonTable.h.
sim::SimPhotons & larg4::OpDetPhotonTable::GetReflectedPhotonsForOpChannel | ( | size_t | opchannel | ) |
Definition at line 190 of file OpDetPhotonTable.cxx.
std::unordered_map< std::string, std::vector< sim::SimEnergyDeposit > > const & larg4::OpDetPhotonTable::GetSimEnergyDeposits | ( | ) | const |
Returns the map of energy deposits by volume name.
Definition at line 224 of file OpDetPhotonTable.cxx.
|
static |
Definition at line 32 of file OpDetPhotonTable.cxx.
std::vector< sim::OpDetBacktrackerRecord > larg4::OpDetPhotonTable::YieldOpDetBacktrackerRecords | ( | ) |
Definition at line 126 of file OpDetPhotonTable.cxx.
std::vector< sim::OpDetBacktrackerRecord > larg4::OpDetPhotonTable::YieldReflectedOpDetBacktrackerRecords | ( | ) |
Definition at line 141 of file OpDetPhotonTable.cxx.
std::unordered_map< std::string, std::vector< sim::SimEnergyDeposit > > larg4::OpDetPhotonTable::YieldSimEnergyDeposits | ( | ) |
Yields the map of energy deposits by volume name, and resets the internal one.
Definition at line 228 of file OpDetPhotonTable.cxx.
|
private |
Definition at line 103 of file OpDetPhotonTable.h.
|
private |
Definition at line 101 of file OpDetPhotonTable.h.
|
private |
Definition at line 104 of file OpDetPhotonTable.h.
|
private |
Definition at line 102 of file OpDetPhotonTable.h.
|
private |
Definition at line 105 of file OpDetPhotonTable.h.
|
private |
Definition at line 99 of file OpDetPhotonTable.h.
|
private |
Definition at line 106 of file OpDetPhotonTable.h.
|
private |
Definition at line 100 of file OpDetPhotonTable.h.
|
private |
Definition at line 109 of file OpDetPhotonTable.h.