LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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_elec, int n_photon, 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, std::string const &vol="EMPTY") |
std::unordered_map< std::string, std::vector< sim::SimEnergyDeposit > > const & | GetSimEnergyDeposits () const |
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 57 of file OpDetPhotonTable.h.
larg4::OpDetPhotonTable::~OpDetPhotonTable | ( | ) |
Definition at line 32 of file OpDetPhotonTable.cxx.
|
protected |
Definition at line 28 of file OpDetPhotonTable.cxx.
References fDetectedPhotons.
Referenced by Instance().
void larg4::OpDetPhotonTable::AddEnergyDeposit | ( | int | n_elec, |
int | n_photon, | ||
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, | ||
std::string const & | vol = "EMPTY" |
||
) |
Definition at line 205 of file OpDetPhotonTable.cxx.
References fSimEDepCol.
Referenced by larg4::OpFastScintillation::ProcessStep().
void larg4::OpDetPhotonTable::AddLitePhoton | ( | int | opchannel, |
int | time, | ||
int | nphotons, | ||
bool | Reflected = false |
||
) |
Definition at line 65 of file OpDetPhotonTable.cxx.
References fLitePhotons, and fReflectedLitePhotons.
Referenced by larg4::OpFastScintillation::RecordPhotonsProduced().
|
inline |
Definition at line 66 of file OpDetPhotonTable.h.
void larg4::OpDetPhotonTable::AddOpDetBacktrackerRecord | ( | sim::OpDetBacktrackerRecord | soc, |
bool | Reflected = false |
||
) |
Definition at line 90 of file OpDetPhotonTable.cxx.
References cOpChannelToSOCMap, cOpDetBacktrackerRecordsCol, cReflectedOpChannelToSOCMap, and cReflectedOpDetBacktrackerRecordsCol.
Referenced by larg4::OpFastScintillation::RecordPhotonsProduced().
|
private |
Definition at line 99 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 47 of file OpDetPhotonTable.cxx.
References fDetectedPhotons, and fReflectedDetectedPhotons.
Referenced by larg4::OpDetSensitiveDetector::ProcessHits(), and larg4::OpFastScintillation::RecordPhotonsProduced().
void larg4::OpDetPhotonTable::AddPhoton | ( | std::map< int, std::map< int, int >> * | StepPhotonTable, |
bool | Reflected = false |
||
) |
Definition at line 74 of file OpDetPhotonTable.cxx.
References fLitePhotons, and fReflectedLitePhotons.
void larg4::OpDetPhotonTable::ClearEnergyDeposits | ( | ) |
Definition at line 222 of file OpDetPhotonTable.cxx.
References fSimEDepCol.
Referenced by larg4::LArG4::produce().
void larg4::OpDetPhotonTable::ClearTable | ( | size_t | nch = 0 | ) |
Definition at line 159 of file OpDetPhotonTable.cxx.
References fDetectedPhotons, fLitePhotons, fReflectedDetectedPhotons, and fReflectedLitePhotons.
Referenced by larg4::LArG4::produce().
|
inline |
Definition at line 73 of file OpDetPhotonTable.h.
Referenced by larg4::LArG4::produce().
|
inline |
Definition at line 75 of file OpDetPhotonTable.h.
|
inline |
Definition at line 68 of file OpDetPhotonTable.h.
Referenced by larg4::LArG4::produce().
sim::SimPhotons & larg4::OpDetPhotonTable::GetPhotonsForOpChannel | ( | size_t | opchannel | ) |
Definition at line 182 of file OpDetPhotonTable.cxx.
References fDetectedPhotons.
|
inline |
Definition at line 74 of file OpDetPhotonTable.h.
|
inline |
Definition at line 76 of file OpDetPhotonTable.h.
References energy.
|
inline |
Definition at line 69 of file OpDetPhotonTable.h.
sim::SimPhotons & larg4::OpDetPhotonTable::GetReflectedPhotonsForOpChannel | ( | size_t | opchannel | ) |
Definition at line 193 of file OpDetPhotonTable.cxx.
References fReflectedDetectedPhotons.
std::unordered_map< std::string, std::vector< sim::SimEnergyDeposit > > const & larg4::OpDetPhotonTable::GetSimEnergyDeposits | ( | ) | const |
Definition at line 227 of file OpDetPhotonTable.cxx.
References fSimEDepCol.
Referenced by larg4::LArG4::produce().
|
static |
Definition at line 36 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 130 of file OpDetPhotonTable.cxx.
References cOpChannelToSOCMap, and cOpDetBacktrackerRecordsCol.
Referenced by larg4::LArG4::produce().
std::vector< sim::OpDetBacktrackerRecord > larg4::OpDetPhotonTable::YieldReflectedOpDetBacktrackerRecords | ( | ) |
Definition at line 145 of file OpDetPhotonTable.cxx.
References cReflectedOpChannelToSOCMap, and cReflectedOpDetBacktrackerRecordsCol.
Referenced by larg4::LArG4::produce().
|
private |
Definition at line 110 of file OpDetPhotonTable.h.
Referenced by AddOpDetBacktrackerRecord(), and YieldOpDetBacktrackerRecords().
|
private |
Definition at line 108 of file OpDetPhotonTable.h.
Referenced by AddOpDetBacktrackerRecord(), and YieldOpDetBacktrackerRecords().
|
private |
Definition at line 111 of file OpDetPhotonTable.h.
Referenced by AddOpDetBacktrackerRecord(), and YieldReflectedOpDetBacktrackerRecords().
|
private |
Definition at line 109 of file OpDetPhotonTable.h.
Referenced by AddOpDetBacktrackerRecord(), and YieldReflectedOpDetBacktrackerRecords().
|
private |
Definition at line 112 of file OpDetPhotonTable.h.
Referenced by AddPhoton(), ClearTable(), GetPhotonsForOpChannel(), and OpDetPhotonTable().
|
private |
Definition at line 106 of file OpDetPhotonTable.h.
Referenced by AddLitePhoton(), AddPhoton(), and ClearTable().
|
private |
Definition at line 113 of file OpDetPhotonTable.h.
Referenced by AddPhoton(), ClearTable(), and GetReflectedPhotonsForOpChannel().
|
private |
Definition at line 107 of file OpDetPhotonTable.h.
Referenced by AddLitePhoton(), AddPhoton(), and ClearTable().
|
private |
Definition at line 116 of file OpDetPhotonTable.h.
Referenced by AddEnergyDeposit(), ClearEnergyDeposits(), and GetSimEnergyDeposits().