|
118 | 118 | #include "sbnobj/Common/Trigger/ExtraTriggerInfo.h" |
119 | 119 | #include "sbnobj/Common/Reco/CRUMBSResult.h" |
120 | 120 | #include "sbnobj/Common/Reco/OpT0FinderResult.h" |
| 121 | +#include "sbnobj/Common/Reco/CorrectedOpFlashTiming.h" |
121 | 122 | #include "sbnobj/SBND/Timing/TimingInfo.hh" |
122 | 123 | #include "sbnobj/SBND/Timing/FrameShiftInfo.hh" |
123 | 124 |
|
| 125 | + |
124 | 126 | // GENIE |
125 | 127 | #include "Framework/EventGen/EventRecord.h" |
126 | 128 | #include "Framework/Ntuple/NtpMCEventRecord.h" |
@@ -1899,6 +1901,15 @@ void CAFMaker::produce(art::Event& evt) noexcept { |
1899 | 1901 | const sbn::TPCPMTBarycenterMatch *barycenterMatch |
1900 | 1902 | = foTPCPMTBarycenterMatch.isValid()? foTPCPMTBarycenterMatch.at(0).get(): nullptr; |
1901 | 1903 |
|
| 1904 | + |
| 1905 | + art::FindManyP<sbn::CorrectedOpFlashTiming> fmCorrectedOpFlash = |
| 1906 | + FindManyPStrict<sbn::CorrectedOpFlashTiming>(sliceList, evt, |
| 1907 | + fParams.CorrectedOpFlashLabel() + slice_tag_suff); |
| 1908 | + std::vector<art::Ptr<sbn::CorrectedOpFlashTiming>> slcCorrectedOpFlash; |
| 1909 | + if (fmCorrectedOpFlash.isValid()) |
| 1910 | + slcCorrectedOpFlash = fmCorrectedOpFlash.at(0); |
| 1911 | + |
| 1912 | + |
1902 | 1913 | art::FindOneP<lcvn::Result> foCVNResult = |
1903 | 1914 | FindOnePStrict<lcvn::Result>(sliceList, evt, |
1904 | 1915 | fParams.CVNLabel() + slice_tag_suff); |
@@ -2154,6 +2165,7 @@ void CAFMaker::produce(art::Event& evt) noexcept { |
2154 | 2165 | FillSliceOpT0Finder(slcOpT0, recslc); |
2155 | 2166 | FillSliceBarycenter(slcHits, slcSpacePoints, recslc); |
2156 | 2167 | FillTPCPMTBarycenterMatch(barycenterMatch, recslc); |
| 2168 | + FillCorrectedOpFlashTiming(slcCorrectedOpFlash, recslc); |
2157 | 2169 | FillCVNScores(cvnResult, recslc); |
2158 | 2170 |
|
2159 | 2171 | // select slice |
@@ -2543,6 +2555,7 @@ void CAFMaker::produce(art::Event& evt) noexcept { |
2543 | 2555 | rec.hdr.ismc = !isRealData; |
2544 | 2556 | rec.hdr.det = fDet; |
2545 | 2557 | rec.hdr.fno = fFileNumber; |
| 2558 | + |
2546 | 2559 | if(fFirstInSubRun) |
2547 | 2560 | { |
2548 | 2561 | rec.hdr.nbnbinfo = fBNBInfo.size(); |
@@ -2583,13 +2596,13 @@ void CAFMaker::produce(art::Event& evt) noexcept { |
2583 | 2596 | else { |
2584 | 2597 | std::cout << "Did not find this event in the spill info map." << std::endl; |
2585 | 2598 | } |
2586 | | - |
| 2599 | + |
2587 | 2600 | if(fRecTree){ |
2588 | 2601 | // Save the standard-record |
2589 | 2602 | StandardRecord* prec = &rec; |
| 2603 | + |
2590 | 2604 | fRecTree->SetBranchAddress("rec", &prec); |
2591 | 2605 | fRecTree->Fill(); |
2592 | | - |
2593 | 2606 | if(fFlatTree){ |
2594 | 2607 | fFlatRecord->Clear(); |
2595 | 2608 | fFlatRecord->Fill(rec); |
|
0 commit comments