#include <OpDetDivRec.h>
Definition at line 39 of file OpDetDivRec.h.
sim::OpDet_Time_Chans::OpDet_Time_Chans |
( |
| ) |
|
|
inline |
sim::OpDet_Time_Chans::OpDet_Time_Chans |
( |
stored_time_t & |
timeIn | ) |
|
double sim::OpDet_Time_Chans::GetFrac |
( |
int |
opChanIn, |
|
|
int |
tid |
|
) |
| const |
|
inline |
Definition at line 63 of file OpDetDivRec.h.
65 std::vector<std::pair<int, double>> fracs =
GetFracs(tid);
66 for(
auto pair : fracs){
67 if(pair.first==opChanIn){
std::vector< std::pair< int, double > > GetFracs() const
double sim::OpDet_Time_Chans::GetFrac |
( |
int |
opChanIn | ) |
const |
|
inline |
Definition at line 74 of file OpDetDivRec.h.
76 std::vector<std::pair<int, double>> fracs =
GetFracs();
77 for(
auto pair : fracs){
78 if(pair.first==opChanIn){
std::vector< std::pair< int, double > > GetFracs() const
std::vector<std::pair<int, double> > sim::OpDet_Time_Chans::GetFracs |
( |
int |
tid | ) |
const |
|
inline |
Definition at line 49 of file OpDetDivRec.h.
51 std::vector<std::pair<int, double>> ret;
52 for(
auto&
a :
phots){ total += (
a.trackID==tid)?
a.phot:0;}
53 for(
auto&
a : phots){ ret.emplace_back(
a.opChan, (
a.phot / total));}
std::vector< Chan_Phot > phots
std::vector<std::pair<int, double> > sim::OpDet_Time_Chans::GetFracs |
( |
| ) |
const |
|
inline |
Definition at line 56 of file OpDetDivRec.h.
58 std::vector<std::pair<int, double>> ret;
59 for(
auto&
a :
phots){ total +=
a.phot;}
60 for(
auto&
a : phots){ ret.emplace_back(
a.opChan, (
a.phot / total));}
std::vector< Chan_Phot > phots
The documentation for this struct was generated from the following files: