#include "TBDataFormats/HcalTBObjects/interface/HcalTBTriggerData.h"
Go to the source code of this file.
Functions | |
ostream & | operator<< (ostream &s, const HcalTBTriggerData &htbtd) |
ostream& operator<< | ( | ostream & | s, | |
const HcalTBTriggerData & | htbtd | |||
) |
Definition at line 77 of file HcalTBTriggerData.cc.
References HcalTBTriggerData::bunchNumber(), lat::endl(), HcalTBTriggerData::eventNumber(), HcalTBTriggerData::orbitNumber(), HcalTBTriggerData::runNumber(), HcalTBTriggerData::runNumberSequenceId(), HcalTBTriggerData::spillNumber(), HcalTBTriggerData::triggerTimeBase(), HcalTBTriggerData::triggerTimeUsec(), and HcalTBTriggerData::triggerWord().
00077 { 00078 char str[50]; 00079 s << htbtd.runNumberSequenceId() << ":"; 00080 s << htbtd.runNumber() << ":"; 00081 s << htbtd.eventNumber() << endl; 00082 00083 s << " Spill# =" << htbtd.spillNumber() << endl; 00084 s << " Bunch# =" << htbtd.bunchNumber() << endl; 00085 s << " Orbit# =" << htbtd.orbitNumber() << endl; 00086 00087 sprintf(str, " Trigger word = %08x\n", htbtd.triggerWord()); 00088 s << str; 00089 00090 int32_t trigtimebase = (int32_t)htbtd.triggerTimeBase(); 00091 uint32_t trigtimeusec = htbtd.triggerTimeUsec(); 00092 00093 // trim seconds off of usec and add to base 00094 trigtimebase += trigtimeusec/1000000; 00095 trigtimeusec %= 1000000; 00096 00097 sprintf(str, " Trigger time: %s", ctime((time_t *)&trigtimebase)); 00098 s << str; 00099 sprintf(str, " %d us\n", trigtimeusec); 00100 s << str; 00101 00102 return s; 00103 }