38 if(!TheOpDetPhotonTable){
50 std::cerr <<
"<<" << __PRETTY_FUNCTION__ <<
">>" 52 <<
"Invalid channel: " << opchannel
62 for(
auto it = StepPhotonTable->begin(); it!=StepPhotonTable->end(); it++)
64 for(
auto in_it = it->second.begin(); in_it!=it->second.end(); in_it++)
81 unsigned int idtest = channelPosition->second;
83 for(
auto const& timePDclockSDP : timePDclockSDPsMap){
84 for(
auto const& sdp : timePDclockSDP.second){
85 double xyz[3] = {sdp.x, sdp.y, sdp.z};
103 std::vector<sim::OpDetBacktrackerRecord> result;
123 (it->second).clear();
140 std::cerr <<
"<<" << __PRETTY_FUNCTION__ <<
">>" 141 <<
"Invalid channel Number: " << opchannel
156 float start_x,
float start_y,
float start_z,
157 float end_x,
float end_y,
float end_z,
158 double start_time,
double end_time,
159 int trackid,
int pdgcode,
void AddPhoton(size_t opchannel, sim::OnePhoton &&photon)
std::map< int, std::map< int, int > > fLitePhotons
Encapsulate the construction of a single cyostat.
std::vector< sim::SimPhotons > & GetPhotons()
std::map< int, int > & GetLitePhotonsForOpChannel(int opchannel)
OpDetPhotonTable * TheOpDetPhotonTable
Energy deposited on a readout Optical Detector by simulated tracks.
sim::SimPhotons & GetPhotonsForOpChannel(size_t opchannel)
contains objects relating to OpDet hits
int OpDetNum() const
Returns the readout Optical Detector this object describes.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< Length_t > > Point_t
std::unordered_map< std::string, std::vector< sim::SimEnergyDeposit > > & GetSimEnergyDeposits()
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 vol="EMPTY")
void AddOpDetBacktrackerRecord(sim::OpDetBacktrackerRecord soc)
std::map< int, std::map< int, int > > GetLitePhotons()
Encapsulate the geometry of an optical detector.
static OpDetPhotonTable * Instance(bool LitePhotons=false)
std::vector< sim::OpDetBacktrackerRecord > YieldOpDetBacktrackerRecords()
std::unordered_map< std::string, std::vector< sim::SimEnergyDeposit > > fSimEDepCol
contains information for a single step in the detector simulation
std::vector< sim::OpDetBacktrackerRecord > cOpDetBacktrackerRecordsCol
void ClearTable(size_t nch=0)
std::vector< sim::SimPhotons > fDetectedPhotons
timePDclockSDPs_t const & timePDclockSDPsMap() const
Returns all the deposited energy information as stored.
art framework interface to geometry description
cet::coded_exception< error, detail::translate > exception
void ClearEnergyDeposits()
std::map< int, int > cOpChannelToSOCMap