Skip to content

Commit 4f12ea8

Browse files
authored
Merge pull request #422 from SBNSoftware/feature/sungbinoh_crt_pds_for_calib
Adding CRT and PDS info in calib ntuple
2 parents aa33e49 + 990167f commit 4f12ea8

11 files changed

Lines changed: 2171 additions & 3 deletions

File tree

sbndcode/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ add_subdirectory(OpDetSim)
1616
add_subdirectory(OpDetReco)
1717
add_subdirectory(OpDetAnalyzer)
1818
add_subdirectory(OpT0Finder)
19+
#add_subdirectory(PDS)
1920
#add_subdirectory(CosmicId)
2021
add_subdirectory(ShowerAna)
2122
add_subdirectory(Commissioning)

sbndcode/CRT/CRTAna/CRTAnalysis_module.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class sbnd::crt::CRTAnalysis : public art::EDAnalyzer {
9696
int _subrun;
9797
int _event;
9898

99+
//mc truth
99100
std::vector<int16_t> _mc_trackid;
100101
std::vector<int16_t> _mc_pdg;
101102
std::vector<int16_t> _mc_status;
@@ -118,6 +119,7 @@ class sbnd::crt::CRTAnalysis : public art::EDAnalyzer {
118119
std::vector<double> _mc_endpz;
119120
std::vector<double> _mc_ende;
120121

122+
//G4 detector id
121123
std::vector<int16_t> _ide_trackid;
122124
std::vector<float> _ide_e;
123125
std::vector<float> _ide_entryx;
@@ -129,6 +131,7 @@ class sbnd::crt::CRTAnalysis : public art::EDAnalyzer {
129131
std::vector<float> _ide_exitz;
130132
std::vector<float> _ide_exitt;
131133

134+
//front end mother board
132135
std::vector<uint16_t> _feb_mac5;
133136
std::vector<uint16_t> _feb_flags;
134137
std::vector<uint32_t> _feb_ts0;
@@ -137,6 +140,7 @@ class sbnd::crt::CRTAnalysis : public art::EDAnalyzer {
137140
std::vector<std::vector<uint16_t>> _feb_adc;
138141
std::vector<uint32_t> _feb_coinc;
139142

143+
//strip hit to select the strip which has ADC above threshold
140144
std::vector<uint32_t> _sh_channel;
141145
std::vector<uint32_t> _sh_ts0;
142146
std::vector<uint32_t> _sh_ts1;
@@ -154,6 +158,7 @@ class sbnd::crt::CRTAnalysis : public art::EDAnalyzer {
154158
std::vector<double> _sh_truth_energy;
155159
std::vector<double> _sh_truth_time;
156160

161+
//cluster from x-y coincidence for CRTSpacePoint , this is what we normally call a CRT hit
157162
std::vector<uint32_t> _cl_ts0;
158163
std::vector<uint32_t> _cl_ts1;
159164
std::vector<uint32_t> _cl_unixs;
@@ -188,6 +193,7 @@ class sbnd::crt::CRTAnalysis : public art::EDAnalyzer {
188193
std::vector<double> _cl_sp_etime;
189194
std::vector<bool> _cl_sp_complete;
190195

196+
//backtrack truth information from reco level
191197
std::vector<int> _td_tag_trackid;
192198
std::vector<int> _td_tag_pdg;
193199
std::vector<int16_t> _td_tag_tagger;
@@ -206,6 +212,7 @@ class sbnd::crt::CRTAnalysis : public art::EDAnalyzer {
206212
std::vector<bool> _td_reco_status;
207213
std::vector<bool> _td_reco_triple;
208214

215+
//track level information
209216
std::vector<double> _tr_start_x;
210217
std::vector<double> _tr_start_y;
211218
std::vector<double> _tr_start_z;

0 commit comments

Comments
 (0)