LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#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.
References fDetectedPhotons, and fReflectedDetectedPhotons.
Referenced by GetReflectedLitePhotonsForOpChannel(), and Instance().
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 191 of file OpDetPhotonTable.cxx.
References fSimEDepCol.
Referenced by GetReflectedLitePhotonsForOpChannel(), and larg4::OpFastScintillation::ProcessStep().
void larg4::OpDetPhotonTable::AddLitePhoton | ( | int | opchannel, |
int | time, | ||
int | nphotons, | ||
bool | Reflected = false |
||
) |
Definition at line 54 of file OpDetPhotonTable.cxx.
References fLitePhotons, and fReflectedLitePhotons.
Referenced by larg4::OpDetSensitiveDetector::AddLitePhoton(), and larg4::OpFastScintillation::RecordPhotonsProduced().
|
inline |
Definition at line 55 of file OpDetPhotonTable.h.
References AddPhoton().
void larg4::OpDetPhotonTable::AddOpDetBacktrackerRecord | ( | sim::OpDetBacktrackerRecord | soc, |
bool | Reflected = false |
||
) |
Definition at line 78 of file OpDetPhotonTable.cxx.
References cOpChannelToSOCMap, cOpDetBacktrackerRecordsCol, cReflectedOpChannelToSOCMap, and cReflectedOpDetBacktrackerRecordsCol.
Referenced by GetReflectedLitePhotonsForOpChannel(), and larg4::OpFastScintillation::RecordPhotonsProduced().
|
private |
Definition at line 89 of file OpDetPhotonTable.cxx.
References sim::OpDetBacktrackerRecord::OpDetNum(), and sim::OpDetBacktrackerRecord::timePDclockSDPsMap().
void larg4::OpDetPhotonTable::AddPhoton | ( | size_t | opchannel, |
sim::OnePhoton && | photon, | ||
bool | Reflected = false |
||
) |
Definition at line 38 of file OpDetPhotonTable.cxx.
References fDetectedPhotons, and fReflectedDetectedPhotons.
Referenced by AddLitePhotons(), larg4::OpDetSensitiveDetector::AddPhoton(), and larg4::OpFastScintillation::RecordPhotonsProduced().
void larg4::OpDetPhotonTable::AddPhoton | ( | std::map< int, std::map< int, int >> * | StepPhotonTable, |
bool | Reflected = false |
||
) |
Definition at line 63 of file OpDetPhotonTable.cxx.
References fLitePhotons, and fReflectedLitePhotons.
void larg4::OpDetPhotonTable::ClearEnergyDeposits | ( | ) |
Definition at line 222 of file OpDetPhotonTable.cxx.
References fSimEDepCol.
Referenced by GetReflectedLitePhotonsForOpChannel(), larg4::LArG4::produce(), and YieldSimEnergyDeposits().
void larg4::OpDetPhotonTable::ClearTable | ( | size_t | nch = 0 | ) |
Definition at line 147 of file OpDetPhotonTable.cxx.
References fDetectedPhotons, fLitePhotons, fReflectedDetectedPhotons, and fReflectedLitePhotons.
Referenced by GetReflectedLitePhotonsForOpChannel(), and larg4::LArG4::produce().
|
inline |
Definition at line 68 of file OpDetPhotonTable.h.
References fLitePhotons, and fReflectedLitePhotons.
Referenced by GetReflectedLitePhotons(), and larg4::LArG4::produce().
|
inline |
Definition at line 73 of file OpDetPhotonTable.h.
References fLitePhotons.
|
inline |
Definition at line 60 of file OpDetPhotonTable.h.
References fDetectedPhotons, and fReflectedDetectedPhotons.
Referenced by GetReflectedPhotons(), and larg4::LArG4::produce().
sim::SimPhotons & larg4::OpDetPhotonTable::GetPhotonsForOpChannel | ( | size_t | opchannel | ) |
Definition at line 171 of file OpDetPhotonTable.cxx.
References fDetectedPhotons.
Referenced by GetReflectedPhotons().
|
inline |
Definition at line 72 of file OpDetPhotonTable.h.
References GetLitePhotons().
|
inline |
Definition at line 77 of file OpDetPhotonTable.h.
References AddEnergyDeposit(), AddOpDetBacktrackerRecord(), ClearEnergyDeposits(), ClearTable(), energy, fReflectedLitePhotons, GetSimEnergyDeposits(), OpDetPhotonTable(), YieldOpDetBacktrackerRecords(), YieldReflectedOpDetBacktrackerRecords(), and YieldSimEnergyDeposits().
|
inline |
Definition at line 64 of file OpDetPhotonTable.h.
References GetPhotons(), GetPhotonsForOpChannel(), and GetReflectedPhotonsForOpChannel().
sim::SimPhotons & larg4::OpDetPhotonTable::GetReflectedPhotonsForOpChannel | ( | size_t | opchannel | ) |
Definition at line 181 of file OpDetPhotonTable.cxx.
References fReflectedDetectedPhotons.
Referenced by GetReflectedPhotons().
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 229 of file OpDetPhotonTable.cxx.
References fSimEDepCol.
Referenced by GetReflectedLitePhotonsForOpChannel().
|
static |
Definition at line 31 of file OpDetPhotonTable.cxx.
References OpDetPhotonTable(), and larg4::TheOpDetPhotonTable.
Referenced by larg4::OpDetSensitiveDetector::OpDetSensitiveDetector(), larg4::OpFastScintillation::ProcessStep(), larg4::LArG4::produce(), and larg4::OpFastScintillation::RecordPhotonsProduced().
std::vector< sim::OpDetBacktrackerRecord > larg4::OpDetPhotonTable::YieldOpDetBacktrackerRecords | ( | ) |
Definition at line 117 of file OpDetPhotonTable.cxx.
References cOpChannelToSOCMap, and cOpDetBacktrackerRecordsCol.
Referenced by GetReflectedLitePhotonsForOpChannel(), and larg4::LArG4::produce().
std::vector< sim::OpDetBacktrackerRecord > larg4::OpDetPhotonTable::YieldReflectedOpDetBacktrackerRecords | ( | ) |
Definition at line 133 of file OpDetPhotonTable.cxx.
References cReflectedOpChannelToSOCMap, and cReflectedOpDetBacktrackerRecordsCol.
Referenced by GetReflectedLitePhotonsForOpChannel(), and larg4::LArG4::produce().
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 236 of file OpDetPhotonTable.cxx.
References ClearEnergyDeposits(), and fSimEDepCol.
Referenced by GetReflectedLitePhotonsForOpChannel(), and larg4::LArG4::produce().
|
private |
Definition at line 126 of file OpDetPhotonTable.h.
Referenced by AddOpDetBacktrackerRecord(), and YieldOpDetBacktrackerRecords().
|
private |
Definition at line 123 of file OpDetPhotonTable.h.
Referenced by AddOpDetBacktrackerRecord(), and YieldOpDetBacktrackerRecords().
|
private |
Definition at line 127 of file OpDetPhotonTable.h.
Referenced by AddOpDetBacktrackerRecord(), and YieldReflectedOpDetBacktrackerRecords().
|
private |
Definition at line 125 of file OpDetPhotonTable.h.
Referenced by AddOpDetBacktrackerRecord(), and YieldReflectedOpDetBacktrackerRecords().
|
private |
Definition at line 128 of file OpDetPhotonTable.h.
Referenced by AddPhoton(), ClearTable(), GetPhotons(), GetPhotonsForOpChannel(), and OpDetPhotonTable().
|
private |
Definition at line 120 of file OpDetPhotonTable.h.
Referenced by AddLitePhoton(), AddPhoton(), ClearTable(), GetLitePhotons(), and GetLitePhotonsForOpChannel().
|
private |
Definition at line 129 of file OpDetPhotonTable.h.
Referenced by AddPhoton(), ClearTable(), GetPhotons(), GetReflectedPhotonsForOpChannel(), and OpDetPhotonTable().
|
private |
Definition at line 121 of file OpDetPhotonTable.h.
Referenced by AddLitePhoton(), AddPhoton(), ClearTable(), GetLitePhotons(), and GetReflectedLitePhotonsForOpChannel().
|
private |
Definition at line 131 of file OpDetPhotonTable.h.
Referenced by AddEnergyDeposit(), ClearEnergyDeposits(), GetSimEnergyDeposits(), and YieldSimEnergyDeposits().