Go to the source code of this file.
Definition at line 120 of file Fourdee.cxx.
123 cerr <<
"Fourdee: dump: empty frame\n";
127 for (
auto tag: frame->frame_tags()) {
128 const auto& tlist = frame->tagged_traces(
tag);
129 cerr <<
"Fourdee: frame tag: " <<
tag <<
" with " << tlist.size() <<
" traces\n";
131 for (
auto tag: frame->trace_tags()) {
132 const auto& tlist = frame->tagged_traces(
tag);
133 cerr <<
"Fourdee: trace tag: " <<
tag <<
" with " << tlist.size() <<
" traces\n";
136 auto traces = frame->traces();
137 const int ntraces = traces->size();
140 cerr <<
"Fourdee: dump: no traces\n";
144 std::vector<int>
tbins, tlens;
145 for (
auto trace : *traces) {
146 const int tbin =
trace->tbin();
147 tbins.push_back(tbin);
148 tlens.push_back(tbin+
trace->charge().size());
151 int tmin = *(std::minmax_element(tbins.begin(), tbins.end()).first);
152 int tmax = *(std::minmax_element(tlens.begin(), tlens.end()).
second);
154 cerr <<
"frame: #" << frame->ident()
156 <<
"ms with " << ntraces <<
" traces, tbins in: " 157 <<
"[" << tmin <<
"," << tmax <<
"]"
Binning tbins(nticks, t0, t0+readout_time)
second_as<> second
Type of time stored in seconds, in double precision.
QTextStream & endl(QTextStream &s)
template<typename DEPOS >
void dump |
( |
DEPOS & |
depos | ) |
|
Definition at line 162 of file Fourdee.cxx.
165 std::cerr <<
"Fourdee::dump: empty depos set\n";
169 std::vector<double>
t,
x,
y,
z;
173 for (
auto depo :
depos) {
175 cerr <<
"Gen::Fourdee: null depo" <<
endl;
178 auto prior = depo->prior();
180 cerr <<
"Gen::Fourdee: null prior depo" <<
endl;
183 qorig += prior->charge();
185 t.push_back(depo->time());
186 x.push_back(depo->pos().x());
187 y.push_back(depo->pos().y());
188 z.push_back(depo->pos().z());
189 qtot += depo->charge();
192 auto tmm = std::minmax_element(t.begin(), t.end());
193 auto xmm = std::minmax_element(x.begin(), x.end());
194 auto ymm = std::minmax_element(y.begin(), y.end());
195 auto zmm = std::minmax_element(z.begin(), z.end());
196 const int ndepos = depos.size();
198 std::cerr <<
"Gen::FourDee: drifted " << ndepos <<
", extent:\n" 199 <<
"\tt in [ " << (*tmm.first)/
units::us <<
"," << (*tmm.second)/
units::us <<
"]us,\n"
QTextStream & endl(QTextStream &s)