@@ -205,42 +205,29 @@ std::ostream& sbn::operator<< (std::ostream& out, ExtraTriggerInfo const& info)
205205 if (info.triggerLocationBits != 0 ) {
206206 out << " \n Location(s) of trigger:" ;
207207 for (std::string const & bitName: names (info.triggerLocation ()))
208- out << " " << bitName;
209- }
210- out << " \n East cryostat: "
211- << info.cryostats [ExtraTriggerInfo::EastCryostat].triggerCount
212- << " triggers" ;
213- if (auto const & cryo = info.cryostats [ExtraTriggerInfo::EastCryostat];
214- cryo.hasAnyActivity ()
215- ) {
216- out << " \n trigger logic: " ;
217- if (cryo.triggerLogicBits ) {
218- for (std::string const & bitName: names (cryo.triggerLogic ()))
219- out << " " << bitName;
220- }
221- else out << " none!" ;
222- out
223- << " \n east wall: "
224- << dumpLVDSmask (cryo.LVDSstatus [ExtraTriggerInfo::EastPMTwall])
225- << " , sectors: "
226- << dumpBits (cryo.sectorStatus [ExtraTriggerInfo::EastPMTwall], 6 )
227- << " \n west wall: "
228- << dumpLVDSmask (cryo.LVDSstatus [ExtraTriggerInfo::WestPMTwall])
229- << " , sectors: "
230- << dumpBits (cryo.sectorStatus [ExtraTriggerInfo::WestPMTwall], 6 )
231- ;
208+ out << " * " << bitName;
232209 }
210+
211+ out << " \n West cryostat: " << info.cryostats [ExtraTriggerInfo::WestCryostat];
212+ out << " \n East cryostat: " << info.cryostats [ExtraTriggerInfo::EastCryostat];
213+
214+ return out;
215+ } // sbn::operator<< (ExtraTriggerInfo)
233216
234- out << " \n West cryostat: "
235- << info.cryostats [ExtraTriggerInfo::WestCryostat].triggerCount
236- << " triggers" ;
237- if (auto const & cryo = info.cryostats [ExtraTriggerInfo::WestCryostat];
238- cryo.hasAnyActivity ()
239- ) {
217+
218+
219+ // -----------------------------------------------------------------------------
220+ std::ostream& sbn::operator <<
221+ (std::ostream& out, sbn::ExtraTriggerInfo::CryostatInfo const & cryo)
222+ {
223+ out << cryo.triggerCount << " triggers" ;
224+ if (cryo.hasTrigger ())
225+ out << " , the first one " << cryo.beamToTrigger << " ns after gate" ;
226+ if (cryo.hasAnyActivity ()) {
240227 out << " \n trigger logic: " ;
241228 if (cryo.triggerLogicBits ) {
242229 for (std::string const & bitName: names (cryo.triggerLogic ()))
243- out << " * " << bitName;
230+ out << " * " << bitName;
244231 }
245232 else out << " none!" ;
246233 out
@@ -254,9 +241,8 @@ std::ostream& sbn::operator<< (std::ostream& out, ExtraTriggerInfo const& info)
254241 << dumpBits (cryo.sectorStatus [ExtraTriggerInfo::WestPMTwall], 6 )
255242 ;
256243 }
257-
258244 return out;
259- } // sbn::operator<< (ExtraTriggerInfo)
245+ } // std::ostream& sbn::operator<< (ExtraTriggerInfo::CryostatInfo )
260246
261247
262248// -----------------------------------------------------------------------------
0 commit comments