Skip to content

Commit ca00331

Browse files
adding test outputs. change to 1 event
1 parent c6c78d6 commit ca00331

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/tool/algorithm/level_pedestals.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ static void pedestal_runs(Target* tgt, ROC& roc, std::array<int, 72>& baseline,
9797
// of ROCs and the number of channels from the Target
9898
DecodeAndBuffer<EventPacket> buffer{n_events, 2};
9999
static auto the_log_{::pflib::logging::get("level_pedestals")};
100-
int n_events = 1; //100
101100

102101
{ // baseline run scope
103102
pflib_log(info) << "100 event baseline run";
@@ -106,7 +105,7 @@ static void pedestal_runs(Target* tgt, ROC& roc, std::array<int, 72>& baseline,
106105
.add_all_channels("DACB", 0)
107106
.add_all_channels("TRIM_INV", 0)
108107
.apply();
109-
daq_run(tgt, "PEDESTAL", buffer, n_events, n_events);
108+
daq_run(tgt, "PEDESTAL", buffer, n_events, 100);
110109
pflib_log(trace) << "baseline run done, getting channel medians";
111110
auto medians =
112111
get_adc_medians<EventPacket>(buffer.get_buffer(), masked_channels);
@@ -132,7 +131,7 @@ static void pedestal_runs(Target* tgt, ROC& roc, std::array<int, 72>& baseline,
132131
.add_all_channels("DACB", 0)
133132
.add_all_channels("TRIM_INV", 63)
134133
.apply();
135-
daq_run(tgt, "PEDESTAL", buffer, n_events, n_events);
134+
daq_run(tgt, "PEDESTAL", buffer, n_events, 100);
136135
highend =
137136
get_adc_medians<EventPacket>(buffer.get_buffer(), masked_channels);
138137
}
@@ -144,7 +143,7 @@ static void pedestal_runs(Target* tgt, ROC& roc, std::array<int, 72>& baseline,
144143
.add_all_channels("DACB", 31)
145144
.add_all_channels("TRIM_INV", 0)
146145
.apply();
147-
daq_run(tgt, "PEDESTAL", buffer, n_events, n_events);
146+
daq_run(tgt, "PEDESTAL", buffer, n_events, 100);
148147
lowend = get_adc_medians<EventPacket>(buffer.get_buffer(), masked_channels);
149148
}
150149
}
@@ -168,7 +167,7 @@ std::map<std::string, std::map<std::string, uint64_t>> level_pedestals(
168167
}
169168

170169
/// do three runs of 100 samples each to have well defined pedestals
171-
static const std::size_t n_events = 100;
170+
static const std::size_t n_events = 1; // 100;
172171

173172
// tgt->setup_run(1, Target::DaqFormat::SIMPLEROC, 1);
174173
// Use the DAQ format selected in the pftool DAQ->FORMAT menu so the

0 commit comments

Comments
 (0)