132 art::Handle<std::vector<recob::OpHit>> ophit_h;
133 e.getByLabel(
"ophitpmt", ophit_h);
134 if(!ophit_h.isValid()){
135 std::cout <<
"Invalid producer for recob::OpHit: " <<
"ophitpmt" <<
". Ignoring." << std::endl;
137 std::vector<art::Ptr<recob::OpHit>> ophit_v;
138 art::fill_ptr_vector(ophit_v, ophit_h);
150 art::Handle<std::vector<recob::OpFlash>> flash_h;
152 if(!flash_h.isValid()){
156 art::FindManyP<recob::OpHit> flashToOpHitAssns(flash_h,
e,
_ophit_label_v[l]);
158 for (
size_t i = 0; i < flash_h->size(); i++) {
159 auto const& f = (*flash_h)[i];
160 std::cout <<
"Flash " << i <<
", time " << f.AbsTime() << std::endl;
177 std::vector<art::Ptr<recob::OpHit>> ophit_v = flashToOpHitAssns.at(i);
178 for (
auto ophit : ophit_v) {
194 art::Handle<std::vector<recob::OpFlash>> flash_h;
196 if(!flash_h.isValid()){
199 for (
size_t i = 0; i < flash_h->size(); i++) {
200 auto const& f = (*flash_h)[i];
std::vector< double > _flash_ophit_amp
std::vector< std::string > _ophit_label_v
std::vector< std::string > _mcflash_label_v
std::vector< double > _flash_ophit_pe
opdet::sbndPDMapAlg _pds_map
std::vector< std::string > _flash_label_v
std::vector< int > _tpc_v
BEGIN_PROLOG opflashCryoW opflashCryoW triggerfilterBNB triggerfilterNuMI triggerfilterOffbeamBNB triggerfilterOffbeamNuMI triggerfilterUnknown roifinder roifinder2d gaushitTPCEE gaushitTPCWE purityana1 ophit
std::vector< double > _flash_pe_v
std::vector< double > _flash_ophit_width
std::vector< double > _flash_ophit_area
std::vector< double > _flash_ophit_time
std::string pdType(size_t ch) const override
std::vector< std::string > _flash_ophit_chname
BEGIN_PROLOG could also be cout
std::vector< int > _flash_ophit_ch