27 if(itr ==
time_chans.end() || itr->time!=time){
28 std::vector<Chan_Phot> cfl;
29 cfl.emplace_back(opchan, tid);
34 for(
auto cfp = itr->phots.begin(); cfp!= itr->phots.end(); ++cfp){
35 if(cfp!= itr->phots.end() && cfp->opChan != opchan && cfp->trackID!=tid){
37 }
else if(cfp == itr->phots.end()){
38 itr->phots.emplace_back(opchan, tid);
48 std::vector<std::pair<int, double>> ret;
50 if( itr !=
time_chans.end() || itr->time==time ){
51 ret = itr->GetFracs();
57 std::vector<std::pair<int, double>> ret;
59 if( itr !=
time_chans.end() || itr->time==time ){
60 ret = itr->GetFracs(tid);
66 return std::lower_bound
70 return std::lower_bound
79 return std::make_pair(ret, found);
Time_Chans_t::const_iterator lower
time_slice GetSlice(OpDet_Time_Chans::stored_time_t low_time, OpDet_Time_Chans::stored_time_t high_time)
std::vector< Chan_Phot > phots
Time_Chans_t::iterator priv_FindClosestTimeChan(OpDet_Time_Chans::stored_time_t pdTime)
std::vector< std::pair< int, double > > GetFracs(OpDet_Time_Chans::stored_time_t time)
Code to link reconstructed objects back to the MC truth information.
Time_Chans_t::const_iterator upper
void AddPhoton(int opchan, int tid, OpDet_Time_Chans::stored_time_t pdTime)
std::pair< OpDetDivRec::Time_Chans_t::const_iterator, bool > FindClosestTimeChan(OpDet_Time_Chans::stored_time_t pdTime) const